oira666_pi-image-generation 0.0.2 → 0.0.4
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 +23 -0
- package/package.json +25 -9
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# pi-image-generation
|
|
2
2
|
|
|
3
|
+
Tested against Pi 1.4.0.
|
|
4
|
+
|
|
3
5
|
```sh
|
|
4
6
|
pi install npm:oira666_pi-image-generation
|
|
5
7
|
```
|
|
@@ -43,3 +45,24 @@ Run `/reload` after changing settings or logging in to update tool and skill ava
|
|
|
43
45
|
Only OpenAI credentials are supported: selected subscription providers must have a `https://chatgpt.com` base URL, and API-key providers a `https://api.openai.com` base URL. Other or unknown origins are rejected to avoid sending another service's credentials to OpenAI. Image requests use fixed OpenAI endpoints, not custom provider paths or headers. There is no automatic fallback between accounts or services.
|
|
44
46
|
|
|
45
47
|
Keep API-key settings private (`chmod 600 <settings-file>`) and do not commit them to source control. Image prompts and supplied references are uploaded to the selected image service.
|
|
48
|
+
|
|
49
|
+
## Development
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npm ci
|
|
53
|
+
mkdir -p tmp
|
|
54
|
+
TMPDIR="$PWD/tmp" npm test
|
|
55
|
+
npm pack --dry-run --ignore-scripts
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`npm test` installs the direct Pi development dependency at `@latest` with install scripts disabled, then runs `npm run check` and the tests. Tests target only the latest npm Pi release. Before each release, update the tested version above and the Pi peer dependency baseline after all checks pass. No lint command is configured.
|
|
59
|
+
|
|
60
|
+
Tests use mocked image responses and real Pi resource loaders and tool contexts. They protect credential isolation, skill discovery, and generate/edit workflows, not artwork quality. They do not send live image requests or separately execute README snippets.
|
|
61
|
+
|
|
62
|
+
For the full Evergreen suite, including a live-model e2e run:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
EVERGREEN_E2E_MODEL=provider/model npm run test:evergreen
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
E2E runs the globally installed `$EVERGREEN_PI_BIN` (default: `pi` on PATH) with stdin ignored, isolated settings and sessions, and a disposable copy of your model credentials/catalog. Model calls use `$EVERGREEN_E2E_MODEL`; image-service responses are mocked to avoid image charges. See [EVERGREEN.md](EVERGREEN.md) for intent and compatibility risks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oira666_pi-image-generation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Image generation and reference-image editing for pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,31 +8,47 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/gee666/pi-image-generation.git"
|
|
10
10
|
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
|
|
11
|
+
"keywords": [
|
|
12
|
+
"pi-package",
|
|
13
|
+
"pi-extension",
|
|
14
|
+
"image-generation"
|
|
15
|
+
],
|
|
16
|
+
"files": [
|
|
17
|
+
"src",
|
|
18
|
+
"resources",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
13
22
|
"pi": {
|
|
14
|
-
"extensions": [
|
|
23
|
+
"extensions": [
|
|
24
|
+
"./src/index.ts"
|
|
25
|
+
],
|
|
15
26
|
"skills": []
|
|
16
27
|
},
|
|
17
|
-
"engines": {
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=22"
|
|
30
|
+
},
|
|
18
31
|
"peerDependencies": {
|
|
19
|
-
"@earendil-works/pi-coding-agent": "
|
|
32
|
+
"@earendil-works/pi-coding-agent": ">=1.4.0",
|
|
20
33
|
"typebox": "*"
|
|
21
34
|
},
|
|
22
35
|
"dependencies": {
|
|
23
36
|
"pngjs": "^7.0.0"
|
|
24
37
|
},
|
|
25
38
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@earendil-works/pi-coding-agent": "0.86.0",
|
|
39
|
+
"@earendil-works/pi-coding-agent": "^1.4.0",
|
|
28
40
|
"@types/node": "^22.0.0",
|
|
41
|
+
"@types/pngjs": "^6.0.5",
|
|
29
42
|
"tsx": "^4.20.0",
|
|
30
43
|
"typebox": "^1.0.0",
|
|
31
|
-
"typescript": "^
|
|
44
|
+
"typescript": "^7.0.2"
|
|
32
45
|
},
|
|
33
46
|
"scripts": {
|
|
34
47
|
"check": "tsc --noEmit",
|
|
48
|
+
"pretest": "npm install @earendil-works/pi-coding-agent@latest --save-dev --ignore-scripts && npm run check",
|
|
35
49
|
"test": "tsx --test test/*.test.ts",
|
|
50
|
+
"test:e2e": "tsx --test test/e2e/*.test.ts",
|
|
51
|
+
"test:evergreen": "npm test && npm run test:e2e",
|
|
36
52
|
"prepublishOnly": "npm run check && npm test"
|
|
37
53
|
}
|
|
38
54
|
}
|