@crazx/dsh-api-session-controller 0.1.2-alpha.3.zw.1

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 (74) hide show
  1. package/LICENSE +21 -0
  2. package/README.i18n.yaml +6 -0
  3. package/README.md +74 -0
  4. package/README.zh.md +74 -0
  5. package/lib/client.js +2724 -0
  6. package/lib/index.js +2826 -0
  7. package/lib/invariant.js +13 -0
  8. package/lib/typert.host.d.ts +3 -0
  9. package/lib/typert.host.js +2574 -0
  10. package/lib/typert.remote-client.d.ts +67 -0
  11. package/lib/typert.remote-client.js +1119 -0
  12. package/lib/types/agent.d.ts +156 -0
  13. package/lib/types/agent.js +537 -0
  14. package/lib/types/catalog.d.ts +11 -0
  15. package/lib/types/catalog.js +58 -0
  16. package/lib/types/client/contract/events.d.ts +71 -0
  17. package/lib/types/client/contract/events.js +91 -0
  18. package/lib/types/client/contract/session.d.ts +150 -0
  19. package/lib/types/client/contract/session.js +2 -0
  20. package/lib/types/client/contract/sessions.d.ts +125 -0
  21. package/lib/types/client/contract/sessions.js +2 -0
  22. package/lib/types/client/contract/snapshot.d.ts +82 -0
  23. package/lib/types/client/contract/snapshot.js +2 -0
  24. package/lib/types/client/index.d.ts +30 -0
  25. package/lib/types/client/index.js +48 -0
  26. package/lib/types/client/ordered-baseline.d.ts +12 -0
  27. package/lib/types/client/ordered-baseline.js +41 -0
  28. package/lib/types/client/scope.d.ts +36 -0
  29. package/lib/types/client/scope.js +54 -0
  30. package/lib/types/client/sessions/history-records.d.ts +22 -0
  31. package/lib/types/client/sessions/history-records.js +31 -0
  32. package/lib/types/client/sessions/lineage.d.ts +38 -0
  33. package/lib/types/client/sessions/lineage.js +56 -0
  34. package/lib/types/client/sessions/manager.d.ts +280 -0
  35. package/lib/types/client/sessions/manager.js +894 -0
  36. package/lib/types/client/sessions/notifier.d.ts +39 -0
  37. package/lib/types/client/sessions/notifier.js +98 -0
  38. package/lib/types/client/sessions/projection-store.d.ts +108 -0
  39. package/lib/types/client/sessions/projection-store.js +129 -0
  40. package/lib/types/client/sessions/queue-mirror.d.ts +26 -0
  41. package/lib/types/client/sessions/queue-mirror.js +61 -0
  42. package/lib/types/client/sessions/remotes.d.ts +30 -0
  43. package/lib/types/client/sessions/remotes.js +8 -0
  44. package/lib/types/client/sessions/service.d.ts +349 -0
  45. package/lib/types/client/sessions/service.js +574 -0
  46. package/lib/types/client/sessions/session.d.ts +294 -0
  47. package/lib/types/client/sessions/session.js +711 -0
  48. package/lib/types/client/time-zone.d.ts +8 -0
  49. package/lib/types/client/time-zone.js +14 -0
  50. package/lib/types/client/transport.d.ts +73 -0
  51. package/lib/types/client/transport.js +106 -0
  52. package/lib/types/commands.d.ts +69 -0
  53. package/lib/types/commands.js +544 -0
  54. package/lib/types/control.d.ts +23 -0
  55. package/lib/types/control.js +192 -0
  56. package/lib/types/file-references.d.ts +27 -0
  57. package/lib/types/file-references.js +69 -0
  58. package/lib/types/history.d.ts +31 -0
  59. package/lib/types/history.js +376 -0
  60. package/lib/types/index.d.ts +171 -0
  61. package/lib/types/index.js +424 -0
  62. package/lib/types/invariant.d.ts +9 -0
  63. package/lib/types/invariant.js +12 -0
  64. package/lib/types/list.d.ts +53 -0
  65. package/lib/types/list.js +405 -0
  66. package/lib/types/model-selection-projection.d.ts +8 -0
  67. package/lib/types/model-selection-projection.js +66 -0
  68. package/lib/types/remote-events.d.ts +8 -0
  69. package/lib/types/remote-events.js +2 -0
  70. package/lib/types/skill-catalog.d.ts +28 -0
  71. package/lib/types/skill-catalog.js +192 -0
  72. package/lib/types/types.d.ts +505 -0
  73. package/lib/types/types.js +6 -0
  74. package/package.json +154 -0
@@ -0,0 +1,6 @@
1
+ /** Browser-safe request, result, and lifecycle vocabulary for the Session Remote service. */
2
+ /** Maximum number of Sessions returned by one search. */
3
+ export const SESSION_SEARCH_RESULT_LIMIT = 20;
4
+ /** Maximum search snippet length in Unicode code points. */
5
+ export const SESSION_SEARCH_SNIPPET_MAX_CODE_POINTS = 240;
6
+ //# sourceMappingURL=types.js.map
package/package.json ADDED
@@ -0,0 +1,154 @@
1
+ {
2
+ "name": "@crazx/dsh-api-session-controller",
3
+ "description": "Session Remote commands, cold reads, and live control transport",
4
+ "version": "0.1.2-alpha.3.zw.1",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/aka-danielZhang/deepseek-harness.git",
11
+ "directory": "packages/api/session-controller"
12
+ },
13
+ "type": "module",
14
+ "main": "lib/index.js",
15
+ "types": "lib/types/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/types/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./invariant": {
22
+ "types": "./lib/types/invariant.d.ts",
23
+ "default": "./lib/invariant.js"
24
+ },
25
+ "./types": {
26
+ "types": "./lib/types/types.d.ts",
27
+ "default": "./lib/types/types.js"
28
+ },
29
+ "./remote-events": {
30
+ "types": "./lib/types/remote-events.d.ts",
31
+ "default": "./lib/types/remote-events.js"
32
+ },
33
+ "./client": {
34
+ "types": "./lib/types/client/index.d.ts",
35
+ "default": "./lib/client.js"
36
+ },
37
+ "./typert": {
38
+ "types": "./lib/typert.host.d.ts",
39
+ "default": "./lib/typert.host.js"
40
+ },
41
+ "./remote": {
42
+ "types": "./lib/typert.remote-client.d.ts",
43
+ "default": "./lib/typert.remote-client.js"
44
+ },
45
+ "./src/*": "./src/*",
46
+ "./package.json": "./package.json"
47
+ },
48
+ "dsh": {
49
+ "client": {
50
+ "external": [
51
+ "@deepseek-ai/dsh-api-gateway/client"
52
+ ],
53
+ "inject": [
54
+ "@deepseek-ai/dsh-api-gateway"
55
+ ],
56
+ "platform": "web"
57
+ }
58
+ },
59
+ "files": [
60
+ "lib/index.js",
61
+ "lib/invariant.js",
62
+ "lib/client.js",
63
+ "lib/types/**/*.js",
64
+ "lib/types/**/*.d.ts",
65
+ "lib/typert.host.js",
66
+ "lib/typert.host.d.ts",
67
+ "lib/typert.remote-client.js",
68
+ "lib/typert.remote-client.d.ts"
69
+ ],
70
+ "license": "MIT",
71
+ "dependencies": {
72
+ "@deepseek-ai/dsh-brand": "^0.1.2-alpha.3",
73
+ "@deepseek-ai/dsh-deque": "^0.1.2-alpha.3",
74
+ "@deepseek-ai/schemastery": "^3.18.2",
75
+ "zod": "^4.4.3"
76
+ },
77
+ "peerDependencies": {
78
+ "@deepseek-ai/cordis": "^4.0.2",
79
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
80
+ "@deepseek-ai/dsh-agent-presets": "^0.1.2-alpha.3",
81
+ "@deepseek-ai/dsh-api-gateway": "^0.1.2-alpha.3",
82
+ "@deepseek-ai/dsh-attachment": "^0.1.2-alpha.3",
83
+ "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.3",
84
+ "@deepseek-ai/dsh-file-reference": "^0.1.2-alpha.3",
85
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
86
+ "@deepseek-ai/dsh-jobs": "^0.1.2-alpha.3",
87
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
88
+ "@deepseek-ai/dsh-native-command": "^0.1.2-alpha.3",
89
+ "@deepseek-ai/dsh-scope": "^0.1.2-alpha.3",
90
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
91
+ "@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.3",
92
+ "@deepseek-ai/dsh-session-projection-cache": "^0.1.2-alpha.3",
93
+ "@deepseek-ai/dsh-session-query": "^0.1.2-alpha.3",
94
+ "@deepseek-ai/dsh-session-title": "^0.1.2-alpha.3",
95
+ "@deepseek-ai/dsh-skill": "^0.1.2-alpha.3",
96
+ "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.3",
97
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.3",
98
+ "@deepseek-ai/dsh-typert-registry": "^0.1.2-alpha.3",
99
+ "@deepseek-ai/dsh-util-time": "^0.1.2-alpha.3",
100
+ "@deepseek-ai/dsh-util-workspace-path": "^0.1.2-alpha.3",
101
+ "@deepseek-ai/dsh-workspace": "^0.1.2-alpha.3",
102
+ "@crazx/dsh-agent-default-model": "0.1.2-alpha.3.zw.1",
103
+ "@crazx/dsh-session-persistence": "0.1.2-alpha.3.zw.1"
104
+ },
105
+ "peerDependenciesMeta": {
106
+ "@deepseek-ai/dsh-jobs": {
107
+ "optional": true
108
+ },
109
+ "@deepseek-ai/dsh-session-persistence": {
110
+ "optional": true
111
+ },
112
+ "@deepseek-ai/dsh-session-projection-cache": {
113
+ "optional": true
114
+ }
115
+ },
116
+ "devDependencies": {
117
+ "@deepseek-ai/cordis": "^4.0.2",
118
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
119
+ "@deepseek-ai/dsh-agent-presets": "^0.1.2-alpha.3",
120
+ "@deepseek-ai/dsh-api-gateway": "^0.1.2-alpha.3",
121
+ "@deepseek-ai/dsh-attachment": "^0.1.2-alpha.3",
122
+ "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.3",
123
+ "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.3",
124
+ "@deepseek-ai/dsh-file-reference": "^0.1.2-alpha.3",
125
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
126
+ "@deepseek-ai/dsh-jobs": "^0.1.2-alpha.3",
127
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
128
+ "@deepseek-ai/dsh-native-command": "^0.1.2-alpha.3",
129
+ "@deepseek-ai/dsh-permission-presets": "^0.1.2-alpha.3",
130
+ "@deepseek-ai/dsh-scope": "^0.1.2-alpha.3",
131
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
132
+ "@deepseek-ai/dsh-session-projection": "^0.1.2-alpha.3",
133
+ "@deepseek-ai/dsh-session-projection-cache": "^0.1.2-alpha.3",
134
+ "@deepseek-ai/dsh-session-query": "^0.1.2-alpha.3",
135
+ "@deepseek-ai/dsh-session-title": "^0.1.2-alpha.3",
136
+ "@deepseek-ai/dsh-skill": "^0.1.2-alpha.3",
137
+ "@deepseek-ai/dsh-storage": "^0.1.2-alpha.3",
138
+ "@deepseek-ai/dsh-storage-domain": "^0.1.2-alpha.3",
139
+ "@deepseek-ai/dsh-storage-json": "^0.1.2-alpha.3",
140
+ "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.3",
141
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.3",
142
+ "@deepseek-ai/dsh-typert-registry": "^0.1.2-alpha.3",
143
+ "@deepseek-ai/dsh-util-crypto": "^0.1.2-alpha.3",
144
+ "@deepseek-ai/dsh-util-time": "^0.1.2-alpha.3",
145
+ "@deepseek-ai/dsh-util-workspace-path": "^0.1.2-alpha.3",
146
+ "@deepseek-ai/dsh-workspace": "^0.1.2-alpha.3",
147
+ "@crazx/dsh-agent-default-model": "0.1.2-alpha.3.zw.1",
148
+ "@crazx/dsh-session-persistence": "0.1.2-alpha.3.zw.1"
149
+ },
150
+ "scripts": {
151
+ "bundle": "tsdown",
152
+ "watch": "tsdown --watch"
153
+ }
154
+ }