dsh-opencode-go 0.1.21 → 0.1.22

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 (48) hide show
  1. package/README.en.md +128 -167
  2. package/README.md +126 -158
  3. package/THIRD_PARTY_NOTICES.md +3 -1
  4. package/docs/development.md +56 -6
  5. package/docs/fork-review-2026-09-25.md +191 -0
  6. package/docs/independent-package.md +2 -2
  7. package/docs/verification.md +154 -0
  8. package/lib/build-info.json +8 -1
  9. package/lib/client.js +412 -262
  10. package/lib/index.js +6763 -428
  11. package/lib/types/account-manager.d.ts +23 -0
  12. package/lib/types/account-operations.d.ts +31 -0
  13. package/lib/types/account-policy.d.ts +16 -0
  14. package/lib/types/account-recovery.d.ts +2 -0
  15. package/lib/types/account-selection.d.ts +30 -0
  16. package/lib/types/account-service.d.ts +12 -0
  17. package/lib/types/accounts-contract.d.ts +38 -0
  18. package/lib/types/accounts.d.ts +5 -0
  19. package/lib/types/adapter.d.ts +30 -10
  20. package/lib/types/call-trace.d.ts +54 -0
  21. package/lib/types/catalog-manager.d.ts +20 -0
  22. package/lib/types/catalog.d.ts +5 -3
  23. package/lib/types/client/accounts-controller.d.ts +6 -17
  24. package/lib/types/client/host-compat.d.ts +7 -0
  25. package/lib/types/client/locales.d.ts +9 -0
  26. package/lib/types/client/section-controller.d.ts +11 -46
  27. package/lib/types/client/staged-form.d.ts +1 -3
  28. package/lib/types/client/usage.d.ts +1 -1
  29. package/lib/types/config-contract.d.ts +69 -0
  30. package/lib/types/config.d.ts +12 -53
  31. package/lib/types/conversion/context.d.ts +5 -1
  32. package/lib/types/conversion/image-pool.d.ts +24 -0
  33. package/lib/types/conversion/replay.d.ts +1 -1
  34. package/lib/types/conversion/stream.d.ts +1 -1
  35. package/lib/types/gateway-diagnostics.d.ts +22 -0
  36. package/lib/types/gateway-error.d.ts +2 -0
  37. package/lib/types/host-settings.d.ts +11 -0
  38. package/lib/types/index.d.ts +1 -1
  39. package/lib/types/model-metadata.d.ts +3 -1
  40. package/lib/types/models-contract.d.ts +7 -0
  41. package/lib/types/protocol-contract.d.ts +5 -0
  42. package/lib/types/protocol-policy.d.ts +4 -0
  43. package/lib/types/reasoning.d.ts +36 -6
  44. package/lib/types/request-control.d.ts +2 -0
  45. package/lib/types/sdk-types.d.ts +1568 -0
  46. package/lib/types/settings-bridge.d.ts +22 -0
  47. package/lib/vendor-licenses.txt +103 -0
  48. package/package.json +6 -2
@@ -0,0 +1,22 @@
1
+ export interface AccountSettingsWriter {
2
+ describe(): readonly {
3
+ ns: string;
4
+ revision: number;
5
+ value: unknown;
6
+ }[];
7
+ mutate(ns: string, ops: readonly {
8
+ op: 'set';
9
+ path: string[];
10
+ value: unknown;
11
+ }[], expectedRevision?: number): Promise<unknown>;
12
+ }
13
+ /** Prefer the live profile entry when a legacy section also exists. */
14
+ export declare function accountSettingsRow(settings: AccountSettingsWriter): {
15
+ ns: string;
16
+ revision: number;
17
+ value: unknown;
18
+ } | undefined;
19
+ export type SettingsWriteResult = 'applied' | 'rejected' | 'unknown';
20
+ /** A modern verdict is authoritative; legacy writes need a committed-state check. */
21
+ export declare function settingsWriteResult(verdict: unknown, committed: () => boolean): SettingsWriteResult;
22
+ export declare function isSettingsConflict(error: unknown): boolean;
@@ -0,0 +1,103 @@
1
+ @earendil-works/pi-telemetry@1.1.0
2
+
3
+ MIT License
4
+
5
+ Copyright (c) 2025 Mario Zechner
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+ ---
26
+
27
+ @earendil-works/pi-ai@1.1.0
28
+
29
+ MIT License
30
+
31
+ Copyright (c) 2025 Mario Zechner
32
+
33
+ Permission is hereby granted, free of charge, to any person obtaining a copy
34
+ of this software and associated documentation files (the "Software"), to deal
35
+ in the Software without restriction, including without limitation the rights
36
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37
+ copies of the Software, and to permit persons to whom the Software is
38
+ furnished to do so, subject to the following conditions:
39
+
40
+ The above copyright notice and this permission notice shall be included in all
41
+ copies or substantial portions of the Software.
42
+
43
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
47
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
49
+ SOFTWARE.
50
+
51
+ ---
52
+
53
+ typebox@1.3.27
54
+
55
+ TypeBox
56
+
57
+ The MIT License (MIT)
58
+
59
+ Copyright (c) 2017-2026 Haydn Paterson
60
+
61
+ Permission is hereby granted, free of charge, to any person obtaining a copy
62
+ of this software and associated documentation files (the "Software"), to deal
63
+ in the Software without restriction, including without limitation the rights
64
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
65
+ copies of the Software, and to permit persons to whom the Software is
66
+ furnished to do so, subject to the following conditions:
67
+
68
+ The above copyright notice and this permission notice shall be included in
69
+ all copies or substantial portions of the Software.
70
+
71
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
73
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
74
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
75
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
76
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
77
+ THE SOFTWARE.
78
+
79
+ ---
80
+
81
+ partial-json@0.1.7
82
+
83
+ MIT License
84
+
85
+ Copyright (c) 2023 Promplate Dev Team
86
+
87
+ Permission is hereby granted, free of charge, to any person obtaining a copy
88
+ of this software and associated documentation files (the "Software"), to deal
89
+ in the Software without restriction, including without limitation the rights
90
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
91
+ copies of the Software, and to permit persons to whom the Software is
92
+ furnished to do so, subject to the following conditions:
93
+
94
+ The above copyright notice and this permission notice shall be included in all
95
+ copies or substantial portions of the Software.
96
+
97
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
100
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
101
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
102
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
103
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-opencode-go",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "OpenCode Go model provider and settings UI for DeepSeek Harness",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -88,9 +88,10 @@
88
88
  "@deepseek-ai/dsh-typert-registry": ">=0.1.5-rc.1"
89
89
  },
90
90
  "dependencies": {
91
+ "@anthropic-ai/sdk": "0.129.0",
91
92
  "@deepseek-ai/dsh-brand": "0.1.6-alpha.1",
92
93
  "@deepseek-ai/schemastery": "3.18.3",
93
- "opencode-go-pi-ai": "npm:@earendil-works/pi-ai@0.87.1",
94
+ "openai": "7.19.0",
94
95
  "undici": "7.30.0"
95
96
  },
96
97
  "devDependencies": {
@@ -167,8 +168,11 @@
167
168
  "micromark-util-sanitize-uri": "^2.0.1",
168
169
  "micromark-util-symbol": "^2.0.1",
169
170
  "micromark-util-types": "^2.0.2",
171
+ "opencode-go-pi-ai": "npm:@earendil-works/pi-ai@1.1.0",
170
172
  "react": "^18.2.0",
171
173
  "react-dom": "^18.2.0",
174
+ "rollup": "^4.64.2",
175
+ "rollup-plugin-dts": "^6.5.1",
172
176
  "semver": "7.8.5",
173
177
  "shiki": "^4.3.1",
174
178
  "typescript": "6.0.3",