deepspace 0.9.2 → 0.10.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/CHANGELOG.md +31 -0
- package/dist/chunk-DQ4G6VL6.js +1535 -0
- package/dist/chunk-DQ4G6VL6.js.map +1 -0
- package/dist/cli.js +6009 -398
- package/dist/cli.js.map +1 -1
- package/dist/docs-client-core.d.ts +18 -0
- package/dist/docs-client-core.js +386 -0
- package/dist/docs-client-core.js.map +1 -0
- package/dist/docs-react.d.ts +2 -0
- package/dist/docs-react.js +35 -0
- package/dist/docs-react.js.map +1 -0
- package/dist/docs-runtime.js +71 -0
- package/dist/docs-server-core.d.ts +11 -0
- package/dist/docs-server-core.js +48 -0
- package/dist/docs-server-core.js.map +1 -0
- package/dist/docs.d.ts +350 -0
- package/dist/docs.js +5139 -0
- package/dist/docs.js.map +1 -0
- package/dist/index.d.ts +179 -1
- package/dist/index.js +143 -0
- package/dist/index.js.map +1 -1
- package/dist/public-Cp1X8ZQ3.d.ts +230 -0
- package/dist/server.d.ts +240 -13
- package/dist/server.js +1313 -25
- package/dist/server.js.map +1 -1
- package/dist/worker.d.ts +378 -13
- package/dist/worker.js +1377 -29
- package/dist/worker.js.map +1 -1
- package/features/ai-chat/feature.json +1 -1
- package/features/ai-chat/src/ChatPanel.tsx +7 -11
- package/package.json +21 -1
|
@@ -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
|
+
"The picker and server profiles consume the canonical model catalog exported by deepspace. Never copy a model allowlist into the app or feature.",
|
|
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 { useQuery } from 'deepspace'
|
|
23
|
+
import { listDeepSpaceAgentModels, useQuery } from 'deepspace'
|
|
24
24
|
import { EmptyState, MessageTurn, ThinkingIndicator } from './ChatPanel.messages'
|
|
25
25
|
import { useStreamingChat } from './ChatPanel.stream'
|
|
26
26
|
|
|
@@ -73,16 +73,12 @@ const DEFAULT_PROMPTS = [
|
|
|
73
73
|
'List my collections',
|
|
74
74
|
]
|
|
75
75
|
|
|
76
|
-
//
|
|
77
|
-
const DEFAULT_MODELS: ModelOption[] =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
]
|
|
76
|
+
// The client picker and server profiles consume the SDK's canonical catalog.
|
|
77
|
+
const DEFAULT_MODELS: ModelOption[] = listDeepSpaceAgentModels('application').map((model) => ({
|
|
78
|
+
id: model.id,
|
|
79
|
+
label: model.label,
|
|
80
|
+
provider: model.providerLabel,
|
|
81
|
+
}))
|
|
86
82
|
|
|
87
83
|
export function ChatPanel({
|
|
88
84
|
chatId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22.15.0"
|
|
6
6
|
},
|
|
@@ -28,6 +28,14 @@
|
|
|
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"
|
|
31
39
|
}
|
|
32
40
|
},
|
|
33
41
|
"files": [
|
|
@@ -47,14 +55,25 @@
|
|
|
47
55
|
"@ai-sdk/openai": "^2.0.0",
|
|
48
56
|
"@ai-sdk/openai-compatible": "^1.0.0",
|
|
49
57
|
"@clack/prompts": "^1.2.0",
|
|
58
|
+
"@mdx-js/mdx": "^3.1.1",
|
|
59
|
+
"acorn": "^8.16.0",
|
|
50
60
|
"ai": "^5.0.0",
|
|
51
61
|
"better-auth": "1.6.23",
|
|
52
62
|
"citty": "^0.2.0",
|
|
53
63
|
"cross-spawn": "^7.0.6",
|
|
54
64
|
"esbuild": "^0.27.0",
|
|
65
|
+
"highlight.js": "^11.11.1",
|
|
55
66
|
"hono": "^4.6.0",
|
|
56
67
|
"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",
|
|
57
75
|
"smol-toml": "^1.6.1",
|
|
76
|
+
"yaml": "^2.9.0",
|
|
58
77
|
"yjs": "^13.6.0",
|
|
59
78
|
"zod": "^4.3.6"
|
|
60
79
|
},
|
|
@@ -93,6 +112,7 @@
|
|
|
93
112
|
"@types/cross-spawn": "^6.0.6",
|
|
94
113
|
"@types/react": "^19.0.0",
|
|
95
114
|
"@types/react-dom": "^19.0.0",
|
|
115
|
+
"@types/sanitize-html": "^2.16.1",
|
|
96
116
|
"better-sqlite3": "^12.0.0",
|
|
97
117
|
"clsx": "^2.1.1",
|
|
98
118
|
"framer-motion": "^12.38.0",
|