@d-ai/magpie 0.1.0 → 0.1.1
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/LICENSE +21 -0
- package/README.md +6 -2
- package/package.json +4 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 mddd
|
|
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.
|
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ One `ddsk_…` API key is one account, and magpie keeps several.
|
|
|
9
9
|
## Add it
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
magpie plugin add
|
|
13
|
-
magpie plugin add
|
|
12
|
+
magpie plugin add mdddj/d-ai-magpie # from GitHub (the unofficial list installs this)
|
|
13
|
+
magpie plugin add @d-ai/magpie # from npm, once published
|
|
14
14
|
magpie plugin login dai # asks for the API key
|
|
15
15
|
magpie provider test dai # one tiny call per API
|
|
16
16
|
```
|
|
@@ -22,6 +22,10 @@ The key comes from the D.AI console (`/#/apikeys`). Custom deployments can point
|
|
|
22
22
|
at another host with `magpie plugin options dai '{"baseUrl":"https://dai.example"}'`
|
|
23
23
|
or `DAI_BASE_URL`.
|
|
24
24
|
|
|
25
|
+
`DAI_API_KEY=ddsk_… ./e2e.sh` runs the same checks in a throwaway `HOME`, so it
|
|
26
|
+
never touches the magpie you actually use. Add `--live` to make one real call
|
|
27
|
+
on each API.
|
|
28
|
+
|
|
25
29
|
## What it exposes
|
|
26
30
|
|
|
27
31
|
15 token-metered chat models, in two APIs:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-ai/magpie",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "D.AI (dai.itbug.shop) models in magpie and OpenCode: one ddsk_ API key,
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "D.AI (dai.itbug.shop) models in magpie and OpenCode: one ddsk_ API key, chat models from the public catalog, per-key usage",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|
|
7
7
|
"exports": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"opencode",
|
|
16
16
|
"opencode-plugin",
|
|
17
17
|
"magpie",
|
|
18
|
+
"magpie-plugin",
|
|
18
19
|
"dai",
|
|
19
20
|
"d-ai"
|
|
20
21
|
],
|
|
@@ -22,8 +23,7 @@
|
|
|
22
23
|
"homepage": "https://dai.itbug.shop",
|
|
23
24
|
"repository": {
|
|
24
25
|
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/mdddj/
|
|
26
|
-
"directory": "sdks/d-ai-magpie"
|
|
26
|
+
"url": "git+https://github.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