deepspace 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/chunk-T7V4GUIN.js +1638 -0
- package/dist/chunk-T7V4GUIN.js.map +1 -0
- package/dist/cli.js +731 -324
- package/dist/cli.js.map +1 -1
- package/dist/documentation-client-core.d.ts +18 -0
- package/dist/documentation-client-core.js +395 -0
- package/dist/documentation-client-core.js.map +1 -0
- package/dist/documentation-default-renderer.cjs +124 -0
- package/dist/documentation-react.d.ts +2 -0
- package/dist/documentation-react.js +35 -0
- package/dist/documentation-react.js.map +1 -0
- package/dist/documentation-runtime.js +71 -0
- package/dist/documentation-server-core.d.ts +11 -0
- package/dist/documentation-server-core.js +48 -0
- package/dist/documentation-server-core.js.map +1 -0
- package/dist/documentation.d.ts +366 -0
- package/dist/documentation.js +3953 -0
- package/dist/documentation.js.map +1 -0
- package/dist/feature-installer.js +145 -0
- package/dist/feature-installer.js.map +1 -1
- package/dist/index.d.ts +177 -1
- package/dist/index.js +133 -0
- package/dist/index.js.map +1 -1
- package/dist/public-BGRX_Cjd.d.ts +234 -0
- package/dist/schema.d.ts +186 -0
- package/dist/schema.js +610 -0
- package/dist/schema.js.map +1 -0
- package/dist/server.d.ts +83 -4
- package/dist/server.js +296 -1
- package/dist/server.js.map +1 -1
- package/dist/testing.d.ts +5 -8
- package/dist/testing.js +48 -14
- package/dist/testing.js.map +1 -1
- package/dist/worker.d.ts +249 -5
- package/dist/worker.js +1438 -19
- package/dist/worker.js.map +1 -1
- package/features/admin-page/src/admin-schema.ts +1 -1
- package/features/ai-chat/feature.json +2 -2
- package/features/ai-chat/src/ChatPanel.tsx +6 -11
- package/features/ai-chat/src/ai-chat-schema.ts +1 -2
- package/features/canvas/src/canvas-schema.ts +1 -1
- package/features/documentation/content/index.mdx +14 -0
- package/features/documentation/content/quickstart.mdx +12 -0
- package/features/documentation/documentation.json +18 -0
- package/features/documentation/feature.json +68 -0
- package/features/{docs → documents}/feature.json +27 -27
- package/features/{docs/src/DocsEditorPage.tsx → documents/src/DocumentsEditorPage.tsx} +74 -74
- package/features/{docs/src/DocsListPage.tsx → documents/src/DocumentsListPage.tsx} +102 -102
- package/features/{docs/src/DocsOutlinePanel.tsx → documents/src/DocumentsOutlinePanel.tsx} +9 -9
- package/features/{docs/src/DocsPresence.tsx → documents/src/DocumentsPresence.tsx} +18 -18
- package/features/{docs → documents}/src/InviteDialog.tsx +21 -21
- package/features/{docs → documents}/src/LibrarySidebar.tsx +25 -25
- package/features/documents/src/__tests__/documents-presence-access.test.ts +71 -0
- package/features/{docs/src/docs-library-types.ts → documents/src/documents-library-types.ts} +3 -3
- package/features/{docs/src/docs-schema.ts → documents/src/documents-schema.ts} +6 -6
- package/features/{docs/src/docs-ui.css → documents/src/documents-ui.css} +89 -89
- package/features/{docs → documents}/src/editor/DocEditorSurface.tsx +11 -11
- package/features/{docs/src/editor/DocsTiptapToolbar.tsx → documents/src/editor/DocumentsTiptapToolbar.tsx} +21 -21
- package/features/{docs → documents}/src/editor/useDocEditor.ts +4 -4
- package/features/{docs/src/use-docs-presence-access.ts → documents/src/use-documents-presence-access.ts} +51 -51
- package/features/file-attachments/src/attachments-schema.ts +1 -1
- package/features/items/src/items-schema.ts +1 -1
- package/features/leaderboard/src/leaderboard-schema.ts +1 -1
- package/features/messaging/src/ChatMultiPage.tsx +1 -1
- package/features/messaging/src/ChatPage.tsx +1 -1
- package/features/messaging/src/messaging-schema.ts +2 -2
- package/features/tasks/src/tasks-schema.ts +1 -1
- package/features/testing/src/test-schema.ts +2 -2
- package/package.json +26 -1
- package/features/docs/src/__tests__/docs-presence-access.test.ts +0 -71
package/dist/index.js
CHANGED
|
@@ -145,6 +145,132 @@ var ROLE_CONFIG = {
|
|
|
145
145
|
admin: { title: "Admin", badgeVariant: "warning", description: "Full access to all features" }
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
+
// src/shared/ai-models.ts
|
|
149
|
+
var DEEPSPACE_MODEL_CATALOG_PROVENANCE = {
|
|
150
|
+
version: "2026-08-04",
|
|
151
|
+
verifiedAt: "2026-08-04",
|
|
152
|
+
sources: {
|
|
153
|
+
anthropic: "https://platform.claude.com/docs/en/api/beta/models/list",
|
|
154
|
+
openai: "https://developers.openai.com/api/docs/models/all",
|
|
155
|
+
cerebras: "https://inference-docs.cerebras.ai/models/overview"
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
var MULTI_STEP_AGENT_PROFILES = ["application", "documentation"];
|
|
159
|
+
function createMultiStepModelFactory(provider) {
|
|
160
|
+
return (model) => ({
|
|
161
|
+
...model,
|
|
162
|
+
...provider,
|
|
163
|
+
agentSupport: "multi-step",
|
|
164
|
+
agentProfiles: MULTI_STEP_AGENT_PROFILES
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
var anthropicModel = createMultiStepModelFactory({
|
|
168
|
+
provider: "anthropic",
|
|
169
|
+
providerLabel: "Anthropic",
|
|
170
|
+
transport: "messages"
|
|
171
|
+
});
|
|
172
|
+
var openAIModel = createMultiStepModelFactory({
|
|
173
|
+
provider: "openai",
|
|
174
|
+
providerLabel: "OpenAI",
|
|
175
|
+
transport: "chat-completions"
|
|
176
|
+
});
|
|
177
|
+
var DEEPSPACE_AI_MODELS = [
|
|
178
|
+
anthropicModel({
|
|
179
|
+
id: "claude-fable-5",
|
|
180
|
+
label: "Claude Fable 5",
|
|
181
|
+
family: "Claude 5",
|
|
182
|
+
recommendation: "frontier"
|
|
183
|
+
}),
|
|
184
|
+
anthropicModel({
|
|
185
|
+
id: "claude-opus-5",
|
|
186
|
+
label: "Claude Opus 5",
|
|
187
|
+
family: "Claude 5",
|
|
188
|
+
recommendation: "frontier"
|
|
189
|
+
}),
|
|
190
|
+
anthropicModel({
|
|
191
|
+
id: "claude-sonnet-5",
|
|
192
|
+
label: "Claude Sonnet 5",
|
|
193
|
+
family: "Claude 5",
|
|
194
|
+
recommendation: "balanced"
|
|
195
|
+
}),
|
|
196
|
+
anthropicModel({
|
|
197
|
+
id: "claude-haiku-4-5",
|
|
198
|
+
label: "Claude Haiku 4.5",
|
|
199
|
+
family: "Claude 4.5",
|
|
200
|
+
recommendation: "fast"
|
|
201
|
+
}),
|
|
202
|
+
openAIModel({
|
|
203
|
+
id: "gpt-5.6-sol",
|
|
204
|
+
label: "GPT-5.6 Sol",
|
|
205
|
+
family: "GPT-5.6",
|
|
206
|
+
recommendation: "frontier"
|
|
207
|
+
}),
|
|
208
|
+
openAIModel({
|
|
209
|
+
id: "gpt-5.6-terra",
|
|
210
|
+
label: "GPT-5.6 Terra",
|
|
211
|
+
family: "GPT-5.6",
|
|
212
|
+
recommendation: "balanced"
|
|
213
|
+
}),
|
|
214
|
+
openAIModel({
|
|
215
|
+
id: "gpt-5.6-luna",
|
|
216
|
+
label: "GPT-5.6 Luna",
|
|
217
|
+
family: "GPT-5.6",
|
|
218
|
+
recommendation: "fast"
|
|
219
|
+
}),
|
|
220
|
+
{
|
|
221
|
+
id: "gpt-oss-120b",
|
|
222
|
+
label: "GPT-OSS 120B",
|
|
223
|
+
provider: "cerebras",
|
|
224
|
+
providerLabel: "Cerebras",
|
|
225
|
+
family: "GPT-OSS",
|
|
226
|
+
agentSupport: "single-step",
|
|
227
|
+
agentProfiles: [],
|
|
228
|
+
transport: "chat-completions",
|
|
229
|
+
recommendation: "limited",
|
|
230
|
+
note: "Available for direct generation; the current proxy adapter has not passed multi-step tool-result continuation."
|
|
231
|
+
}
|
|
232
|
+
];
|
|
233
|
+
var DEEPSPACE_AI_DEFAULTS = {
|
|
234
|
+
agent: "claude-sonnet-5",
|
|
235
|
+
directGeneration: "claude-sonnet-5",
|
|
236
|
+
summarization: "claude-haiku-4-5"
|
|
237
|
+
};
|
|
238
|
+
var DEEPSPACE_AGENT_PROFILES = {
|
|
239
|
+
application: {
|
|
240
|
+
id: "application",
|
|
241
|
+
defaultModel: DEEPSPACE_AI_DEFAULTS.agent,
|
|
242
|
+
maxSteps: 21,
|
|
243
|
+
maxToolCalls: 20,
|
|
244
|
+
allowedTools: "application-defined"
|
|
245
|
+
},
|
|
246
|
+
documentation: {
|
|
247
|
+
id: "documentation",
|
|
248
|
+
defaultModel: DEEPSPACE_AI_DEFAULTS.agent,
|
|
249
|
+
// Permit up to twenty completed read-only tools plus one final synthesis
|
|
250
|
+
// step. The runner disables tools once the tool-call budget is exhausted.
|
|
251
|
+
maxSteps: 21,
|
|
252
|
+
maxToolCalls: 20,
|
|
253
|
+
allowedTools: ["documentation_search", "documentation_read"]
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
function getDeepSpaceAIModel(modelId) {
|
|
257
|
+
if (typeof modelId !== "string") return null;
|
|
258
|
+
return DEEPSPACE_AI_MODELS.find((model) => model.id === modelId) ?? null;
|
|
259
|
+
}
|
|
260
|
+
function listDeepSpaceAgentModels(profileId = "application") {
|
|
261
|
+
const defaultModel = DEEPSPACE_AGENT_PROFILES[profileId].defaultModel;
|
|
262
|
+
return DEEPSPACE_AI_MODELS.filter(
|
|
263
|
+
(model) => model.agentProfiles.includes(profileId)
|
|
264
|
+
).sort((left, right) => Number(right.id === defaultModel) - Number(left.id === defaultModel));
|
|
265
|
+
}
|
|
266
|
+
function resolveDeepSpaceAgentModel(modelId, profileId = "application") {
|
|
267
|
+
const profile = DEEPSPACE_AGENT_PROFILES[profileId];
|
|
268
|
+
const resolvedId = modelId === void 0 ? profile.defaultModel : modelId;
|
|
269
|
+
const model = getDeepSpaceAIModel(resolvedId);
|
|
270
|
+
if (!model || !model.agentProfiles.includes(profileId)) return null;
|
|
271
|
+
return { modelId: model.id, provider: model.provider, model, profile };
|
|
272
|
+
}
|
|
273
|
+
|
|
148
274
|
// src/shared/protocol/yjs.ts
|
|
149
275
|
import * as Y from "yjs";
|
|
150
276
|
var MSG_SYNC = 0;
|
|
@@ -6043,6 +6169,10 @@ export {
|
|
|
6043
6169
|
AuthOverlay,
|
|
6044
6170
|
Awareness,
|
|
6045
6171
|
CANONICAL_APP_IDENTITY_MIGRATION_ID,
|
|
6172
|
+
DEEPSPACE_AGENT_PROFILES,
|
|
6173
|
+
DEEPSPACE_AI_DEFAULTS,
|
|
6174
|
+
DEEPSPACE_AI_MODELS,
|
|
6175
|
+
DEEPSPACE_MODEL_CATALOG_PROVENANCE,
|
|
6046
6176
|
DEEPSPACE_THEME_PROPERTIES,
|
|
6047
6177
|
DEFAULT_USER_COLORS,
|
|
6048
6178
|
DeepSpaceAuthProvider,
|
|
@@ -6098,6 +6228,7 @@ export {
|
|
|
6098
6228
|
getAuthUrl,
|
|
6099
6229
|
getConversationDisplayName,
|
|
6100
6230
|
getConversationParticipantIds,
|
|
6231
|
+
getDeepSpaceAIModel,
|
|
6101
6232
|
getEnvironmentConfig,
|
|
6102
6233
|
getMessageType,
|
|
6103
6234
|
getPagedResourceCooldownMs,
|
|
@@ -6116,6 +6247,7 @@ export {
|
|
|
6116
6247
|
isImageFile,
|
|
6117
6248
|
isLocalDev,
|
|
6118
6249
|
isProduction,
|
|
6250
|
+
listDeepSpaceAgentModels,
|
|
6119
6251
|
parseMessageMetadata,
|
|
6120
6252
|
parseSseLine,
|
|
6121
6253
|
readThemeFromDOM,
|
|
@@ -6123,6 +6255,7 @@ export {
|
|
|
6123
6255
|
readVarUint8Array,
|
|
6124
6256
|
reportClientError,
|
|
6125
6257
|
resetEnvironmentCache,
|
|
6258
|
+
resolveDeepSpaceAgentModel,
|
|
6126
6259
|
serverBuild,
|
|
6127
6260
|
shouldGroupMessages,
|
|
6128
6261
|
signIn,
|