@huanlin/dsh-plugin-yet-another-subagent 0.1.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.
@@ -0,0 +1,21 @@
1
+ //#region src/invariant.ts
2
+ const PACKAGE_NAME = "@huanlin/dsh-plugin-yet-another-subagent";
3
+ /** Cordis companion plugin name. */
4
+ const name = "yet-another-subagent-invariant";
5
+ /** Service required before the companion can reserve package ownership. */
6
+ const inject = ["invariants"];
7
+ /**
8
+ * No runtime invariant: profile tools, the RPC interceptor, and the two
9
+ * projections are registry-owned registrations whose disposal is proven by
10
+ * the HMR-safety spec. They emit no cordis events and own no cross-plugin
11
+ * mutable state (the in-memory ProfileStore's lifetime is the plugin fiber).
12
+ */
13
+ const install = () => {};
14
+ /**
15
+ * Register this package's invariant companion.
16
+ * @param ctx - Cordis context carrying the invariant service.
17
+ * @returns the installed registration's disposer after setup succeeds.
18
+ */
19
+ const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
20
+ //#endregion
21
+ export { apply, inject, name };
package/package.json ADDED
@@ -0,0 +1,156 @@
1
+ {
2
+ "name": "@huanlin/dsh-plugin-yet-another-subagent",
3
+ "version": "0.1.1",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "keywords": ["dsh-plugin"],
8
+ "description": "Configurable subagent profiles with web UI settings, real-time toolcall/token display, and click-to-navigate child sessions.",
9
+ "type": "module",
10
+ "license": "AGPL-3.0",
11
+ "main": "./lib/index.js",
12
+ "types": "./lib/types/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./lib/types/index.d.ts",
16
+ "import": "./lib/index.js"
17
+ },
18
+ "./invariant": {
19
+ "types": "./lib/types/invariant.d.ts",
20
+ "import": "./lib/invariant.js"
21
+ },
22
+ "./client": {
23
+ "types": "./lib/types/client/index.d.ts",
24
+ "default": "./lib/client.js"
25
+ },
26
+ "./src/*": "./src/*",
27
+ "./package.json": "./package.json"
28
+ },
29
+ "files": [
30
+ "lib/index.js",
31
+ "lib/invariant.js",
32
+ "lib/client.js",
33
+ "lib/types/**/*.d.ts",
34
+ "cordis.patch.yml"
35
+ ],
36
+ "dsh": {
37
+ "bundle": {
38
+ "patch": "./cordis.patch.yml"
39
+ },
40
+ "client": {
41
+ "inject": [
42
+ "@deepseek-ai/dsh-client-runtime",
43
+ "@deepseek-ai/dsh-client-locale",
44
+ "@deepseek-ai/dsh-client-connection",
45
+ "@deepseek-ai/dsh-client-ui-tool",
46
+ "@deepseek-ai/dsh-client-ui-settings",
47
+ "@deepseek-ai/dsh-client-ui-slots",
48
+ "@deepseek-ai/dsh-client-ui-conversation",
49
+ "@deepseek-ai/dsh-client-ui-primitives"
50
+ ],
51
+ "platform": "web"
52
+ }
53
+ },
54
+ "scripts": {
55
+ "typecheck": "tsc --noEmit -p tsconfig.json",
56
+ "test": "vitest run",
57
+ "build": "tsc -p tsconfig.json && tsdown -c tsdown.config.ts",
58
+ "bundle:client": "tsdown -c tsdown.config.ts"
59
+ },
60
+ "peerDependencies": {
61
+ "@deepseek-ai/dsh-agent": "^0.0.1-rc.1",
62
+ "@deepseek-ai/dsh-client-connection": "^0.0.1-rc.1",
63
+ "@deepseek-ai/dsh-client-locale": "^0.0.1-rc.1",
64
+ "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.1",
65
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.0.1-rc.1",
66
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.1",
67
+ "@deepseek-ai/dsh-client-ui-settings": "^0.0.1-rc.1",
68
+ "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.1",
69
+ "@deepseek-ai/dsh-client-ui-tool": "^0.0.1-rc.1",
70
+ "@deepseek-ai/dsh-host-apiproxy": "^0.0.1-rc.1",
71
+ "@deepseek-ai/dsh-invariants": "^0.0.1-rc.1",
72
+ "@deepseek-ai/dsh-llm": "^0.0.1-rc.1",
73
+ "@deepseek-ai/dsh-session": "^0.0.1-rc.1",
74
+ "@deepseek-ai/dsh-session-projection": "^0.0.1-rc.1",
75
+ "@deepseek-ai/dsh-subagent": "^0.0.1-rc.1",
76
+ "@deepseek-ai/dsh-jobs": "^0.0.1-rc.1",
77
+ "@deepseek-ai/dsh-tools": "^0.0.1-rc.1",
78
+ "cordis": "^4.0.0-rc.7",
79
+ "react": "^18.2.0",
80
+ "schemastery": "^3.18.0"
81
+ },
82
+ "peerDependenciesMeta": {
83
+ "@deepseek-ai/dsh-agent": {
84
+ "optional": true
85
+ },
86
+ "@deepseek-ai/dsh-client-connection": {
87
+ "optional": true
88
+ },
89
+ "@deepseek-ai/dsh-client-locale": {
90
+ "optional": true
91
+ },
92
+ "@deepseek-ai/dsh-client-runtime": {
93
+ "optional": true
94
+ },
95
+ "@deepseek-ai/dsh-client-ui-conversation": {
96
+ "optional": true
97
+ },
98
+ "@deepseek-ai/dsh-client-ui-primitives": {
99
+ "optional": true
100
+ },
101
+ "@deepseek-ai/dsh-client-ui-settings": {
102
+ "optional": true
103
+ },
104
+ "@deepseek-ai/dsh-client-ui-slots": {
105
+ "optional": true
106
+ },
107
+ "@deepseek-ai/dsh-client-ui-tool": {
108
+ "optional": true
109
+ },
110
+ "@deepseek-ai/dsh-host-apiproxy": {
111
+ "optional": true
112
+ },
113
+ "@deepseek-ai/dsh-invariants": {
114
+ "optional": true
115
+ },
116
+ "@deepseek-ai/dsh-llm": {
117
+ "optional": true
118
+ },
119
+ "@deepseek-ai/dsh-session": {
120
+ "optional": true
121
+ },
122
+ "@deepseek-ai/dsh-session-projection": {
123
+ "optional": true
124
+ },
125
+ "@deepseek-ai/dsh-subagent": {
126
+ "optional": true
127
+ },
128
+ "@deepseek-ai/dsh-jobs": {
129
+ "optional": true
130
+ },
131
+ "@deepseek-ai/dsh-tools": {
132
+ "optional": true
133
+ },
134
+ "cordis": {
135
+ "optional": true
136
+ },
137
+ "react": {
138
+ "optional": true
139
+ },
140
+ "schemastery": {
141
+ "optional": true
142
+ }
143
+ },
144
+ "devDependencies": {
145
+ "@types/node": "^22.0.0",
146
+ "@types/react": "~18.3.1",
147
+ "lightningcss": "^1.33.0",
148
+ "tsdown": "^0.15.0",
149
+ "typescript": "^5.9.0",
150
+ "vitest": "^3.2.0",
151
+ "zod": "4.4.3"
152
+ },
153
+ "engines": {
154
+ "node": ">=22.0.0"
155
+ }
156
+ }