@lincyaw/dsh 0.2.0-rc.118 → 0.2.0-rc.119

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.
@@ -45,6 +45,8 @@
45
45
  "../kernel/src/contracts/projects.ts",
46
46
  "../kernel/src/contracts/document-image.ts",
47
47
  "../kernel/src/contracts/desktop.ts",
48
+ "../kernel/src/contracts/document-tree.ts",
49
+ "../kernel/src/contracts/document-tree-service.ts",
48
50
  "../kernel/src/contracts.ts",
49
51
  "../kernel/src/random-uuid.ts",
50
52
  "../kernel/src/access.ts",
@@ -116,6 +118,7 @@
116
118
  "../kernel/src/component-code.ts",
117
119
  "../kernel/src/jupyter-kernel.ts",
118
120
  "../kernel/src/preview-events.ts",
121
+ "../kernel/src/document-links.ts",
119
122
  "../kernel/src/index.ts",
120
123
  "../workbench/src/workbench-state.ts",
121
124
  "../workbench/src/document-return-point.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lincyaw/dsh",
3
- "version": "0.2.0-rc.118",
3
+ "version": "0.2.0-rc.119",
4
4
  "description": "Presmium's bundle for DeepSeek Harness: the workbench of presmium studio, its host side (Presmium's tools, approvals, document context, skills and routes) and its client side (the root layout and the workbench's panels, precompiled) (experimental)",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -89,10 +89,10 @@
89
89
  "node-addon-require-builtin": "0.1.9",
90
90
  "ws": "8.22.0",
91
91
  "zod": "4.4.3",
92
- "@lincyaw/cli": "1.0.0-rc.119",
93
- "@lincyaw/mcp": "1.0.0-rc.119",
94
- "@lincyaw/kernel": "1.0.0-rc.119",
95
- "@lincyaw/skills": "1.0.0-rc.119"
92
+ "@lincyaw/mcp": "1.0.0-rc.120",
93
+ "@lincyaw/kernel": "1.0.0-rc.120",
94
+ "@lincyaw/cli": "1.0.0-rc.120",
95
+ "@lincyaw/skills": "1.0.0-rc.120"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "@deepseek-ai/dsh": "0.2.1-alpha.4"
@@ -108,8 +108,8 @@
108
108
  "react": "18.3.1",
109
109
  "react-dom": "18.3.1",
110
110
  "react-resizable-panels": "^4.14.5",
111
- "@lincyaw/design": "1.0.0-rc.119",
112
- "@lincyaw/workbench": "0.2.0-rc.120"
111
+ "@lincyaw/design": "1.0.0-rc.120",
112
+ "@lincyaw/workbench": "0.2.0-rc.121"
113
113
  },
114
114
  "scripts": {}
115
115
  }
@@ -11,7 +11,8 @@ export const ROUTES: Record<string, string> = Object.fromEntries([
11
11
  'document/media-clip/validate', 'document/transcription/capabilities', 'document/transcription', 'document/transcription/result', 'document/transcription/cancel',
12
12
  'document/transcription/adoption/plan', 'document/transcription/adoption/apply',
13
13
  'ir', 'ir/events', 'preview', 'build', 'check', 'jobs', 'jobs/cancel', 'jobs/events', 'voice-catalog', 'voice-capabilities',
14
- 'review', 'review/workspace', 'review/open', 'review/step', 'review/accept', 'review/reject', 'review/restore'].map(path => [path, `${WORKSPACE_ROUTES}${path}`]),
14
+ 'review', 'review/workspace', 'review/open', 'review/step', 'review/accept', 'review/reject', 'review/restore',
15
+ 'tree', 'tree/operation', 'document/links', 'documents/search', 'document/preview', 'embed/source'].map(path => [path, `${WORKSPACE_ROUTES}${path}`]),
15
16
  ['focus', `${SERVER_ROUTES}focus`],
16
17
  ['control', `${SERVER_ROUTES}control`],
17
18
  ['diagnostics', `${SERVER_ROUTES}diagnostics`],
@@ -50,7 +51,7 @@ export function apply(ctx: DshContext): void {
50
51
  ...request.method === 'POST' ? { raw: await request.arrayBuffer() } : {},
51
52
  signal: request.signal,
52
53
  })
53
- if ((path === 'documents' || path === 'documents/import' || path === 'project/apply') && request.method === 'POST' && upstream.ok) ctx.presmium.server.invalidateDocuments()
54
+ if ((path === 'documents' || path === 'documents/import' || path === 'project/apply' || path === 'tree/operation') && request.method === 'POST' && upstream.ok) ctx.presmium.server.invalidateDocuments()
54
55
  const answered = new Headers()
55
56
  for (const name of RETURNED) {
56
57
  const value = upstream.headers.get(name)
@@ -28,6 +28,8 @@ const ROUTES = {
28
28
  ir: { path: `${WORKSPACE_ROUTES}ir/events`, event: 'revision' },
29
29
  jobs: { path: `${WORKSPACE_ROUTES}jobs/events`, event: 'job' },
30
30
  'agent-activity': { path: `${WORKSPACE_ROUTES}agent-activity/events`, event: 'agent-activity' },
31
+ /** `{ type: 'tree' }` whenever the document tree or the trash changes; the client reads `tree` again. */
32
+ tree: { path: `${WORKSPACE_ROUTES}tree/events`, event: 'tree' },
31
33
  } as const
32
34
  const MAX_SUBSCRIPTIONS = 16
33
35
  const MAX_BUFFERED_BYTES = 2 << 20
@@ -2,7 +2,7 @@ import { z } from 'zod'
2
2
 
3
3
  /** One authenticated Studio socket carries these existing workspace subscriptions. */
4
4
  export const WORKSPACE_EVENTS_PATH = '/api/presmium/events'
5
- export const WORKSPACE_EVENT_TOPICS = ['document', 'diagnostics', 'review', 'ir', 'jobs', 'agent-activity'] as const
5
+ export const WORKSPACE_EVENT_TOPICS = ['document', 'diagnostics', 'review', 'ir', 'jobs', 'agent-activity', 'tree'] as const
6
6
  const subscriptionId = z.string().min(1).max(80)
7
7
 
8
8
  const viewerSite = z.strictObject({ type: z.literal('subscribe'), id: subscriptionId, topic: z.literal('viewer-site'), document: z.string().max(1024), app: z.string().max(200), lang: z.string().max(80), form: z.enum(['web', 'slides']) })