@d-ai/pi 0.2.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.
- package/README.md +42 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1859 -0
- package/package.json +55 -0
- package/skills/dai-media/SKILL.md +20 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @d-ai/pi
|
|
2
|
+
|
|
3
|
+
Pi package that adds D.AI image, video, and music generation as native tools.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pi install npm:@d-ai/pi
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
From this repo:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
cd sdks/pi && npm install && npm run build
|
|
15
|
+
pi install ./sdks/pi
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Set a D.AI API key:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
export DAI_API_KEY=ddsk_...
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or in Pi run `/login`, choose **D.AI**, and paste `ddsk_...`. That discovers chat models from `GET /v1/models` and media models from the public catalog. Then pick `dai/<model>` in `/model`.
|
|
25
|
+
|
|
26
|
+
`/dai key` also writes `~/.pi/agent/dai.json`. Optional `baseUrl` defaults to `https://dai.itbug.shop`.
|
|
27
|
+
|
|
28
|
+
Reload Pi (`/reload`) after install.
|
|
29
|
+
|
|
30
|
+
## Tools
|
|
31
|
+
|
|
32
|
+
| Tool | Default model |
|
|
33
|
+
|---|---|
|
|
34
|
+
| `dai_generate_image` | `gpt-image-2.5-flare` |
|
|
35
|
+
| `dai_generate_video` | `veo-3.1-quality` |
|
|
36
|
+
| `dai_generate_music` | `chirp-v5-5` |
|
|
37
|
+
|
|
38
|
+
Ask Pi to generate media, or pass a public model id (`gpt-image-2.5-sunburst`, `gemini-3-pro-image-preview`, `flux-2-max`, `omni-flash`).
|
|
39
|
+
|
|
40
|
+
`/dai` prints status. `/skill:dai-media` loads the routing skill.
|
|
41
|
+
|
|
42
|
+
Spend is billed to the D.AI wallet. This package does not wrap Midjourney buttons, Novel, HappyHorse, or ASR.
|