dsh-edge 0.1.0 → 0.1.3

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 (64) hide show
  1. package/LICENSE +1 -1
  2. package/README.i18n.yaml +2 -2
  3. package/README.md +6 -4
  4. package/README.zh.md +6 -4
  5. package/THIRD_PARTY_NOTICES.md +42 -14
  6. package/dist/index.html +1 -1
  7. package/dist/plugins/@deepseek-ai/dsh-client-locale/client.js +7 -7
  8. package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +61 -61
  9. package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +14 -14
  10. package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +287 -287
  11. package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +10 -10
  12. package/dist/plugins/@deepseek-ai/dsh-client-ui-input-trigger/client.js +11 -11
  13. package/dist/plugins/@deepseek-ai/dsh-client-ui-jobs/client.js +15 -15
  14. package/dist/plugins/@deepseek-ai/dsh-client-ui-layout/client.js +8 -8
  15. package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +27 -27
  16. package/dist/plugins/@deepseek-ai/dsh-client-ui-permission-presets/client.js +8 -8
  17. package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +31 -31
  18. package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +23 -23
  19. package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +19 -19
  20. package/dist/plugins/@deepseek-ai/dsh-client-ui-subagent/client.js +29 -29
  21. package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +7 -7
  22. package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +64 -64
  23. package/dist/plugins/@deepseek-ai/dsh-client-ui-trajectory/client.js +183 -183
  24. package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +44 -44
  25. package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +24 -24
  26. package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +79 -79
  27. package/dist/plugins/{@deepseek-ai/dsh-client-ui-edge → dsh-edge-client-ui}/client.js +12 -12
  28. package/package.json +26 -23
  29. package/scripts/assemble-web.mjs +1 -1
  30. package/scripts/bundle.mjs +41 -8
  31. package/scripts/cli.d.mts +1 -0
  32. package/scripts/cli.mjs +37 -6
  33. package/scripts/install.d.mts +6 -6
  34. package/scripts/install.mjs +36 -19
  35. package/scripts/legal-files.mjs +65 -7
  36. package/scripts/smoke-installed.mjs +47 -0
  37. package/scripts/verify-packed.d.mts +24 -0
  38. package/scripts/verify-packed.mjs +85 -23
  39. package/scripts/wrangler-config.d.mts +19 -2
  40. package/scripts/wrangler-config.mjs +68 -27
  41. package/worker/direct/index.js +2347 -0
  42. package/worker/isolated/index.js +44491 -0
  43. package/src/agent.ts +0 -119
  44. package/src/auth.ts +0 -352
  45. package/src/deepseek.ts +0 -231
  46. package/src/deployment.ts +0 -147
  47. package/src/direct-shell-core-empty.ts +0 -10
  48. package/src/direct-shell-protocol.ts +0 -5
  49. package/src/direct-shell.ts +0 -341
  50. package/src/do-session-persistence.ts +0 -1064
  51. package/src/edge-api.ts +0 -796
  52. package/src/edge-credentials.ts +0 -56
  53. package/src/edge-remotes.ts +0 -41
  54. package/src/edge-workspace-store.ts +0 -339
  55. package/src/http.ts +0 -212
  56. package/src/index.ts +0 -196
  57. package/src/instance.ts +0 -1007
  58. package/src/isolated-direct-shell-unavailable.ts +0 -11
  59. package/src/protocol.ts +0 -39
  60. package/src/release.ts +0 -9
  61. package/src/session-store.ts +0 -1110
  62. package/src/sse.ts +0 -86
  63. package/src/web-search.ts +0 -38
  64. package/src/workspace.ts +0 -270
@@ -1,11 +0,0 @@
1
- import type { BackendHandle, WorkspaceBackend } from '@cloudflare/computer'
2
-
3
- /** Fail closed if an isolated build ever tries to connect without its Loader binding. */
4
- export class DirectShellBackend implements WorkspaceBackend {
5
- readonly id = 'worker-shell'
6
- readonly type = 'unavailable-direct-shell'
7
-
8
- connect(): Promise<BackendHandle> {
9
- return Promise.reject(new Error('The isolated dsh-edge build requires the LOADER binding.'))
10
- }
11
- }
package/src/protocol.ts DELETED
@@ -1,39 +0,0 @@
1
- /** Edge-only HTTP metadata; conversation events use upstream SessionEvent directly. */
2
-
3
- import type { Branded } from '@deepseek-ai/dsh-brand'
4
- import type { SessionId } from '@deepseek-ai/dsh-session'
5
-
6
- /** Identifies one opaque Cloudflare Computer shell execution. */
7
- export type EdgeExecutionId = Branded<'EdgeExecutionId'>
8
-
9
- /** Brand an execution identifier returned by the Computer boundary. */
10
- export function EdgeExecutionId(id: string): EdgeExecutionId {
11
- return id as EdgeExecutionId
12
- }
13
-
14
- /** Correlates one Edge agent turn with cancellation and wire responses. */
15
- export type EdgeTurnId = Branded<'EdgeTurnId'>
16
-
17
- /** Brand one generated opaque turn identifier without runtime validation. */
18
- export function EdgeTurnId(id: string): EdgeTurnId {
19
- return id as EdgeTurnId
20
- }
21
-
22
- export interface EdgeSession {
23
- id: SessionId
24
- title: string | null
25
- agentPreset?: string
26
- createdAt: number
27
- updatedAt: number
28
- }
29
-
30
- export interface CreateEdgeSessionInput {
31
- title: string
32
- }
33
-
34
- /** Accepted cancellation for the active turn owned by this Worker instance. */
35
- export interface CancelEdgeTurnResponse {
36
- ok: true
37
- sessionId: SessionId
38
- turnId: EdgeTurnId
39
- }
package/src/release.ts DELETED
@@ -1,9 +0,0 @@
1
- /** Build-owned release metadata shared by the Edge host and browser profile. */
2
-
3
- import edgePackage from '../package.json' with { type: 'json' }
4
-
5
- /** Version of the deployable dsh-edge artifact. */
6
- export const DSH_EDGE_VERSION = edgePackage.version
7
-
8
- /** DeepSeek Harness version this artifact was assembled from. */
9
- export const DSH_EDGE_UPSTREAM_VERSION = edgePackage.dshEdge.upstreamVersion