@gestaltrun/dsh-im-runtime 0.0.0-stage → 0.1.5

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 (66) hide show
  1. package/LICENSE +21 -0
  2. package/README.i18n.yaml +58 -0
  3. package/README.md +290 -2
  4. package/README.zh.md +290 -0
  5. package/UPSTREAM.json +66 -0
  6. package/lib/index.js +140 -0
  7. package/lib/inline-image-DuX6vSEI.js +20 -0
  8. package/lib/read-receipts.js +413 -0
  9. package/lib/read-state-CnUZKCuY.js +1868 -0
  10. package/lib/runtime-Bm6iSEpv.js +10939 -0
  11. package/lib/tools.js +2 -0
  12. package/lib/types/account-placement.d.ts +22 -0
  13. package/lib/types/admission-annotations.d.ts +40 -0
  14. package/lib/types/agent-coordinator.d.ts +129 -0
  15. package/lib/types/agent-media.d.ts +46 -0
  16. package/lib/types/agent-prompt.d.ts +24 -0
  17. package/lib/types/checkpoint-recovery.d.ts +32 -0
  18. package/lib/types/checkpoint.d.ts +127 -0
  19. package/lib/types/consumer-chat-links.d.ts +59 -0
  20. package/lib/types/delivery-schema.d.ts +176 -0
  21. package/lib/types/delivery-sqlite.d.ts +387 -0
  22. package/lib/types/delivery-types.d.ts +744 -0
  23. package/lib/types/delivery.d.ts +114 -0
  24. package/lib/types/errors.d.ts +8 -0
  25. package/lib/types/evaluation-accounts.d.ts +86 -0
  26. package/lib/types/index.d.ts +51 -0
  27. package/lib/types/inline-image.d.ts +7 -0
  28. package/lib/types/input-drain.d.ts +73 -0
  29. package/lib/types/knowledge-image.d.ts +64 -0
  30. package/lib/types/media-lifetime.d.ts +22 -0
  31. package/lib/types/media.d.ts +32 -0
  32. package/lib/types/message-preview.d.ts +4 -0
  33. package/lib/types/message-upload.d.ts +55 -0
  34. package/lib/types/nas-host-lease.d.ts +33 -0
  35. package/lib/types/placement-slice.d.ts +30 -0
  36. package/lib/types/policies.d.ts +63 -0
  37. package/lib/types/preset-model.d.ts +50 -0
  38. package/lib/types/read-context.d.ts +27 -0
  39. package/lib/types/read-receipts.d.ts +10 -0
  40. package/lib/types/read-records.d.ts +30 -0
  41. package/lib/types/read-state.d.ts +18 -0
  42. package/lib/types/read-types.d.ts +28 -0
  43. package/lib/types/restart-recovery.d.ts +38 -0
  44. package/lib/types/route-resolve.d.ts +10 -0
  45. package/lib/types/runtime.d.ts +668 -0
  46. package/lib/types/schema.d.ts +61 -0
  47. package/lib/types/script-clock.d.ts +14 -0
  48. package/lib/types/sdk.d.ts +108 -0
  49. package/lib/types/service-types.d.ts +366 -0
  50. package/lib/types/session-events.d.ts +28 -0
  51. package/lib/types/simulation-batch.d.ts +40 -0
  52. package/lib/types/simulation-controller.d.ts +77 -0
  53. package/lib/types/simulation-operator.d.ts +19 -0
  54. package/lib/types/simulation-tools.d.ts +14 -0
  55. package/lib/types/sqlite-connection.d.ts +27 -0
  56. package/lib/types/time.d.ts +13 -0
  57. package/lib/types/tools.d.ts +17 -0
  58. package/lib/types/transport.d.ts +202 -0
  59. package/lib/types/transports.d.ts +48 -0
  60. package/lib/types/types.d.ts +521 -0
  61. package/lib/types/typing.d.ts +33 -0
  62. package/lib/types/upload-types.d.ts +121 -0
  63. package/lib/types.js +2 -0
  64. package/locale/en.json +6 -0
  65. package/locale/zh.json +6 -0
  66. package/package.json +125 -3
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "IM 运行时",
4
+ "description": "管理聊天账号、接管规则与消息收发状态,并将新消息交给 AI 回复"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,128 @@
1
1
  {
2
2
  "name": "@gestaltrun/dsh-im-runtime",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.5",
4
+ "description": "Durable IM account and routing runtime for Gestaltrun Desktop",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "types": "lib/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/types/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./types": {
14
+ "types": "./lib/types/types.d.ts",
15
+ "default": "./lib/types.js"
16
+ },
17
+ "./tools": {
18
+ "types": "./lib/types/tools.d.ts",
19
+ "default": "./lib/tools.js"
20
+ },
21
+ "./package.json": "./package.json",
22
+ "./locale/*.json": "./locale/*.json",
23
+ "./read-receipts": {
24
+ "types": "./lib/types/read-receipts.d.ts",
25
+ "default": "./lib/read-receipts.js"
26
+ }
27
+ },
28
+ "files": [
29
+ "lib",
30
+ "locale/*.json",
31
+ "README.md",
32
+ "README.zh.md",
33
+ "LICENSE",
34
+ "UPSTREAM.json"
35
+ ],
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/gestaltrun/deepseek-harness.git",
40
+ "directory": "product/im-runtime"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public",
44
+ "registry": "https://registry.npmjs.org/",
45
+ "tag": "candidate"
46
+ },
47
+ "dsh": {
48
+ "engines": {
49
+ "dsh": ">=0.1.6-alpha.2"
50
+ }
51
+ },
52
+ "dependencies": {
53
+ "zod": "4.4.3"
54
+ },
55
+ "peerDependencies": {
56
+ "@deepseek-ai/cordis": "4.0.6-alpha.1",
57
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
58
+ "@deepseek-ai/dsh-agent-default-model": "0.2.2-alpha.2",
59
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.2",
60
+ "@deepseek-ai/dsh-brand": "0.2.2-alpha.2",
61
+ "@deepseek-ai/dsh-credentials": "0.2.2-alpha.2",
62
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
63
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
64
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.2",
65
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-alpha.2",
66
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
67
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
68
+ "@deepseek-ai/dsh-workspace": "0.2.2-alpha.2",
69
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.2",
70
+ "@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
71
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2",
72
+ "@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
73
+ "@deepseek-ai/dsh-storage-json": "0.2.2-alpha.2"
74
+ },
75
+ "devDependencies": {
76
+ "@deepseek-ai/cordis": "4.0.6-alpha.1",
77
+ "@deepseek-ai/cordis-plugin-include": "1.0.11-alpha.1",
78
+ "@deepseek-ai/cordis-plugin-loader": "1.0.7-alpha.1",
79
+ "@deepseek-ai/dsh-agent": "0.2.2-alpha.2",
80
+ "@deepseek-ai/dsh-agent-default-model": "0.2.2-alpha.2",
81
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-alpha.2",
82
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-alpha.2",
83
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.2-alpha.2",
84
+ "@deepseek-ai/dsh-brand": "0.2.2-alpha.2",
85
+ "@deepseek-ai/dsh-credentials": "0.2.2-alpha.2",
86
+ "@deepseek-ai/dsh-credentials-local": "0.2.2-alpha.2",
87
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
88
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.2",
89
+ "@deepseek-ai/dsh-session-persistence": "0.2.2-alpha.2",
90
+ "@deepseek-ai/dsh-session-persistence-jsonl": "0.2.2-alpha.2",
91
+ "@deepseek-ai/dsh-session-projection": "0.2.2-alpha.2",
92
+ "@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
93
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-alpha.2",
94
+ "@deepseek-ai/dsh-storage-json": "0.2.2-alpha.2",
95
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.2",
96
+ "@deepseek-ai/dsh-tools": "0.2.2-alpha.2",
97
+ "@deepseek-ai/dsh-workspace": "0.2.2-alpha.2",
98
+ "@types/node": "22.20.0",
99
+ "tsdown": "0.22.2",
100
+ "typescript": "6.0.3",
101
+ "vite-tsconfig-paths": "6.1.1",
102
+ "vitest": "4.1.8",
103
+ "@gestaltrun/dsh-workspace-bundle": "^0.1.0",
104
+ "@deepseek-ai/dsh-subagent": "0.2.2-alpha.2",
105
+ "@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.2-alpha.2",
106
+ "@deepseek-ai/dsh-schedule": "0.2.2-alpha.2",
107
+ "@deepseek-ai/dsh-session-snapshot": "0.2.2-alpha.2",
108
+ "@deepseek-ai/dsh-llm-replay": "0.2.2-alpha.2",
109
+ "@deepseek-ai/dsh-loader-smoke": "0.2.2-alpha.2",
110
+ "@deepseek-ai/dsh-fs-local": "0.2.2-alpha.2",
111
+ "@deepseek-ai/dsh-working-directory": "0.2.2-alpha.2",
112
+ "@deepseek-ai/dsh-session-query-sqlite": "0.2.2-alpha.2",
113
+ "@deepseek-ai/dsh-agent-preset": "0.2.2-alpha.2",
114
+ "@deepseek-ai/dsh-attachment-local": "0.2.2-alpha.2",
115
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.2",
116
+ "@deepseek-ai/dsh-fs": "0.2.2-alpha.2",
117
+ "@deepseek-ai/dsh-tool-testkit": "0.2.2-alpha.2",
118
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.2"
119
+ },
120
+ "scripts": {
121
+ "build": "node scripts/clean.mjs && tsc -p tsconfig.build.json && tsdown",
122
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.test.json --noEmit",
123
+ "test": "vitest run && node tests/run-restart.mjs && node ../cloud-placement/tests/run.mjs ../im-runtime/tests/placement-return.test.ts ../im-runtime/tests/checkpoint-recovery.test.ts ../im-runtime/tests/checkpoint-recovery-recorded.test.ts ../im-runtime/tests/checkpoint-cursor-conflict.test.ts ../im-runtime/tests/checkpoint-lifecycle.test.ts ../im-runtime/tests/released-placement-resume.test.ts ../im-runtime/tests/placement-task-ownership.test.ts",
124
+ "smoke:loader": "node scripts/smoke-loader.mjs",
125
+ "test:restart": "node tests/run-restart.mjs",
126
+ "test:typecheck": "tsc -p tsconfig.test.json --noEmit"
127
+ }
6
128
  }