@duckmind/dm-linux-arm64 0.12.2 → 0.12.5
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/README.md +3 -3
- package/dm +0 -0
- package/docs/custom-provider.md +3 -3
- package/docs/extensions.md +2 -2
- package/docs/providers.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,7 +91,7 @@ Or use your existing subscription:
|
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
dm
|
|
94
|
-
/
|
|
94
|
+
/connect # Then select provider
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
Then just talk to dm. By default, dm gives the model four tools: `read`, `write`, `edit`, and `bash`. The model uses these to fulfill your requests. Add capabilities via [skills](#skills), [prompt templates](#prompt-templates), [extensions](#extensions), or [dm packages](#dm-packages).
|
|
@@ -102,7 +102,7 @@ Then just talk to dm. By default, dm gives the model four tools: `read`, `write`
|
|
|
102
102
|
|
|
103
103
|
## Providers & Models
|
|
104
104
|
|
|
105
|
-
For each built-in provider, dm maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/
|
|
105
|
+
For each built-in provider, dm maintains a list of tool-capable models, updated with every release. Authenticate via subscription (`/connect`) or paste a DuckMind API Key via `/connect`, then select any model from that provider via `/model` (or Ctrl+L).
|
|
106
106
|
|
|
107
107
|
**Subscriptions:**
|
|
108
108
|
- Anthropic Claude Pro/Max
|
|
@@ -168,7 +168,7 @@ Type `/` in the editor to trigger commands. [Extensions](#extensions) can regist
|
|
|
168
168
|
|
|
169
169
|
| Command | Description |
|
|
170
170
|
|---------|-------------|
|
|
171
|
-
| `/
|
|
171
|
+
| `/connect`, `/logout` | Connect via OAuth or DuckMind API key |
|
|
172
172
|
| `/model` | Switch models |
|
|
173
173
|
| `/scoped-models` | Enable/disable models for Ctrl+P cycling |
|
|
174
174
|
| `/settings` | Thinking level, theme, message delivery, transport |
|
package/dm
CHANGED
|
Binary file
|
package/docs/custom-provider.md
CHANGED
|
@@ -210,7 +210,7 @@ dm.registerProvider("custom-api", {
|
|
|
210
210
|
|
|
211
211
|
## OAuth Support
|
|
212
212
|
|
|
213
|
-
Add OAuth/SSO authentication that integrates with `/
|
|
213
|
+
Add OAuth/SSO authentication that integrates with `/connect`:
|
|
214
214
|
|
|
215
215
|
```typescript
|
|
216
216
|
import type { OAuthCredentials, OAuthLoginCallbacks } from "@mariozechner/pi-ai";
|
|
@@ -270,7 +270,7 @@ dm.registerProvider("corporate-ai", {
|
|
|
270
270
|
});
|
|
271
271
|
```
|
|
272
272
|
|
|
273
|
-
After registration, users can authenticate via `/
|
|
273
|
+
After registration, users can authenticate via `/connect corporate-ai`.
|
|
274
274
|
|
|
275
275
|
### OAuthLoginCallbacks
|
|
276
276
|
|
|
@@ -530,7 +530,7 @@ interface ProviderConfig {
|
|
|
530
530
|
/** Models to register. If provided, replaces all existing models for this provider. */
|
|
531
531
|
models?: ProviderModelConfig[];
|
|
532
532
|
|
|
533
|
-
/** OAuth provider for /
|
|
533
|
+
/** OAuth provider for /connect support. */
|
|
534
534
|
oauth?: {
|
|
535
535
|
name: string;
|
|
536
536
|
login(callbacks: OAuthLoginCallbacks): Promise<OAuthCredentials>;
|
package/docs/extensions.md
CHANGED
|
@@ -1366,7 +1366,7 @@ dm.registerProvider("anthropic", {
|
|
|
1366
1366
|
baseUrl: "https://proxy.example.com"
|
|
1367
1367
|
});
|
|
1368
1368
|
|
|
1369
|
-
// Register provider with OAuth support for /
|
|
1369
|
+
// Register provider with OAuth support for /connect
|
|
1370
1370
|
dm.registerProvider("corporate-ai", {
|
|
1371
1371
|
baseUrl: "https://ai.corp.com",
|
|
1372
1372
|
api: "openai-responses",
|
|
@@ -1397,7 +1397,7 @@ dm.registerProvider("corporate-ai", {
|
|
|
1397
1397
|
- `headers` - Custom headers to include in requests.
|
|
1398
1398
|
- `authHeader` - If true, adds `Authorization: Bearer` header automatically.
|
|
1399
1399
|
- `models` - Array of model definitions. If provided, replaces all existing models for this provider.
|
|
1400
|
-
- `oauth` - OAuth provider config for `/
|
|
1400
|
+
- `oauth` - OAuth provider config for `/connect` support. When provided, the provider appears in the connect menu.
|
|
1401
1401
|
- `streamSimple` - Custom streaming implementation for non-standard APIs.
|
|
1402
1402
|
|
|
1403
1403
|
See [custom-provider.md](custom-provider.md) for advanced topics: custom streaming APIs, OAuth details, model definition reference.
|
package/docs/providers.md
CHANGED
|
@@ -13,7 +13,7 @@ DM supports subscription-based providers via OAuth and API key providers via env
|
|
|
13
13
|
|
|
14
14
|
## Subscriptions
|
|
15
15
|
|
|
16
|
-
Use `/
|
|
16
|
+
Use `/connect` in interactive mode, then select a provider or DuckMind API Key:
|
|
17
17
|
|
|
18
18
|
- Claude Pro/Max
|
|
19
19
|
- ChatGPT Plus/Pro (Codex)
|
|
@@ -107,7 +107,7 @@ The `key` field supports three formats:
|
|
|
107
107
|
{ "type": "api_key", "key": "sk-ant-..." }
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
OAuth credentials are also stored here after `/
|
|
110
|
+
OAuth credentials are also stored here after `/connect` and managed automatically.
|
|
111
111
|
|
|
112
112
|
## Cloud Providers
|
|
113
113
|
|