@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/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@d-ai/pi",
3
+ "version": "0.2.0",
4
+ "description": "Pi extension for D.AI image, video, and music generation",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "keywords": ["pi-package"],
8
+ "homepage": "https://dai.itbug.shop",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/mdddj/dd_server_rust_private.git",
12
+ "directory": "sdks/pi"
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "skills",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsup src/index.ts --format esm --dts --clean --external @earendil-works/pi-coding-agent --external @earendil-works/pi-ai --external typebox",
21
+ "typecheck": "tsc --noEmit",
22
+ "test": "vitest run",
23
+ "check": "npm run typecheck && npm test && npm run build",
24
+ "prepublishOnly": "npm run check"
25
+ },
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
29
+ "peerDependencies": {
30
+ "@earendil-works/pi-coding-agent": "*",
31
+ "typebox": "*"
32
+ },
33
+ "peerDependenciesMeta": {
34
+ "@earendil-works/pi-coding-agent": {
35
+ "optional": true
36
+ },
37
+ "typebox": {
38
+ "optional": true
39
+ }
40
+ },
41
+ "devDependencies": {
42
+ "@dai/media-sdk": "file:../typescript",
43
+ "@types/node": "^26.2.0",
44
+ "tsup": "^8.5.1",
45
+ "typescript": "^5.9.3",
46
+ "vitest": "^4.1.11"
47
+ },
48
+ "pi": {
49
+ "extensions": ["./dist/index.js"],
50
+ "skills": ["./skills"]
51
+ },
52
+ "publishConfig": {
53
+ "access": "public"
54
+ }
55
+ }
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: dai-media
3
+ description: Generate images, videos, and music with D.AI from Pi via dai_generate_image, dai_generate_video, and dai_generate_music.
4
+ ---
5
+
6
+ # D.AI media
7
+
8
+ When the user asks to generate an image, video, or song, use the D.AI tools. Do not call HTTP yourself.
9
+
10
+ - Images: `dai_generate_image` with `model` like `gpt-image-2.5-flare`, `gemini-3-pro-image-preview`, or `flux-2-max`.
11
+ - Videos: `dai_generate_video` with `veo-3.1-quality` or `flux-3-video`.
12
+ - Music: `dai_generate_music` with `chirp-v5-5`.
13
+
14
+ Wait for the tool to finish. Do not poll D.AI.
15
+
16
+ Defaults: image `gpt-image-2.5-flare`, video `veo-3.1-quality`, music `chirp-v5-5`.
17
+
18
+ `flux1-schnell` is edits-only. GPT Image cannot edit. This package does not do Midjourney buttons or speech-to-text.
19
+
20
+ Spend comes from the user's D.AI balance. On failure, quote the tool error. Do not guess a vendor or `provider_code`.