@alexpeng/dsh-custom-plugin 0.9.2 → 0.10.0

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 (39) hide show
  1. package/CHANGELOG.md +1687 -850
  2. package/NOTICE +71 -0
  3. package/README.i18n.yaml +2 -2
  4. package/README.md +344 -335
  5. package/README.zh.md +309 -302
  6. package/lib/client.js +9416 -2002
  7. package/lib/client.js.map +1 -1
  8. package/lib/index.js +233 -99
  9. package/lib/types/balance.d.ts +44 -0
  10. package/lib/types/client/api.d.ts +13 -8
  11. package/lib/types/client/bg-ascii.d.ts +397 -0
  12. package/lib/types/client/bg-field.d.ts +60 -0
  13. package/lib/types/client/bg-focus.d.ts +63 -0
  14. package/lib/types/client/bg-layer.d.ts +152 -0
  15. package/lib/types/client/bg-ocean.d.ts +31 -0
  16. package/lib/types/client/bg-params.d.ts +142 -0
  17. package/lib/types/client/bg-pointer.d.ts +107 -0
  18. package/lib/types/client/bg-shader.d.ts +329 -0
  19. package/lib/types/client/bg-wake.d.ts +57 -0
  20. package/lib/types/client/custom.d.ts +4 -1
  21. package/lib/types/client/index.d.ts +1 -1
  22. package/lib/types/client/palette.d.ts +100 -0
  23. package/lib/types/client/panel-bounds.d.ts +65 -0
  24. package/lib/types/client/styles.d.ts +9 -4
  25. package/lib/types/client/ui/anchor.d.ts +55 -0
  26. package/lib/types/client/ui/appearance-controls.d.ts +24 -0
  27. package/lib/types/client/ui/command-model.d.ts +28 -0
  28. package/lib/types/client/ui/folders-model.d.ts +31 -0
  29. package/lib/types/client/ui/index-bridge.d.ts +6 -0
  30. package/lib/types/client/ui/overlays.d.ts +66 -0
  31. package/lib/types/client/ui/primitives.d.ts +93 -0
  32. package/lib/types/client/ui/prompt-model.d.ts +37 -0
  33. package/lib/types/host-service.d.ts +68 -15
  34. package/lib/types/pricing.d.ts +8 -4
  35. package/lib/types/protocol.d.ts +48 -2
  36. package/lib/types/usage.d.ts +8 -4
  37. package/locale/en.json +1 -1
  38. package/locale/zh.json +1 -1
  39. package/package.json +13 -12
package/NOTICE ADDED
@@ -0,0 +1,71 @@
1
+ dsh-custom-plugin
2
+ =================
3
+
4
+ The ocean background piece (`src/client/bg-ocean.ts`) derives its
5
+ divergence-free current form and its boids-lite school steering from
6
+ `stackedlol/ascii-sharks`:
7
+
8
+ MIT License
9
+ Copyright (c) 2026 drewdi
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ The wave tank (`src/client/bg-wake.ts`) is original to this package.
30
+
31
+ The `dsh-ascii-ocean` plugin was read as a behaviour reference only. Its
32
+ repository has no licence text (the LICENSE file is 12 bytes), so no code from
33
+ it is copied here.
34
+
35
+ The shape-aware glyph chart in `src/client/bg-ascii.ts` (`SHAPE_EXTRAS`,
36
+ `buildShapeChart` and the `level × 5 + direction` lookup) adapts the algorithm
37
+ described in Alex Harri Jónsson's "ASCII characters are not pixels" and the MIT
38
+ `glyph-graphics` implementation:
39
+
40
+ MIT License
41
+
42
+ Copyright (c) 2026 Alex Yankov
43
+
44
+ This library implements the ASCII rendering algorithm described in
45
+ "Rendering ASCII in WebGL" by Alex Harri Jónsson
46
+ (https://alexharri.com/blog/ascii-rendering) and is derived from the
47
+ MIT-licensed implementation in https://github.com/alexharri/website:
48
+
49
+ Copyright (c) 2025 Alex Harri Jónsson
50
+
51
+ Permission is hereby granted, free of charge, to any person obtaining a copy
52
+ of this software and associated documentation files (the "Software"), to deal
53
+ in the Software without restriction, including without limitation the rights
54
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55
+ copies of the Software, and to permit persons to whom the Software is
56
+ furnished to do so, subject to the following conditions:
57
+
58
+ The above copyright notice and this permission notice shall be included in all
59
+ copies or substantial portions of the Software.
60
+
61
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67
+ SOFTWARE.
68
+
69
+ No source files are vendored: the renderer applies the idea to its own
70
+ level-buffer + atlas pipeline.
71
+
package/README.i18n.yaml CHANGED
@@ -3,5 +3,5 @@
3
3
  # after editing either side, bring the other along and re-record the hashes:
4
4
  # git hash-object --path README.md README.md
5
5
  # git hash-object --path README.zh.md README.zh.md
6
- README.md: 4c5fbe086924635e8f9020244fd8d18e2e80ed01
7
- README.zh.md: ead137acecc97e504b48ea2535d20e501de0b91f
6
+ README.md: 0c6afb33121cfd0fb474f14b0bd726266e9c21ca
7
+ README.zh.md: dd6aaf15840fef947bd6da1b5871e1faf73e9c32