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.
Files changed (71) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/chunk-T7V4GUIN.js +1638 -0
  3. package/dist/chunk-T7V4GUIN.js.map +1 -0
  4. package/dist/cli.js +731 -324
  5. package/dist/cli.js.map +1 -1
  6. package/dist/documentation-client-core.d.ts +18 -0
  7. package/dist/documentation-client-core.js +395 -0
  8. package/dist/documentation-client-core.js.map +1 -0
  9. package/dist/documentation-default-renderer.cjs +124 -0
  10. package/dist/documentation-react.d.ts +2 -0
  11. package/dist/documentation-react.js +35 -0
  12. package/dist/documentation-react.js.map +1 -0
  13. package/dist/documentation-runtime.js +71 -0
  14. package/dist/documentation-server-core.d.ts +11 -0
  15. package/dist/documentation-server-core.js +48 -0
  16. package/dist/documentation-server-core.js.map +1 -0
  17. package/dist/documentation.d.ts +366 -0
  18. package/dist/documentation.js +3953 -0
  19. package/dist/documentation.js.map +1 -0
  20. package/dist/feature-installer.js +145 -0
  21. package/dist/feature-installer.js.map +1 -1
  22. package/dist/index.d.ts +177 -1
  23. package/dist/index.js +133 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/public-BGRX_Cjd.d.ts +234 -0
  26. package/dist/schema.d.ts +186 -0
  27. package/dist/schema.js +610 -0
  28. package/dist/schema.js.map +1 -0
  29. package/dist/server.d.ts +83 -4
  30. package/dist/server.js +296 -1
  31. package/dist/server.js.map +1 -1
  32. package/dist/testing.d.ts +5 -8
  33. package/dist/testing.js +48 -14
  34. package/dist/testing.js.map +1 -1
  35. package/dist/worker.d.ts +249 -5
  36. package/dist/worker.js +1438 -19
  37. package/dist/worker.js.map +1 -1
  38. package/features/admin-page/src/admin-schema.ts +1 -1
  39. package/features/ai-chat/feature.json +2 -2
  40. package/features/ai-chat/src/ChatPanel.tsx +6 -11
  41. package/features/ai-chat/src/ai-chat-schema.ts +1 -2
  42. package/features/canvas/src/canvas-schema.ts +1 -1
  43. package/features/documentation/content/index.mdx +14 -0
  44. package/features/documentation/content/quickstart.mdx +12 -0
  45. package/features/documentation/documentation.json +18 -0
  46. package/features/documentation/feature.json +68 -0
  47. package/features/{docs → documents}/feature.json +27 -27
  48. package/features/{docs/src/DocsEditorPage.tsx → documents/src/DocumentsEditorPage.tsx} +74 -74
  49. package/features/{docs/src/DocsListPage.tsx → documents/src/DocumentsListPage.tsx} +102 -102
  50. package/features/{docs/src/DocsOutlinePanel.tsx → documents/src/DocumentsOutlinePanel.tsx} +9 -9
  51. package/features/{docs/src/DocsPresence.tsx → documents/src/DocumentsPresence.tsx} +18 -18
  52. package/features/{docs → documents}/src/InviteDialog.tsx +21 -21
  53. package/features/{docs → documents}/src/LibrarySidebar.tsx +25 -25
  54. package/features/documents/src/__tests__/documents-presence-access.test.ts +71 -0
  55. package/features/{docs/src/docs-library-types.ts → documents/src/documents-library-types.ts} +3 -3
  56. package/features/{docs/src/docs-schema.ts → documents/src/documents-schema.ts} +6 -6
  57. package/features/{docs/src/docs-ui.css → documents/src/documents-ui.css} +89 -89
  58. package/features/{docs → documents}/src/editor/DocEditorSurface.tsx +11 -11
  59. package/features/{docs/src/editor/DocsTiptapToolbar.tsx → documents/src/editor/DocumentsTiptapToolbar.tsx} +21 -21
  60. package/features/{docs → documents}/src/editor/useDocEditor.ts +4 -4
  61. package/features/{docs/src/use-docs-presence-access.ts → documents/src/use-documents-presence-access.ts} +51 -51
  62. package/features/file-attachments/src/attachments-schema.ts +1 -1
  63. package/features/items/src/items-schema.ts +1 -1
  64. package/features/leaderboard/src/leaderboard-schema.ts +1 -1
  65. package/features/messaging/src/ChatMultiPage.tsx +1 -1
  66. package/features/messaging/src/ChatPage.tsx +1 -1
  67. package/features/messaging/src/messaging-schema.ts +2 -2
  68. package/features/tasks/src/tasks-schema.ts +1 -1
  69. package/features/testing/src/test-schema.ts +2 -2
  70. package/package.json +26 -1
  71. 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,