@canary-builds/dsh-connect 0.3.2 → 0.3.3
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/CHANGELOG.md +4 -0
- package/README.md +4 -2
- package/lib/client.js +6 -1
- package/package.json +1 -1
- package/src/client.js +6 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# DSH Connect
|
|
2
2
|
|
|
3
|
+

|
|
4
|
+
|
|
3
5
|
Connect DeepSeek Harness to ChatGPT models using OAuth sign-in through the official Codex app-server, without requiring an OpenAI API key.
|
|
4
6
|
|
|
5
7
|
DSH Connect is a community Cordis plugin with a model-provider adapter and a web Settings panel. The first connector supports Codex/ChatGPT; it is not tied to a particular model. The provider ID is `openai-codex`.
|
|
@@ -14,9 +16,9 @@ Install from npm:
|
|
|
14
16
|
dsh plugin --profile web add @canary-builds/dsh-connect
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
Use `--profile headless` instead for the CLI profile. To pin this release, use `@canary-builds/dsh-connect@0.3.
|
|
19
|
+
Use `--profile headless` instead for the CLI profile. To pin this release, use `@canary-builds/dsh-connect@0.3.3`. No npm account or plugin build step is required to install the public package.
|
|
18
20
|
|
|
19
|
-
A prebuilt tarball and `SHA256SUMS` are also available in the [v0.3.
|
|
21
|
+
A prebuilt tarball and `SHA256SUMS` are also available in the [v0.3.3 GitHub release](https://github.com/Canary-Builds/dhs-connect/releases/tag/v0.3.3).
|
|
20
22
|
|
|
21
23
|
Restart your running Harness instance after installation. Open **Settings → DSH Connect**, sign in with ChatGPT, and select a model from the normal model picker. Install only the profiles you use. A pnpm workspace-root profile may require its existing `ignoreWorkspaceRootCheck` setting or the package-manager workspace-root option.
|
|
22
24
|
|
package/lib/client.js
CHANGED
|
@@ -12,6 +12,8 @@ const styles = {
|
|
|
12
12
|
button: { border: '1px solid var(--dsw-alias-border-l2)', borderRadius: 8, padding: '8px 14px', background: 'var(--dsw-alias-bg-layer-1)', color: 'inherit', cursor: 'pointer' },
|
|
13
13
|
table: { width: '100%', borderCollapse: 'collapse', textAlign: 'left', lineHeight: 2.1 },
|
|
14
14
|
code: { fontFamily: 'monospace', fontSize: 12, overflowWrap: 'anywhere' },
|
|
15
|
+
footer: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 16, fontSize: 12, borderTop: '1px solid var(--dsw-alias-border-l2)', paddingTop: 12 },
|
|
16
|
+
link: { color: 'var(--dsw-alias-label-secondary)', textUnderlineOffset: 3 },
|
|
15
17
|
issue: { color: 'var(--dsw-alias-state-error-primary, #c44)', lineHeight: 1.5 },
|
|
16
18
|
};
|
|
17
19
|
async function request(path = '', method = 'GET', signal) {
|
|
@@ -88,7 +90,10 @@ function CodexSettings() {
|
|
|
88
90
|
state?.discoveryIssue ? h('p', { style: styles.muted }, state.discoveryIssue) : null,
|
|
89
91
|
h('table', { style: styles.table }, h('thead', null, h('tr', null, h('th', null, 'Model'), h('th', null, 'Model ID'))), h('tbody', null,
|
|
90
92
|
...(state?.models ?? []).map(model => h('tr', { key: model.id }, h('td', null, model.name), h('td', { style: styles.code }, model.id)))))),
|
|
91
|
-
h('p', { style: styles.muted }, 'Supports text, reasoning, and Harness tool calls. Image attachments are not supported by this provider yet.')
|
|
93
|
+
h('p', { style: styles.muted }, 'Supports text, reasoning, and Harness tool calls. Image attachments are not supported by this provider yet.'),
|
|
94
|
+
h('footer', { style: styles.footer },
|
|
95
|
+
h('a', { href: 'https://github.com/Canary-Builds/dhs-connect/issues', target: '_blank', rel: 'noopener noreferrer', style: styles.link }, 'Report an issue'),
|
|
96
|
+
h('a', { href: 'https://canarybuilds.com', target: '_blank', rel: 'noopener noreferrer', style: { ...styles.link, marginLeft: 'auto' } }, 'Canary Builds'))
|
|
92
97
|
);
|
|
93
98
|
}
|
|
94
99
|
function apply(ctx) {
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -10,6 +10,8 @@ const styles = {
|
|
|
10
10
|
button: { border: '1px solid var(--dsw-alias-border-l2)', borderRadius: 8, padding: '8px 14px', background: 'var(--dsw-alias-bg-layer-1)', color: 'inherit', cursor: 'pointer' },
|
|
11
11
|
table: { width: '100%', borderCollapse: 'collapse', textAlign: 'left', lineHeight: 2.1 },
|
|
12
12
|
code: { fontFamily: 'monospace', fontSize: 12, overflowWrap: 'anywhere' },
|
|
13
|
+
footer: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 16, fontSize: 12, borderTop: '1px solid var(--dsw-alias-border-l2)', paddingTop: 12 },
|
|
14
|
+
link: { color: 'var(--dsw-alias-label-secondary)', textUnderlineOffset: 3 },
|
|
13
15
|
issue: { color: 'var(--dsw-alias-state-error-primary, #c44)', lineHeight: 1.5 },
|
|
14
16
|
};
|
|
15
17
|
async function request(path = '', method = 'GET', signal) {
|
|
@@ -86,7 +88,10 @@ function CodexSettings() {
|
|
|
86
88
|
state?.discoveryIssue ? h('p', { style: styles.muted }, state.discoveryIssue) : null,
|
|
87
89
|
h('table', { style: styles.table }, h('thead', null, h('tr', null, h('th', null, 'Model'), h('th', null, 'Model ID'))), h('tbody', null,
|
|
88
90
|
...(state?.models ?? []).map(model => h('tr', { key: model.id }, h('td', null, model.name), h('td', { style: styles.code }, model.id)))))),
|
|
89
|
-
h('p', { style: styles.muted }, 'Supports text, reasoning, and Harness tool calls. Image attachments are not supported by this provider yet.')
|
|
91
|
+
h('p', { style: styles.muted }, 'Supports text, reasoning, and Harness tool calls. Image attachments are not supported by this provider yet.'),
|
|
92
|
+
h('footer', { style: styles.footer },
|
|
93
|
+
h('a', { href: 'https://github.com/Canary-Builds/dhs-connect/issues', target: '_blank', rel: 'noopener noreferrer', style: styles.link }, 'Report an issue'),
|
|
94
|
+
h('a', { href: 'https://canarybuilds.com', target: '_blank', rel: 'noopener noreferrer', style: { ...styles.link, marginLeft: 'auto' } }, 'Canary Builds'))
|
|
90
95
|
);
|
|
91
96
|
}
|
|
92
97
|
function apply(ctx) {
|