@norman-else/dsh-claude 0.1.45 → 0.1.47

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.
package/INSTALL.md CHANGED
@@ -1,55 +1,55 @@
1
- # Agent Installation Runbook
2
-
3
- This runbook is idempotent for a local `dsh-claude` checkout and an existing DSH `web` profile.
4
-
5
- ## 1. Verify the checkout
6
-
7
- ```sh
8
- cd /path/to/dsh-claude
9
- export PATH="/opt/homebrew/bin:$PATH"
10
- pnpm install
11
- pnpm check
12
- node lib/bin.mjs doctor
13
- ```
14
-
15
- Stop if Doctor cannot find an authenticated local Claude Code installation. Do not request, copy, or write credentials.
16
-
17
- ## 2. Link the bundle into the current Web profile
18
-
19
- The bundle keeps a protected compatibility preset at `$DSH_HOME/.agent-presets/claude`, because DSH Desktop 2.0.4 does not retain third-party preset roots from bundle patches. Its route uses the active profile package source to avoid duplicate client-module Loaders. User-modified preset files are preserved.
20
-
21
- ```sh
22
- dsh plugin --profile web add "link:$(pwd)"
23
- ```
24
-
25
- Do not start another DSH Web server. This bundle must load in the existing app at `http://127.0.0.1:56454`.
26
-
27
- ## 3. Refresh and smoke test
28
-
29
- 1. Refresh the existing DSH Web page.
30
- 2. Confirm **Claude** appears in the new-session Agent Preset picker.
31
- 3. Run one existing native preset prompt and verify it remains native.
32
- 4. Create a Claude session and send a read-only prompt.
33
- 5. Send one edit prompt; verify DSH displays a permission request. Exercise reject first, then allow once with a harmless temporary file.
34
- 6. Cancel a running prompt and confirm the cancelled session owns no child `claude` process that is still executing cancelled work or left orphaned/unowned.
35
- 7. Refresh the browser and continue the session.
36
- 8. Restart DSH and confirm the next prompt resumes the persisted Claude session.
37
-
38
- A live prompt can consume the user's Claude subscription. Keep it minimal.
39
-
40
- ## 4. Uninstall
41
-
42
- Clean up the managed preset while the profile can still execute the package CLI, then remove the plugin:
43
-
44
- ```sh
45
- dsh plugin --profile web exec dsh-claude remove-preset
46
- dsh plugin --profile web remove @norman-else/dsh-claude
47
- ```
48
-
49
- DSH has no plugin uninstall lifecycle hook, so direct package removal can leave the compatibility preset behind. After direct removal, no source checkout is required; run the matching package version:
50
-
51
- ```sh
52
- pnpm dlx @norman-else/dsh-claude@<version> remove-preset
53
- ```
54
-
55
- Cleanup refuses to delete user-modified preset content.
1
+ # Agent Installation Runbook
2
+
3
+ This runbook is idempotent for a local `dsh-claude` checkout and an existing DSH `web` profile.
4
+
5
+ ## 1. Verify the checkout
6
+
7
+ ```sh
8
+ cd /path/to/dsh-claude
9
+ export PATH="/opt/homebrew/bin:$PATH"
10
+ pnpm install
11
+ pnpm check
12
+ node lib/bin.mjs doctor
13
+ ```
14
+
15
+ Stop if Doctor cannot find an authenticated local Claude Code installation. Do not request, copy, or write credentials.
16
+
17
+ ## 2. Link the bundle into the current Web profile
18
+
19
+ The bundle keeps a protected compatibility preset at `$DSH_HOME/.agent-presets/claude`, because DSH Desktop 2.0.4 does not retain third-party preset roots from bundle patches. Its route uses the active profile package source to avoid duplicate client-module Loaders. User-modified preset files are preserved.
20
+
21
+ ```sh
22
+ dsh plugin --profile web add "link:$(pwd)"
23
+ ```
24
+
25
+ Do not start another DSH Web server. This bundle must load in the existing app at `http://127.0.0.1:56454`.
26
+
27
+ ## 3. Refresh and smoke test
28
+
29
+ 1. Refresh the existing DSH Web page.
30
+ 2. Confirm **Claude** appears in the new-session Agent Preset picker.
31
+ 3. Run one existing native preset prompt and verify it remains native.
32
+ 4. Create a Claude session and send a read-only prompt.
33
+ 5. Send one edit prompt; verify DSH displays a permission request. Exercise reject first, then allow once with a harmless temporary file.
34
+ 6. Cancel a running prompt and confirm the cancelled session owns no child `claude` process that is still executing cancelled work or left orphaned/unowned.
35
+ 7. Refresh the browser and continue the session.
36
+ 8. Restart DSH and confirm the next prompt resumes the persisted Claude session.
37
+
38
+ A live prompt can consume the user's Claude subscription. Keep it minimal.
39
+
40
+ ## 4. Uninstall
41
+
42
+ Clean up the managed preset while the profile can still execute the package CLI, then remove the plugin:
43
+
44
+ ```sh
45
+ dsh plugin --profile web exec dsh-claude remove-preset
46
+ dsh plugin --profile web remove @norman-else/dsh-claude
47
+ ```
48
+
49
+ DSH has no plugin uninstall lifecycle hook, so direct package removal can leave the compatibility preset behind. After direct removal, no source checkout is required; run the matching package version:
50
+
51
+ ```sh
52
+ pnpm dlx @norman-else/dsh-claude@<version> remove-preset
53
+ ```
54
+
55
+ Cleanup refuses to delete user-modified preset content.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 dsh-claude contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-claude contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.