@tablestore/tablestore-agent-cli 0.3.1 → 0.4.0
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/dist/commands/memory.d.ts.map +1 -1
- package/dist/commands/memory.js +20 -16
- package/dist/commands/memory.js.map +1 -1
- package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
- package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +10 -0
- package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +3 -3
- package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +80 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/api-keys/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/[dreamId]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/dream/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/build-manifest.json +18 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/next-font-manifest.json +8 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/react-loadable-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page.js +23 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/scope/page_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/tasks/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/build-manifest.json +18 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/next-font-manifest.json +8 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/react-loadable-manifest.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page.js +23 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/wiki/page_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +16 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +16 -16
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/custom-policy/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/effective-permissions/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/policies/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/[id]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/filter-by-permission/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/api-keys/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/connectivity/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-kb-sync/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/apply/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/actions/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/cancel/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/[dreamId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/dream-tasks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route.js +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/file-memory/[action]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/scopes/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/[requestId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/tasks/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/artifacts/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/ingest/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/page/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/pages/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/search/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/source/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route/app-paths-manifest.json +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route/build-manifest.json +9 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route/server-reference-manifest.json +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route.js +6 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route.js.map +5 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route.js.nft.json +1 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/wikis/sources/route_client-reference-manifest.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/oss/list/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +15 -15
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +15 -15
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +11 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +18 -18
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +18 -18
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +11 -11
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
- package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +10 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_artifacts_route_actions_0doape5.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_ingest_route_actions_0ppwgam.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_page_route_actions_0odivj9.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_pages_route_actions_0s15y9a.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_route_actions_0dbjn9p.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_search_route_actions_108iypz.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_source_route_actions_0vmf0n5.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0ndq_server_app_api_v1_memory_stores_[store]_wikis_sources_route_actions_0i4~w4-.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +24 -17
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03~qmfv._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0_g86ij._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0db9xtg._.js +40 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0es0s_~._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0f~3a2d._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0is6qso._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0n.tvh_._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ohui_o._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ssi0g0._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0u03tze._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ua_nqs._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wpch_g._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ypo~ko._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0sa.9zr._.js → [root-of-the-server]__0yqtnx6._.js} +9 -9
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11rxx0.._.js +40 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__120vi1p._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13q2wbt._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95__next-internal_server_app_(dashboard)_memory_[store]_scope_page_actions_0n2kkfu.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95__next-internal_server_app_(dashboard)_memory_[store]_wiki_page_actions_01zih-8.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_esm_build_templates_app-page_07x7aai.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_esm_build_templates_app-page_0u~m_xi.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__05kcz99._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__06l7w~r._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__07fsbff._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0_6myqa._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0cn05tt._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0d-z.x1._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0i9tlv5._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0ov6305._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_02waf76._.js → _00.la1c._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_019ufsh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01r6jx1._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04rasxw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04wdnle._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0thp9l5._.js → _05__-74._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_05wwgdw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06.3nzk._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06ofr7j._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0bn79mh._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0cpcl4p._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0d_nd-j._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f.xs7l._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fz3kge._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0gyu-mm._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0jt60z2._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0kaclzw._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0lstkpb._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0qw41co._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0t.h859._.js → _0vfgz-v._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ww5s91._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_119lxvo._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{dashboard_src_0jrh7xy._.js → dashboard_src_0bhjp9s._.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0xaihln._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_api-keys_page_tsx_0lb6fu7._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_[dreamId]_page_tsx_0wy3tv6._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_dream_page_tsx_0uzzpvs._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_layout_tsx_0rbi41w._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_memory_memory-files-browser_tsx_0o2~94-._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_components_ui_01evqg6._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_i18n_i18n-context_tsx_0c39ewr._.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0..ymrl._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_12_d6fg._.js +3 -0
- package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +8 -0
- package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +3 -3
- package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/next-font-manifest.json +2 -0
- package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01nixb3ddw4hy.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01u9hj_9~5-vg.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/02q3tpry1ajx9.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/03rx12c5dxw_4.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/057-rg6~0wki8.css +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07q8af71w17xl.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07v6llp0fv6iq.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09hfvw~51z.9o.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0axnv6wy1_hr7.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bbcwyy.xvpd0.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0eafb9pun~54k.js → 0cfrd_r4jr_ip.js} +2 -2
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dpj.6wcf.qn8.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0f-mf~9z.~82q.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0gt8u.o_c_nix.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hh2728tmgrdk.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0idn9fvygbi9d.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0idr-.ttn_21z.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0amex7bwxnme9.js → 0jjiw-agnutux.js} +1 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k6m5~gmu0f8w.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k_rtgxnq8bsz.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nq2xdnij7nqt.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0nw7q~w~vg.-y.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0o-j8g9gp_c1r.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pm6vv5wntle..js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0qr499bd44k.g.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0sx_fx5r7nq4b.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0tbu6y0a22ok8.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u7fh6be6noif.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vfuo2829nn25.js +4 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wcf_hdt9arma.js +5 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xash~4j8pl87.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xi6y8g4l~vzr.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0y45-~ia9sqr0.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/10684vn7g6wln.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/1204oli3aouy7.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/13gbu.62oz207.js +138 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14t.r5~ls3k0x.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/15043qe~kvq-v.js +1 -0
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/168xs92lu3o~y.js +1 -0
- package/dist/dashboard-runtime/dashboard/package.json +1 -1
- package/dist/dashboard-runtime/dashboard/server.js +1 -1
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +14 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/[dreamId]/page.tsx +66 -58
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/dream/page.tsx +6 -6
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +36 -9
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/scope/page.tsx +51 -0
- package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/wiki/page.tsx +157 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-curator.ts +1 -4
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/file-memory-helpers.ts +6 -6
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-helpers.ts +50 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-retrieval.ts +160 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/memory-security.ts +26 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +477 -285
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/server-file-memory.ts +113 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/wiki-retrieval.ts +656 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/_scope.ts +67 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/file-memory/_helpers.ts +5 -23
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/_helpers.ts +317 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/artifacts/route.ts +194 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/ingest/route.ts +60 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/page/route.ts +55 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/pages/route.ts +61 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/route.ts +89 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/search/route.ts +58 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/source/route.ts +230 -0
- package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/sources/route.ts +295 -0
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/custom-policy-editor.tsx +2 -1
- package/dist/dashboard-runtime/dashboard/src/components/api-keys/permission-rule-dialog.tsx +17 -10
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-config-context.tsx +181 -32
- package/dist/dashboard-runtime/dashboard/src/components/chat/chat-scope-entry-hydrator.tsx +116 -0
- package/dist/dashboard-runtime/dashboard/src/components/chat/memory-bind-section.tsx +37 -15
- package/dist/dashboard-runtime/dashboard/src/components/chat/wiki-bind-section.tsx +153 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-actions-table.tsx +13 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-dream-create-dialog.tsx +359 -144
- package/dist/dashboard-runtime/dashboard/src/components/memory/memory-scope-bar.tsx +108 -76
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-combobox.tsx +31 -50
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-hierarchy-picker.tsx +274 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-workspace-cards.tsx +475 -0
- package/dist/dashboard-runtime/dashboard/src/components/memory/scope-workspace.tsx +197 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/answer-evidence-block.tsx +145 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/memory-evidence-content.tsx +106 -0
- package/dist/dashboard-runtime/dashboard/src/components/qa/qa-message.tsx +68 -84
- package/dist/dashboard-runtime/dashboard/src/components/qa/wiki-evidence-block.tsx +326 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-build-panel.tsx +640 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-detail.tsx +302 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-edit-dialog.tsx +195 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-overview.tsx +104 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-pages-panel.tsx +424 -0
- package/dist/dashboard-runtime/dashboard/src/components/wiki/wiki-sources-panel.tsx +506 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +625 -44
- package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +329 -94
- package/dist/dashboard-runtime/dashboard/src/hooks/use-wiki-build-polling.ts +151 -0
- package/dist/dashboard-runtime/dashboard/src/hooks/use-wikis.ts +291 -0
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/en.ts +389 -35
- package/dist/dashboard-runtime/dashboard/src/i18n/locales/zh.ts +356 -25
- package/dist/dashboard-runtime/dashboard/src/lib/browser-file-memory.ts +46 -340
- package/dist/dashboard-runtime/dashboard/src/lib/chat-scope-entry.ts +59 -0
- package/dist/dashboard-runtime/dashboard/src/lib/dream-create-options.ts +27 -0
- package/dist/dashboard-runtime/dashboard/src/lib/file-memory-core.ts +744 -0
- package/dist/dashboard-runtime/dashboard/src/lib/memory-storage-mode.ts +25 -4
- package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +93 -0
- package/dist/dashboard-runtime/dashboard/src/lib/retrieval-security.ts +54 -0
- package/dist/dashboard-runtime/dashboard/src/lib/scope-hierarchy.ts +167 -0
- package/dist/dashboard-runtime/dashboard/src/lib/scope-workspace.ts +123 -0
- package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +46 -3
- package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +3 -0
- package/dist/dashboard-runtime/dashboard/src/lib/wiki-metadata-limits.ts +133 -0
- package/dist/dashboard-runtime/dashboard/src/lib/wiki-page-tree.ts +153 -0
- package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +121 -21
- package/dist/dashboard-runtime/dashboard/src/services/wiki.ts +145 -0
- package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +72 -9
- package/dist/dashboard-runtime/dashboard/src/types/memory.ts +4 -29
- package/dist/dashboard-runtime/dashboard/src/types/wiki.ts +200 -0
- package/dist/dashboard-runtime/dashboard/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/CHANGELOG.md +175 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/LICENSE +201 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/README.md +203 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/package.json +3 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/request-context.js +21 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/sign-base.js +70 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/sign-v2.js +13 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/auth/sign-v4.js +51 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/client/agent-storage-client.js +196 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/errors/client-error.js +10 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/errors/service-error.js +16 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/http/headers.js +31 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/http/md5.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/http/ots-json-client.js +155 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/base.js +19 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/chunk.js +67 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/document.js +163 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/enums.js +31 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/file.js +27 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/knowledge-base.js +118 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/memory.js +711 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/metadata-filter.js +123 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/retrieve.js +152 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/unset.js +8 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/models/wiki.js +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/serialization/to-json-request.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/core/version.js +5 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/index.js +93 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/client/node-agent-storage-client.js +134 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/fs/file-path.js +73 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/fs/file-reader.js +13 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node/oss/oss-uploader.js +30 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/cjs/src/node.js +5 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/request-context.d.ts +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/request-context.js +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-base.d.ts +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-base.js +63 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v2.d.ts +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v2.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v4.d.ts +15 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/auth/sign-v4.js +47 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/client/agent-storage-client.d.ts +78 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/client/agent-storage-client.js +192 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/client-error.d.ts +3 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/client-error.js +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/service-error.d.ts +10 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/errors/service-error.js +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/headers.d.ts +14 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/headers.js +27 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/md5.d.ts +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/md5.js +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/ots-json-client.d.ts +27 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/http/ots-json-client.js +151 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/base.d.ts +5 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/base.js +15 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/chunk.d.ts +47 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/chunk.js +61 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/document.d.ts +107 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/document.js +151 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/enums.d.ts +24 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/enums.js +28 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/file.d.ts +364 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/file.js +24 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/knowledge-base.d.ts +97 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/knowledge-base.js +108 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/memory.d.ts +1018 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/memory.js +684 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/metadata-filter.d.ts +74 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/metadata-filter.js +118 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/retrieve.d.ts +113 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/retrieve.js +140 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/unset.d.ts +3 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/unset.js +4 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/wiki.d.ts +118 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/models/wiki.js +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/serialization/to-json-request.d.ts +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/serialization/to-json-request.js +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/version.d.ts +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/core/version.js +2 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/index.d.ts +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/index.js +16 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/client/node-agent-storage-client.d.ts +39 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/client/node-agent-storage-client.js +130 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-path.d.ts +12 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-path.js +34 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-reader.d.ts +8 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/fs/file-reader.js +9 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/oss/oss-uploader.d.ts +17 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node/oss/oss-uploader.js +23 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node.d.ts +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/dist/src/node.js +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/agent-storage/package.json +67 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts +13 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js +40 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +21 -9
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +7 -7
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +27 -20
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +55 -37
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts +6 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts.map +1 -1
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts +18 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts.map +1 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js +100 -0
- package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/index.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts +13 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js +40 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/internal/abortable-fetch.js.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +21 -9
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +7 -7
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +27 -20
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js +55 -37
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/response.js.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts +6 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/types.d.ts.map +1 -1
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts +18 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.d.ts.map +1 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js +100 -0
- package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/wiki-client.js.map +1 -0
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +1 -0
- package/dist/output.js.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0-wmyic._.js +0 -40
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.li3cj._.js +0 -40
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0y0w3mg._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0.ooo1s._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0b5cw4e._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0p1cst6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0xza7lz._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.6x0yu._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0.pa1e6._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_01snuz~._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06_hoj_._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0_aw2vr._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0brqbty._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0csuit-._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0eps5jg._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0ez3yia._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0odjvc.._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0pwlb77._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0wce254._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_12l8jkb._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0_z9696._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0grv2wq._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0jns_ph._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0ymj2~2._.js +0 -3
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-xwobg-a6si1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/01bokygf48bnj.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/026lyw-ynx1og.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/04a.1c2rygy08.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05.2q9f0yx4e_.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/05_iqjh-v2gej.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/07twdccs42b_-.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/09v-qczj__g1x.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_8~9zgfm5f.8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0_zw2y~vb_52n.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0a2f-mxepv-y7.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0apfhv-v7oy7u.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0bxt5icwb83xt.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0dpi1comd-thc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0eerrv808~6bh.js +0 -4
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0j6agpotrd_n4.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jbcdgtcgqemd.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jp7zmwvyv0bn.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0k8mhea24d_kj.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0krt75we1wtcy.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ogrq_r43je48.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0prl9yrb8ksp8.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r4azm.3hswcs.js +0 -138
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r6utd8g~.cc1.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0uj7ezedkm6ou.css +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x5qtkdg2trq9.js +0 -5
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zatcw.k613lh.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0zhfdjby7cj-q.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~naqbx3873~r.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/13__t3s3ipfzl.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/14.8mq880kjoc.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/16uky1ro-t_~9.js +0 -1
- package/dist/dashboard-runtime/dashboard/.next/static/chunks/18absak_u0d85.js +0 -138
- /package/dist/dashboard-runtime/dashboard/.next/static/{8G6beqTEKH_-N0JljpgWT → bKUtNfKb47TOc1cpUk74A}/_buildManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{8G6beqTEKH_-N0JljpgWT → bKUtNfKb47TOc1cpUk74A}/_clientMiddlewareManifest.js +0 -0
- /package/dist/dashboard-runtime/dashboard/.next/static/{8G6beqTEKH_-N0JljpgWT → bKUtNfKb47TOc1cpUk74A}/_ssgManifest.js +0 -0
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
import type { MemoryScope } from "@tablestore/tablestore-agent-shared";
|
|
2
2
|
|
|
3
|
+
export interface ExactMemoryScope {
|
|
4
|
+
appId: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
agentId: string;
|
|
7
|
+
runId: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AgentWikiScope {
|
|
11
|
+
appId: string;
|
|
12
|
+
tenantId: string;
|
|
13
|
+
agentId: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function readAgentWikiScope(raw: unknown): AgentWikiScope | null {
|
|
17
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null;
|
|
18
|
+
|
|
19
|
+
const value = raw as Record<string, unknown>;
|
|
20
|
+
const read = (key: keyof AgentWikiScope) => {
|
|
21
|
+
const component = value[key];
|
|
22
|
+
if (typeof component !== "string") return null;
|
|
23
|
+
const normalized = component.trim();
|
|
24
|
+
return normalized && normalized !== "*" ? normalized : null;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const appId = read("appId");
|
|
28
|
+
const tenantId = read("tenantId");
|
|
29
|
+
const agentId = read("agentId");
|
|
30
|
+
if (!appId || !tenantId || !agentId) return null;
|
|
31
|
+
|
|
32
|
+
return { appId, tenantId, agentId };
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function toAgentWikiScope(
|
|
36
|
+
scope: AgentWikiScope | ExactMemoryScope,
|
|
37
|
+
): AgentWikiScope {
|
|
38
|
+
return {
|
|
39
|
+
appId: scope.appId,
|
|
40
|
+
tenantId: scope.tenantId,
|
|
41
|
+
agentId: scope.agentId,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Read a concrete four-part Memory scope from an untrusted value.
|
|
47
|
+
*
|
|
48
|
+
* Point APIs must not widen missing components or accept wildcard segments.
|
|
49
|
+
*/
|
|
50
|
+
export function readExactMemoryScope(raw: unknown): ExactMemoryScope | null {
|
|
51
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null;
|
|
52
|
+
|
|
53
|
+
const value = raw as Record<string, unknown>;
|
|
54
|
+
const read = (key: keyof ExactMemoryScope) => {
|
|
55
|
+
const component = value[key];
|
|
56
|
+
if (typeof component !== "string") return null;
|
|
57
|
+
const normalized = component.trim();
|
|
58
|
+
return normalized && normalized !== "*" ? normalized : null;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const appId = read("appId");
|
|
62
|
+
const tenantId = read("tenantId");
|
|
63
|
+
const agentId = read("agentId");
|
|
64
|
+
const runId = read("runId");
|
|
65
|
+
if (!appId || !tenantId || !agentId || !runId) return null;
|
|
66
|
+
|
|
67
|
+
return { appId, tenantId, agentId, runId };
|
|
68
|
+
}
|
|
69
|
+
|
|
3
70
|
/**
|
|
4
71
|
* Extract a {@link MemoryScope} from URL query parameters.
|
|
5
72
|
*
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
runId: string;
|
|
6
|
-
}
|
|
1
|
+
import { readExactMemoryScope, type ExactMemoryScope } from "../_scope";
|
|
2
|
+
|
|
3
|
+
export { readExactMemoryScope } from "../_scope";
|
|
4
|
+
export type ExactFileMemoryScope = ExactMemoryScope;
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* File APIs only accept a concrete four-part scope. Unlike structured-memory
|
|
@@ -12,21 +10,5 @@ export interface ExactFileMemoryScope {
|
|
|
12
10
|
export function readExactFileMemoryScope(
|
|
13
11
|
raw: unknown,
|
|
14
12
|
): ExactFileMemoryScope | null {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const value = raw as Record<string, unknown>;
|
|
18
|
-
const read = (key: "appId" | "tenantId" | "agentId" | "runId") => {
|
|
19
|
-
const component = value[key];
|
|
20
|
-
if (typeof component !== "string") return null;
|
|
21
|
-
const normalized = component.trim();
|
|
22
|
-
return normalized && normalized !== "*" ? normalized : null;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const appId = read("appId");
|
|
26
|
-
const tenantId = read("tenantId");
|
|
27
|
-
const agentId = read("agentId");
|
|
28
|
-
const runId = read("runId");
|
|
29
|
-
if (!appId || !tenantId || !agentId || !runId) return null;
|
|
30
|
-
|
|
31
|
-
return { appId, tenantId, agentId, runId };
|
|
13
|
+
return readExactMemoryScope(raw);
|
|
32
14
|
}
|
package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/_helpers.ts
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import type { AgentWikiScope } from "../_scope";
|
|
2
|
+
import { readAgentWikiScope } from "../_scope";
|
|
3
|
+
|
|
4
|
+
const MAX_NAME_BYTES = 256;
|
|
5
|
+
const MAX_SUMMARY_BYTES = 4096;
|
|
6
|
+
const MAX_CLIENT_TOKEN_BYTES = 256;
|
|
7
|
+
const MAX_PAGE_PATH_BYTES = 1024;
|
|
8
|
+
const MAX_DREAM_ACTION_REFS = 100;
|
|
9
|
+
const CONTROL_CHARACTER_PATTERN = /\p{Cc}/u;
|
|
10
|
+
|
|
11
|
+
export const SOURCE_EXTENSIONS = new Set([".md", ".txt"]);
|
|
12
|
+
export const MAX_SOURCE_CONTENT_BYTES = 100 * 1024;
|
|
13
|
+
const WIKI_SOURCE_ERROR_MESSAGE = "Wiki source operation failed";
|
|
14
|
+
|
|
15
|
+
export interface PublicWikiSource {
|
|
16
|
+
path: string;
|
|
17
|
+
contentSha256: string;
|
|
18
|
+
contentSizeBytes: number;
|
|
19
|
+
latestVersionId: string;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
content?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface WikiJsonBody extends Record<string, unknown> {
|
|
26
|
+
scope: AgentWikiScope;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function sanitizeWikiSourceErrorResponse<
|
|
30
|
+
T extends { code: string; message: string },
|
|
31
|
+
>(response: T): T {
|
|
32
|
+
return response.code === "SUCCESS"
|
|
33
|
+
? response
|
|
34
|
+
: { ...response, message: WIKI_SOURCE_ERROR_MESSAGE };
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type OptionalValue<T> = { ok: true; value?: T } | { ok: false };
|
|
38
|
+
|
|
39
|
+
export interface DreamActionRef {
|
|
40
|
+
dreamId: string;
|
|
41
|
+
actionId: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function utf8Length(value: string): number {
|
|
45
|
+
return new TextEncoder().encode(value).byteLength;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function invalidRawSource(): never {
|
|
49
|
+
throw new Error("Invalid Wiki raw source");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function toWikiRawItemPath(rawRelativePath: unknown): string {
|
|
53
|
+
if (typeof rawRelativePath !== "string") invalidRawSource();
|
|
54
|
+
|
|
55
|
+
const relativePath = rawRelativePath.normalize("NFC");
|
|
56
|
+
if (
|
|
57
|
+
!relativePath ||
|
|
58
|
+
relativePath.startsWith("/") ||
|
|
59
|
+
relativePath.endsWith("/") ||
|
|
60
|
+
relativePath.includes("\\") ||
|
|
61
|
+
relativePath.includes("\0")
|
|
62
|
+
) {
|
|
63
|
+
invalidRawSource();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const segments = relativePath.split("/");
|
|
67
|
+
if (
|
|
68
|
+
segments.some((segment) => !segment || segment === "." || segment === "..")
|
|
69
|
+
) {
|
|
70
|
+
invalidRawSource();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const fileName = segments.at(-1)!;
|
|
74
|
+
const dot = fileName.lastIndexOf(".");
|
|
75
|
+
const extension = dot < 0 ? "" : fileName.slice(dot).toLowerCase();
|
|
76
|
+
if (!SOURCE_EXTENSIONS.has(extension)) invalidRawSource();
|
|
77
|
+
|
|
78
|
+
const physicalPath = `/.wiki/raw/${relativePath}`;
|
|
79
|
+
if (utf8Length(physicalPath) > MAX_PAGE_PATH_BYTES) invalidRawSource();
|
|
80
|
+
return physicalPath;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function fromWikiRawItemPath(rawPhysicalPath: unknown): string {
|
|
84
|
+
if (typeof rawPhysicalPath !== "string") invalidRawSource();
|
|
85
|
+
|
|
86
|
+
const prefix = "/.wiki/raw/";
|
|
87
|
+
if (!rawPhysicalPath.startsWith(prefix)) invalidRawSource();
|
|
88
|
+
const relativePath = rawPhysicalPath.slice(prefix.length);
|
|
89
|
+
if (toWikiRawItemPath(relativePath) !== rawPhysicalPath) {
|
|
90
|
+
invalidRawSource();
|
|
91
|
+
}
|
|
92
|
+
return relativePath;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function assertWikiSourceContent(rawContent: unknown): string {
|
|
96
|
+
if (
|
|
97
|
+
typeof rawContent !== "string" ||
|
|
98
|
+
utf8Length(rawContent) > MAX_SOURCE_CONTENT_BYTES
|
|
99
|
+
) {
|
|
100
|
+
throw new Error("Invalid Wiki raw source content");
|
|
101
|
+
}
|
|
102
|
+
return rawContent;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function toPublicWikiSource(rawItem: unknown): PublicWikiSource {
|
|
106
|
+
if (!rawItem || typeof rawItem !== "object" || Array.isArray(rawItem)) {
|
|
107
|
+
invalidRawSource();
|
|
108
|
+
}
|
|
109
|
+
const item = rawItem as Record<string, unknown>;
|
|
110
|
+
if (
|
|
111
|
+
typeof item.contentSha256 !== "string" ||
|
|
112
|
+
typeof item.contentSizeBytes !== "number" ||
|
|
113
|
+
!Number.isFinite(item.contentSizeBytes) ||
|
|
114
|
+
item.contentSizeBytes < 0 ||
|
|
115
|
+
typeof item.latestVersionId !== "string" ||
|
|
116
|
+
!item.latestVersionId ||
|
|
117
|
+
typeof item.createdAt !== "string" ||
|
|
118
|
+
typeof item.updatedAt !== "string" ||
|
|
119
|
+
(item.content !== undefined && typeof item.content !== "string")
|
|
120
|
+
) {
|
|
121
|
+
throw new Error("Invalid Memory Item response");
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
path: fromWikiRawItemPath(item.path),
|
|
125
|
+
contentSha256: item.contentSha256,
|
|
126
|
+
contentSizeBytes: item.contentSizeBytes,
|
|
127
|
+
latestVersionId: item.latestVersionId,
|
|
128
|
+
createdAt: item.createdAt,
|
|
129
|
+
updatedAt: item.updatedAt,
|
|
130
|
+
...(typeof item.content === "string" ? { content: item.content } : {}),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function hasCallerWikiId(
|
|
135
|
+
request: Request,
|
|
136
|
+
body?: Record<string, unknown> | null,
|
|
137
|
+
): boolean {
|
|
138
|
+
return (
|
|
139
|
+
new URL(request.url).searchParams.has("wikiId") ||
|
|
140
|
+
(body !== undefined &&
|
|
141
|
+
body !== null &&
|
|
142
|
+
Object.prototype.hasOwnProperty.call(body, "wikiId"))
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function hasCallerBuildId(
|
|
147
|
+
request: Request,
|
|
148
|
+
body?: Record<string, unknown> | null,
|
|
149
|
+
): boolean {
|
|
150
|
+
return (
|
|
151
|
+
new URL(request.url).searchParams.has("buildId") ||
|
|
152
|
+
(body !== undefined &&
|
|
153
|
+
body !== null &&
|
|
154
|
+
Object.prototype.hasOwnProperty.call(body, "buildId"))
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function readExactScopeFromQuery(
|
|
159
|
+
params: URLSearchParams,
|
|
160
|
+
): AgentWikiScope | null {
|
|
161
|
+
return readAgentWikiScope({
|
|
162
|
+
appId: params.get("appId"),
|
|
163
|
+
tenantId: params.get("tenantId"),
|
|
164
|
+
agentId: params.get("agentId"),
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export async function readWikiJsonBody(
|
|
169
|
+
request: Request,
|
|
170
|
+
): Promise<WikiJsonBody | null> {
|
|
171
|
+
let raw: unknown;
|
|
172
|
+
try {
|
|
173
|
+
raw = await request.json();
|
|
174
|
+
} catch {
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null;
|
|
178
|
+
|
|
179
|
+
const body = raw as Record<string, unknown>;
|
|
180
|
+
const scope = readAgentWikiScope(body.scope);
|
|
181
|
+
return scope ? { ...body, scope } : null;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function readWikiPagePath(raw: unknown): string | null {
|
|
185
|
+
if (typeof raw !== "string" || raw.includes("\\") || raw.includes("\0")) {
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
const path = raw;
|
|
190
|
+
if (
|
|
191
|
+
!path.startsWith("/wiki/") ||
|
|
192
|
+
!path.toLowerCase().endsWith(".md") ||
|
|
193
|
+
utf8Length(path) > MAX_PAGE_PATH_BYTES
|
|
194
|
+
) {
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const segments = path.split("/").slice(1);
|
|
199
|
+
if (
|
|
200
|
+
segments.some(
|
|
201
|
+
(segment) => segment.length === 0 || segment === "." || segment === "..",
|
|
202
|
+
)
|
|
203
|
+
) {
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
return path;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export function readRequiredWikiName(raw: unknown): string | null {
|
|
210
|
+
if (typeof raw !== "string" || utf8Length(raw) > MAX_NAME_BYTES) return null;
|
|
211
|
+
const name = raw.trim();
|
|
212
|
+
return name || null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export function readOptionalWikiName(raw: unknown): OptionalValue<string> {
|
|
216
|
+
if (raw === undefined) return { ok: true };
|
|
217
|
+
const name = readRequiredWikiName(raw);
|
|
218
|
+
return name === null ? { ok: false } : { ok: true, value: name };
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function readOptionalWikiSummary(raw: unknown): OptionalValue<string> {
|
|
222
|
+
if (raw === undefined) return { ok: true };
|
|
223
|
+
return typeof raw === "string" && utf8Length(raw) <= MAX_SUMMARY_BYTES
|
|
224
|
+
? { ok: true, value: raw }
|
|
225
|
+
: { ok: false };
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function readOptionalClientToken(raw: unknown): OptionalValue<string> {
|
|
229
|
+
if (raw === undefined) return { ok: true };
|
|
230
|
+
if (
|
|
231
|
+
typeof raw !== "string" ||
|
|
232
|
+
!raw.trim() ||
|
|
233
|
+
utf8Length(raw) > MAX_CLIENT_TOKEN_BYTES
|
|
234
|
+
) {
|
|
235
|
+
return { ok: false };
|
|
236
|
+
}
|
|
237
|
+
return { ok: true, value: raw };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export function readOptionalDreamActionRefs(
|
|
241
|
+
raw: unknown,
|
|
242
|
+
): OptionalValue<DreamActionRef[]> {
|
|
243
|
+
if (raw === undefined) return { ok: true };
|
|
244
|
+
if (!Array.isArray(raw) || raw.length > MAX_DREAM_ACTION_REFS) {
|
|
245
|
+
return { ok: false };
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const refs: DreamActionRef[] = [];
|
|
249
|
+
const seen = new Set<string>();
|
|
250
|
+
for (const value of raw) {
|
|
251
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
252
|
+
return { ok: false };
|
|
253
|
+
}
|
|
254
|
+
const record = value as Record<string, unknown>;
|
|
255
|
+
if (
|
|
256
|
+
typeof record.dreamId !== "string" ||
|
|
257
|
+
typeof record.actionId !== "string"
|
|
258
|
+
) {
|
|
259
|
+
return { ok: false };
|
|
260
|
+
}
|
|
261
|
+
const normalizedDreamId = record.dreamId.trim();
|
|
262
|
+
const normalizedActionId = record.actionId.trim();
|
|
263
|
+
if (
|
|
264
|
+
!normalizedDreamId ||
|
|
265
|
+
!normalizedActionId ||
|
|
266
|
+
utf8Length(record.dreamId) > 128 ||
|
|
267
|
+
utf8Length(record.actionId) > 128 ||
|
|
268
|
+
utf8Length(normalizedDreamId) > 128 ||
|
|
269
|
+
utf8Length(normalizedActionId) > 128 ||
|
|
270
|
+
CONTROL_CHARACTER_PATTERN.test(normalizedDreamId + normalizedActionId)
|
|
271
|
+
) {
|
|
272
|
+
return { ok: false };
|
|
273
|
+
}
|
|
274
|
+
const key = `${normalizedDreamId}\0${normalizedActionId}`;
|
|
275
|
+
if (seen.has(key)) return { ok: false };
|
|
276
|
+
seen.add(key);
|
|
277
|
+
refs.push({
|
|
278
|
+
dreamId: normalizedDreamId,
|
|
279
|
+
actionId: normalizedActionId,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
return { ok: true, value: refs };
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export function readOptionalQueryLimit(
|
|
286
|
+
raw: string | null,
|
|
287
|
+
): OptionalValue<number> {
|
|
288
|
+
if (raw === null) return { ok: true };
|
|
289
|
+
if (!/^\d+$/.test(raw)) return { ok: false };
|
|
290
|
+
const limit = Number(raw);
|
|
291
|
+
return Number.isInteger(limit) && limit >= 1 && limit <= 100
|
|
292
|
+
? { ok: true, value: limit }
|
|
293
|
+
: { ok: false };
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export function readOptionalJsonLimit(raw: unknown): OptionalValue<number> {
|
|
297
|
+
if (raw === undefined) return { ok: true };
|
|
298
|
+
return typeof raw === "number" &&
|
|
299
|
+
Number.isInteger(raw) &&
|
|
300
|
+
raw >= 1 &&
|
|
301
|
+
raw <= 100
|
|
302
|
+
? { ok: true, value: raw }
|
|
303
|
+
: { ok: false };
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export function readOptionalNextToken(
|
|
307
|
+
raw: string | null,
|
|
308
|
+
): OptionalValue<string> {
|
|
309
|
+
if (raw === null) return { ok: true };
|
|
310
|
+
return raw.trim() ? { ok: true, value: raw } : { ok: false };
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export function readRequiredSearchQuery(raw: unknown): string | null {
|
|
314
|
+
if (typeof raw !== "string") return null;
|
|
315
|
+
const query = raw.trim();
|
|
316
|
+
return query || null;
|
|
317
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { NextRequest } from "next/server";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
errorResponse,
|
|
5
|
+
forwardResponse,
|
|
6
|
+
handleApiError,
|
|
7
|
+
requireClients,
|
|
8
|
+
} from "@/lib/server/api-helpers";
|
|
9
|
+
|
|
10
|
+
import { readExactScopeFromQuery } from "../_helpers";
|
|
11
|
+
import { readExactMemoryScope, type AgentWikiScope } from "../../_scope";
|
|
12
|
+
|
|
13
|
+
export const runtime = "nodejs";
|
|
14
|
+
export const dynamic = "force-dynamic";
|
|
15
|
+
|
|
16
|
+
type ArtifactKind = "skill" | "profile";
|
|
17
|
+
|
|
18
|
+
interface RouteContext {
|
|
19
|
+
params: Promise<{ store: string }>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface PublicArtifact {
|
|
23
|
+
dreamId: string;
|
|
24
|
+
actionId: string;
|
|
25
|
+
kind: ArtifactKind;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
targetScope: {
|
|
29
|
+
appId: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
agentId: string;
|
|
32
|
+
runId: string;
|
|
33
|
+
};
|
|
34
|
+
appliedAt?: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function scopeKey(scope: AgentWikiScope): string {
|
|
40
|
+
return [scope.appId, scope.tenantId, scope.agentId].join("\0");
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const ACTION_TYPE: Record<ArtifactKind, "EMIT_SKILL" | "EMIT_PROFILE"> = {
|
|
44
|
+
skill: "EMIT_SKILL",
|
|
45
|
+
profile: "EMIT_PROFILE",
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
function readKind(raw: string | null): ArtifactKind | null {
|
|
49
|
+
return raw === "skill" || raw === "profile" ? raw : null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function readLimit(raw: string | null): number | null {
|
|
53
|
+
if (raw === null) return 100;
|
|
54
|
+
const value = Number(raw);
|
|
55
|
+
return Number.isInteger(value) && value >= 1 && value <= 100 ? value : null;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function readRequiredString(
|
|
59
|
+
value: Record<string, unknown>,
|
|
60
|
+
key: string,
|
|
61
|
+
): string | null {
|
|
62
|
+
const raw = value[key];
|
|
63
|
+
return typeof raw === "string" && raw.length > 0 ? raw : null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function normalizeArtifact(
|
|
67
|
+
raw: unknown,
|
|
68
|
+
kind: ArtifactKind,
|
|
69
|
+
expectedScope: AgentWikiScope,
|
|
70
|
+
): PublicArtifact | null {
|
|
71
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) return null;
|
|
72
|
+
const action = raw as Record<string, unknown>;
|
|
73
|
+
if (action.action !== ACTION_TYPE[kind] || action.status !== "applied") {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
if (
|
|
77
|
+
!action.newExtract ||
|
|
78
|
+
typeof action.newExtract !== "object" ||
|
|
79
|
+
Array.isArray(action.newExtract) ||
|
|
80
|
+
!action.targetScope ||
|
|
81
|
+
typeof action.targetScope !== "object" ||
|
|
82
|
+
Array.isArray(action.targetScope)
|
|
83
|
+
) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
const extract = action.newExtract as Record<string, unknown>;
|
|
87
|
+
const targetScope = readExactMemoryScope(action.targetScope);
|
|
88
|
+
const dreamId = readRequiredString(action, "dreamId");
|
|
89
|
+
const actionId = readRequiredString(action, "actionId");
|
|
90
|
+
const name = readRequiredString(extract, "name");
|
|
91
|
+
const description = readRequiredString(extract, "description");
|
|
92
|
+
const createdAt = readRequiredString(action, "createdAt");
|
|
93
|
+
const updatedAt = readRequiredString(action, "updatedAt");
|
|
94
|
+
if (
|
|
95
|
+
extract.kind !== kind ||
|
|
96
|
+
!dreamId ||
|
|
97
|
+
!actionId ||
|
|
98
|
+
!name ||
|
|
99
|
+
!description ||
|
|
100
|
+
!targetScope ||
|
|
101
|
+
scopeKey(targetScope) !== scopeKey(expectedScope) ||
|
|
102
|
+
!createdAt ||
|
|
103
|
+
!updatedAt
|
|
104
|
+
) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const appliedAt = readRequiredString(action, "appliedAt");
|
|
109
|
+
return {
|
|
110
|
+
dreamId,
|
|
111
|
+
actionId,
|
|
112
|
+
kind,
|
|
113
|
+
name,
|
|
114
|
+
description,
|
|
115
|
+
targetScope,
|
|
116
|
+
...(appliedAt ? { appliedAt } : {}),
|
|
117
|
+
createdAt,
|
|
118
|
+
updatedAt,
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function normalizeArtifacts(
|
|
123
|
+
raw: unknown,
|
|
124
|
+
kind: ArtifactKind,
|
|
125
|
+
expectedScope: AgentWikiScope,
|
|
126
|
+
): PublicArtifact[] {
|
|
127
|
+
if (!Array.isArray(raw)) return [];
|
|
128
|
+
const artifacts: PublicArtifact[] = [];
|
|
129
|
+
const seen = new Set<string>();
|
|
130
|
+
for (const row of raw) {
|
|
131
|
+
const artifact = normalizeArtifact(row, kind, expectedScope);
|
|
132
|
+
if (!artifact) continue;
|
|
133
|
+
const key = `${artifact.dreamId}\0${artifact.actionId}`;
|
|
134
|
+
if (seen.has(key)) continue;
|
|
135
|
+
seen.add(key);
|
|
136
|
+
artifacts.push(artifact);
|
|
137
|
+
}
|
|
138
|
+
return artifacts;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export async function GET(request: NextRequest, context: RouteContext) {
|
|
142
|
+
try {
|
|
143
|
+
const { store } = await context.params;
|
|
144
|
+
const auth = requireClients(request);
|
|
145
|
+
if (!("memory" in auth)) return auth;
|
|
146
|
+
|
|
147
|
+
const params = new URL(request.url).searchParams;
|
|
148
|
+
const kind = readKind(params.get("kind"));
|
|
149
|
+
const scope = readExactScopeFromQuery(params);
|
|
150
|
+
const limit = readLimit(params.get("limit"));
|
|
151
|
+
if (!kind || !scope || limit === null) {
|
|
152
|
+
return errorResponse(
|
|
153
|
+
"BAD_REQUEST",
|
|
154
|
+
"kind, exact scope, and a limit between 1 and 100 are required",
|
|
155
|
+
400,
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const nextToken = params.get("nextToken") || undefined;
|
|
160
|
+
const response = await auth.memory.listMemoryDreamActions(
|
|
161
|
+
{
|
|
162
|
+
memoryStoreName: store,
|
|
163
|
+
scope: { ...scope, runId: "*" },
|
|
164
|
+
actionType: ACTION_TYPE[kind],
|
|
165
|
+
status: "applied",
|
|
166
|
+
limit,
|
|
167
|
+
...(nextToken ? { nextToken } : {}),
|
|
168
|
+
},
|
|
169
|
+
request.signal,
|
|
170
|
+
);
|
|
171
|
+
if (response.code !== "SUCCESS") return forwardResponse(response);
|
|
172
|
+
|
|
173
|
+
const data =
|
|
174
|
+
response.data &&
|
|
175
|
+
typeof response.data === "object" &&
|
|
176
|
+
!Array.isArray(response.data)
|
|
177
|
+
? (response.data as Record<string, unknown>)
|
|
178
|
+
: {};
|
|
179
|
+
const upstreamNextToken =
|
|
180
|
+
typeof data.nextToken === "string" ? data.nextToken : undefined;
|
|
181
|
+
return forwardResponse({
|
|
182
|
+
...response,
|
|
183
|
+
data: {
|
|
184
|
+
memoryStoreName: store,
|
|
185
|
+
artifacts: normalizeArtifacts(data.actions, kind, scope),
|
|
186
|
+
...(upstreamNextToken !== undefined
|
|
187
|
+
? { nextToken: upstreamNextToken }
|
|
188
|
+
: {}),
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
} catch (error) {
|
|
192
|
+
return handleApiError(error);
|
|
193
|
+
}
|
|
194
|
+
}
|
package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/wikis/ingest/route.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { NextRequest } from "next/server";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
errorResponse,
|
|
5
|
+
forwardResponse,
|
|
6
|
+
handleApiError,
|
|
7
|
+
requireClients,
|
|
8
|
+
} from "@/lib/server/api-helpers";
|
|
9
|
+
|
|
10
|
+
import {
|
|
11
|
+
hasCallerWikiId,
|
|
12
|
+
readOptionalClientToken,
|
|
13
|
+
readOptionalDreamActionRefs,
|
|
14
|
+
readWikiJsonBody,
|
|
15
|
+
} from "../_helpers";
|
|
16
|
+
import { toAgentWikiScope } from "../../_scope";
|
|
17
|
+
|
|
18
|
+
export const runtime = "nodejs";
|
|
19
|
+
export const dynamic = "force-dynamic";
|
|
20
|
+
|
|
21
|
+
interface RouteContext {
|
|
22
|
+
params: Promise<{ store: string }>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function POST(request: NextRequest, context: RouteContext) {
|
|
26
|
+
try {
|
|
27
|
+
const { store } = await context.params;
|
|
28
|
+
const auth = requireClients(request);
|
|
29
|
+
if (!("wiki" in auth)) return auth;
|
|
30
|
+
|
|
31
|
+
const body = await readWikiJsonBody(request);
|
|
32
|
+
const clientToken = readOptionalClientToken(body?.clientToken);
|
|
33
|
+
const dreamActionRefs = readOptionalDreamActionRefs(body?.dreamActionRefs);
|
|
34
|
+
if (
|
|
35
|
+
!body ||
|
|
36
|
+
hasCallerWikiId(request, body) ||
|
|
37
|
+
!clientToken.ok ||
|
|
38
|
+
!dreamActionRefs.ok
|
|
39
|
+
) {
|
|
40
|
+
return errorResponse("BAD_REQUEST", "Invalid ingest Wiki request", 400);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const response = await auth.wiki.ingestWiki(
|
|
44
|
+
{
|
|
45
|
+
memoryStoreName: store,
|
|
46
|
+
scope: toAgentWikiScope(body.scope),
|
|
47
|
+
...(clientToken.value !== undefined
|
|
48
|
+
? { clientToken: clientToken.value }
|
|
49
|
+
: {}),
|
|
50
|
+
...(dreamActionRefs.value !== undefined
|
|
51
|
+
? { dreamActionRefs: dreamActionRefs.value }
|
|
52
|
+
: {}),
|
|
53
|
+
},
|
|
54
|
+
request.signal,
|
|
55
|
+
);
|
|
56
|
+
return forwardResponse(response);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
return handleApiError(error);
|
|
59
|
+
}
|
|
60
|
+
}
|