deepspace 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/cli.js +422 -5942
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -179
- package/dist/index.js +0 -143
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +13 -240
- package/dist/server.js +25 -1313
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +13 -378
- package/dist/worker.js +29 -1377
- package/dist/worker.js.map +1 -1
- package/features/ai-chat/feature.json +1 -1
- package/features/ai-chat/src/ChatPanel.tsx +11 -7
- package/package.json +1 -21
- package/dist/chunk-DQ4G6VL6.js +0 -1535
- package/dist/chunk-DQ4G6VL6.js.map +0 -1
- package/dist/docs-client-core.d.ts +0 -18
- package/dist/docs-client-core.js +0 -386
- package/dist/docs-client-core.js.map +0 -1
- package/dist/docs-react.d.ts +0 -2
- package/dist/docs-react.js +0 -35
- package/dist/docs-react.js.map +0 -1
- package/dist/docs-runtime.js +0 -71
- package/dist/docs-server-core.d.ts +0 -11
- package/dist/docs-server-core.js +0 -48
- package/dist/docs-server-core.js.map +0 -1
- package/dist/docs.d.ts +0 -350
- package/dist/docs.js +0 -5139
- package/dist/docs.js.map +0 -1
- package/dist/public-Cp1X8ZQ3.d.ts +0 -230
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"patterns": [
|
|
38
38
|
"ChatPanel takes `chatId` (or null). Parent owns chat lifecycle (create / select / delete); pass `disabled` while a parent-driven create is in flight so the panel doesn't kick off its own auto-create.",
|
|
39
|
-
"
|
|
39
|
+
"ChatPanel's DEFAULT_MODELS and worker.ts's ALLOWED_MODELS must stay in sync — add entries to both when introducing a new model.",
|
|
40
40
|
"Compaction summary is stored on the ai-chats row (compactedSummary, compactedThroughId). The summarizer is user-billed by default; pass `makeDefaultSummarizer(c.env)` with no authToken in worker.ts to absorb the cost as the developer instead.",
|
|
41
41
|
"Tool execution is server-side and per-user RBAC-enforced (records.* tools see only what the caller would see). `stopWhen: stepCountIs(5)` caps tool-use rounds per turn."
|
|
42
42
|
]
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ChevronDown,
|
|
21
21
|
Square,
|
|
22
22
|
} from 'lucide-react'
|
|
23
|
-
import {
|
|
23
|
+
import { useQuery } from 'deepspace'
|
|
24
24
|
import { EmptyState, MessageTurn, ThinkingIndicator } from './ChatPanel.messages'
|
|
25
25
|
import { useStreamingChat } from './ChatPanel.stream'
|
|
26
26
|
|
|
@@ -73,12 +73,16 @@ const DEFAULT_PROMPTS = [
|
|
|
73
73
|
'List my collections',
|
|
74
74
|
]
|
|
75
75
|
|
|
76
|
-
//
|
|
77
|
-
const DEFAULT_MODELS: ModelOption[] =
|
|
78
|
-
id:
|
|
79
|
-
label:
|
|
80
|
-
|
|
81
|
-
}
|
|
76
|
+
// Keep this picker aligned with ALLOWED_MODELS in src/ai/chat-routes.ts.
|
|
77
|
+
const DEFAULT_MODELS: ModelOption[] = [
|
|
78
|
+
{ id: 'claude-sonnet-5', label: 'Claude Sonnet 5', provider: 'Anthropic' },
|
|
79
|
+
{ id: 'claude-opus-4-8', label: 'Claude Opus 4.8', provider: 'Anthropic' },
|
|
80
|
+
{ id: 'claude-haiku-4-5', label: 'Claude Haiku 4.5', provider: 'Anthropic' },
|
|
81
|
+
{ id: 'gpt-5.6-terra', label: 'GPT-5.6 Terra', provider: 'OpenAI' },
|
|
82
|
+
{ id: 'gpt-5.6-sol', label: 'GPT-5.6 Sol', provider: 'OpenAI' },
|
|
83
|
+
{ id: 'gpt-5.6-luna', label: 'GPT-5.6 Luna', provider: 'OpenAI' },
|
|
84
|
+
{ id: 'gpt-oss-120b', label: 'GPT-OSS 120B', provider: 'Cerebras' },
|
|
85
|
+
]
|
|
82
86
|
|
|
83
87
|
export function ChatPanel({
|
|
84
88
|
chatId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepspace",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.15.0"
|
|
6
6
|
},
|
|
@@ -28,14 +28,6 @@
|
|
|
28
28
|
"./testing": {
|
|
29
29
|
"types": "./dist/testing.d.ts",
|
|
30
30
|
"import": "./dist/testing.js"
|
|
31
|
-
},
|
|
32
|
-
"./docs": {
|
|
33
|
-
"types": "./dist/docs.d.ts",
|
|
34
|
-
"import": "./dist/docs.js"
|
|
35
|
-
},
|
|
36
|
-
"./docs/react": {
|
|
37
|
-
"types": "./dist/docs-react.d.ts",
|
|
38
|
-
"import": "./dist/docs-react.js"
|
|
39
31
|
}
|
|
40
32
|
},
|
|
41
33
|
"files": [
|
|
@@ -55,25 +47,14 @@
|
|
|
55
47
|
"@ai-sdk/openai": "^2.0.0",
|
|
56
48
|
"@ai-sdk/openai-compatible": "^1.0.0",
|
|
57
49
|
"@clack/prompts": "^1.2.0",
|
|
58
|
-
"@mdx-js/mdx": "^3.1.1",
|
|
59
|
-
"acorn": "^8.16.0",
|
|
60
50
|
"ai": "^5.0.0",
|
|
61
51
|
"better-auth": "1.6.23",
|
|
62
52
|
"citty": "^0.2.0",
|
|
63
53
|
"cross-spawn": "^7.0.6",
|
|
64
54
|
"esbuild": "^0.27.0",
|
|
65
|
-
"highlight.js": "^11.11.1",
|
|
66
55
|
"hono": "^4.6.0",
|
|
67
56
|
"jose": "^6.1.0",
|
|
68
|
-
"marked": "^18.0.7",
|
|
69
|
-
"mdast-util-gfm": "^3.1.0",
|
|
70
|
-
"mdast-util-to-markdown": "^2.1.2",
|
|
71
|
-
"rehype-highlight": "^7.0.2",
|
|
72
|
-
"remark-frontmatter": "^5.0.0",
|
|
73
|
-
"remark-gfm": "^4.0.1",
|
|
74
|
-
"sanitize-html": "^2.17.6",
|
|
75
57
|
"smol-toml": "^1.6.1",
|
|
76
|
-
"yaml": "^2.9.0",
|
|
77
58
|
"yjs": "^13.6.0",
|
|
78
59
|
"zod": "^4.3.6"
|
|
79
60
|
},
|
|
@@ -112,7 +93,6 @@
|
|
|
112
93
|
"@types/cross-spawn": "^6.0.6",
|
|
113
94
|
"@types/react": "^19.0.0",
|
|
114
95
|
"@types/react-dom": "^19.0.0",
|
|
115
|
-
"@types/sanitize-html": "^2.16.1",
|
|
116
96
|
"better-sqlite3": "^12.0.0",
|
|
117
97
|
"clsx": "^2.1.1",
|
|
118
98
|
"framer-motion": "^12.38.0",
|