@khorsheed/dsh-local-agent 0.1.0-rc.6

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 (99) hide show
  1. package/README.en.md +181 -0
  2. package/README.i18n.yaml +2 -0
  3. package/README.md +181 -0
  4. package/cordis.patch.yml +21 -0
  5. package/lib/client.js +8832 -0
  6. package/lib/index.js +5281 -0
  7. package/lib/invariant.js +85 -0
  8. package/lib/member-bridge.js +298 -0
  9. package/lib/typert.host.d.ts +3 -0
  10. package/lib/typert.host.js +3137 -0
  11. package/lib/typert.remote-client.d.ts +67 -0
  12. package/lib/typert.remote-client.js +1971 -0
  13. package/lib/types/cli-version.d.ts +82 -0
  14. package/lib/types/cli-version.js +165 -0
  15. package/lib/types/client/AuthStatusDot.d.ts +17 -0
  16. package/lib/types/client/AuthStatusDot.js +9 -0
  17. package/lib/types/client/HarnessModelPicker.d.ts +17 -0
  18. package/lib/types/client/HarnessModelPicker.js +48 -0
  19. package/lib/types/client/LocalAgentRecordsAction.d.ts +41 -0
  20. package/lib/types/client/LocalAgentRecordsAction.js +74 -0
  21. package/lib/types/client/MemberComposer.d.ts +79 -0
  22. package/lib/types/client/MemberComposer.js +308 -0
  23. package/lib/types/client/MemberConfiguration.d.ts +9 -0
  24. package/lib/types/client/MemberConfiguration.js +46 -0
  25. package/lib/types/client/MemberInboxView.d.ts +12 -0
  26. package/lib/types/client/MemberInboxView.js +38 -0
  27. package/lib/types/client/MemberLiveNode.d.ts +14 -0
  28. package/lib/types/client/MemberLiveNode.js +74 -0
  29. package/lib/types/client/MemberPaintDiagnostics.d.ts +7 -0
  30. package/lib/types/client/MemberPaintDiagnostics.js +20 -0
  31. package/lib/types/client/ModelConfigurationFields.d.ts +15 -0
  32. package/lib/types/client/ModelConfigurationFields.js +23 -0
  33. package/lib/types/client/ProviderAuthBlock.d.ts +59 -0
  34. package/lib/types/client/ProviderAuthBlock.js +164 -0
  35. package/lib/types/client/auth-status.d.ts +28 -0
  36. package/lib/types/client/auth-status.js +56 -0
  37. package/lib/types/client/icons.d.ts +22 -0
  38. package/lib/types/client/icons.js +6 -0
  39. package/lib/types/client/index.d.ts +62 -0
  40. package/lib/types/client/index.js +135 -0
  41. package/lib/types/client/live-node.d.ts +14 -0
  42. package/lib/types/client/live-node.js +34 -0
  43. package/lib/types/client/live-output.d.ts +34 -0
  44. package/lib/types/client/live-output.js +94 -0
  45. package/lib/types/client/live-paint.d.ts +40 -0
  46. package/lib/types/client/live-paint.js +74 -0
  47. package/lib/types/client/locales.d.ts +120 -0
  48. package/lib/types/client/locales.js +227 -0
  49. package/lib/types/client/member-configuration.d.ts +41 -0
  50. package/lib/types/client/member-configuration.js +114 -0
  51. package/lib/types/client/member-dock.d.ts +94 -0
  52. package/lib/types/client/member-dock.js +102 -0
  53. package/lib/types/client/member-feed.d.ts +24 -0
  54. package/lib/types/client/member-feed.js +134 -0
  55. package/lib/types/client/request-id.d.ts +3 -0
  56. package/lib/types/client/request-id.js +6 -0
  57. package/lib/types/client/settings-scope.d.ts +74 -0
  58. package/lib/types/client/settings-scope.js +98 -0
  59. package/lib/types/client/use-configuration-menu.d.ts +10 -0
  60. package/lib/types/client/use-configuration-menu.js +61 -0
  61. package/lib/types/container.d.ts +69 -0
  62. package/lib/types/container.js +129 -0
  63. package/lib/types/env.d.ts +17 -0
  64. package/lib/types/env.js +89 -0
  65. package/lib/types/gateway.d.ts +162 -0
  66. package/lib/types/gateway.js +470 -0
  67. package/lib/types/index.d.ts +1463 -0
  68. package/lib/types/index.js +2704 -0
  69. package/lib/types/invariant.d.ts +16 -0
  70. package/lib/types/invariant.js +105 -0
  71. package/lib/types/live-flush.d.ts +21 -0
  72. package/lib/types/live-flush.js +59 -0
  73. package/lib/types/live-stream.d.ts +41 -0
  74. package/lib/types/live-stream.js +178 -0
  75. package/lib/types/member-bridge.d.ts +50 -0
  76. package/lib/types/member-bridge.js +216 -0
  77. package/lib/types/member-channel.d.ts +86 -0
  78. package/lib/types/member-channel.js +232 -0
  79. package/lib/types/member-control-storage.d.ts +10 -0
  80. package/lib/types/member-control-storage.js +100 -0
  81. package/lib/types/member-control.d.ts +62 -0
  82. package/lib/types/member-control.js +359 -0
  83. package/lib/types/member-controls.d.ts +23 -0
  84. package/lib/types/member-controls.js +143 -0
  85. package/lib/types/member-feed.d.ts +4 -0
  86. package/lib/types/member-feed.js +45 -0
  87. package/lib/types/member-inbox.d.ts +30 -0
  88. package/lib/types/member-inbox.js +225 -0
  89. package/lib/types/model-directory.d.ts +43 -0
  90. package/lib/types/model-directory.js +192 -0
  91. package/lib/types/prepared-members.d.ts +15 -0
  92. package/lib/types/prepared-members.js +61 -0
  93. package/lib/types/settings-face.d.ts +61 -0
  94. package/lib/types/settings-face.js +61 -0
  95. package/lib/types/types.d.ts +959 -0
  96. package/lib/types/types.js +24 -0
  97. package/locale/en.json +6 -0
  98. package/locale/zh.json +6 -0
  99. package/package.json +112 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Local-agent family type vocabulary, exported through the `./types` subpath
3
+ * so Typert Remote boundary types resolve from a public non-root subpath
4
+ * (the wire-schema generator's requirement for {@link LocalAgentGateway}
5
+ * method signatures).
6
+ * @module @khorsheed/dsh-local-agent/types
7
+ */
8
+ /**
9
+ * The hostname of an endpoint URL, or undefined when the value does not parse
10
+ * as a URL (scheme-less `host:port` forms included — still reported via
11
+ * `baseUrlSet`, just without a hostname).
12
+ */
13
+ export function endpointHost(url) {
14
+ try {
15
+ return new URL(url).host;
16
+ }
17
+ catch {
18
+ return undefined;
19
+ }
20
+ }
21
+ /** Environment variable carrying the member-bridge socket path (spawn env → bridge). */
22
+ export const MEMBER_BRIDGE_SOCKET_ENV = 'DSH_MEMBER_SOCKET';
23
+ /** Environment variable carrying the per-run member-bridge token. */
24
+ export const MEMBER_BRIDGE_TOKEN_ENV = 'DSH_MEMBER_TOKEN';
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Local Agent",
4
+ "description": "Use locally installed coding agent CLIs with scoped logins and delegation."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "本地代理",
4
+ "description": "使用本机安装的编码 agent CLI,支持隔离登录与委派。"
5
+ }
6
+ }
package/package.json ADDED
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "@khorsheed/dsh-local-agent",
3
+ "description": "Local code-agent harness registry and glue: scoped homes, /<harness> login and sessions commands, delegation provider contracts, and the roster-driven browser settings section",
4
+ "keywords": [
5
+ "dsh",
6
+ "dsh-plugin",
7
+ "cordis",
8
+ "local-agent",
9
+ "cli"
10
+ ],
11
+ "version": "0.1.0-rc.6",
12
+ "type": "module",
13
+ "main": "lib/index.js",
14
+ "types": "lib/types/index.d.ts",
15
+ "bin": {
16
+ "dsh-local-agent-member-bridge": "lib/member-bridge.js"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "types": "./lib/types/index.d.ts",
21
+ "default": "./lib/index.js"
22
+ },
23
+ "./invariant": {
24
+ "types": "./lib/types/invariant.d.ts",
25
+ "default": "./lib/invariant.js"
26
+ },
27
+ "./types": {
28
+ "types": "./lib/types/types.d.ts",
29
+ "default": "./lib/types/types.js"
30
+ },
31
+ "./typert": {
32
+ "types": "./lib/typert.host.d.ts",
33
+ "default": "./lib/typert.host.js"
34
+ },
35
+ "./remote": {
36
+ "types": "./lib/typert.remote-client.d.ts",
37
+ "default": "./lib/typert.remote-client.js"
38
+ },
39
+ "./client": {
40
+ "types": "./lib/types/client/index.d.ts",
41
+ "default": "./lib/client.js"
42
+ },
43
+ "./src/*": "./src/*",
44
+ "./package.json": "./package.json",
45
+ "./locale/*.json": "./locale/*.json",
46
+ "./cordis.patch.yml": "./cordis.patch.yml"
47
+ },
48
+ "dsh": {
49
+ "client": {
50
+ "inject": [
51
+ "@deepseek-ai/dsh-client-locale",
52
+ "@deepseek-ai/dsh-client-ui-conversation",
53
+ "@deepseek-ai/dsh-client-ui-primitives",
54
+ "@deepseek-ai/dsh-client-ui-chat"
55
+ ],
56
+ "platform": "web"
57
+ },
58
+ "bundle": {
59
+ "patch": "./cordis.patch.yml"
60
+ },
61
+ "compat": {
62
+ "minHost": "0.1.5-rc.1",
63
+ "verifiedHost": "0.1.5-rc.1"
64
+ }
65
+ },
66
+ "files": [
67
+ "lib",
68
+ "lib/typert.host.d.ts",
69
+ "lib/typert.host.js",
70
+ "lib/typert.remote-client.d.ts",
71
+ "lib/typert.remote-client.js",
72
+ "cordis.patch.yml",
73
+ "locale/*.json"
74
+ ],
75
+ "license": "MIT",
76
+ "dependencies": {
77
+ "zod": "^4.4.3"
78
+ },
79
+ "peerDependencies": {
80
+ "@deepseek-ai/cordis": "^4.0.1",
81
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
82
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6",
83
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6",
84
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.0-rc.6",
85
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
86
+ "@deepseek-ai/dsh-commands": "^0.1.0-rc.6",
87
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
88
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
89
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.6",
90
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.6",
91
+ "@deepseek-ai/dsh-subagent": "^0.1.0-rc.6",
92
+ "@deepseek-ai/dsh-subprocess": "^0.1.0-rc.6",
93
+ "@deepseek-ai/dsh-token-meter": "^0.1.0-rc.6",
94
+ "@deepseek-ai/dsh-tool-todo": "^0.1.0-rc.6",
95
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.0-rc.6",
96
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.0-rc.6"
97
+ },
98
+ "peerDependenciesMeta": {
99
+ "@deepseek-ai/dsh-token-meter": {
100
+ "optional": true
101
+ },
102
+ "@deepseek-ai/dsh-tool-todo": {
103
+ "optional": true
104
+ },
105
+ "@deepseek-ai/dsh-settings": {
106
+ "optional": true
107
+ },
108
+ "@deepseek-ai/dsh-client-ui-chat": {
109
+ "optional": true
110
+ }
111
+ }
112
+ }