@caplets/pi 0.7.2 → 0.8.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 +3 -6
- package/dist/index.js +1 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ CAPLETS_MODE=remote CAPLETS_REMOTE_URL=https://caplets.example.com/caplets pi
|
|
|
45
45
|
CAPLETS_MODE=cloud CAPLETS_REMOTE_URL=https://cloud.caplets.dev pi
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Run `caplets
|
|
48
|
+
Run `caplets remote login <url>` before remote or Cloud mode. Native integrations use the saved Remote Profile, so remote credentials do not belong in environment variables or Pi settings.
|
|
49
49
|
|
|
50
50
|
Pi currently calls extension factories with the Pi API only, so this extension reads its remote
|
|
51
51
|
settings from the top-level `caplets` key in `~/.pi/agent/settings.json` when no programmatic
|
|
@@ -58,7 +58,6 @@ options are supplied:
|
|
|
58
58
|
"mode": "remote",
|
|
59
59
|
"remote": {
|
|
60
60
|
"url": "https://caplets.example.com/caplets",
|
|
61
|
-
"user": "caplets",
|
|
62
61
|
"pollIntervalMs": 5000
|
|
63
62
|
},
|
|
64
63
|
"statusWidget": true,
|
|
@@ -84,13 +83,11 @@ export default createCapletsPiExtension({
|
|
|
84
83
|
mode: "remote",
|
|
85
84
|
remote: {
|
|
86
85
|
url: "https://caplets.example.com/caplets",
|
|
87
|
-
user: "caplets",
|
|
88
86
|
pollIntervalMs: 5_000,
|
|
89
87
|
},
|
|
90
88
|
},
|
|
91
89
|
});
|
|
92
90
|
```
|
|
93
91
|
|
|
94
|
-
The explicit config shape is `{ mode, remote: { url,
|
|
95
|
-
|
|
96
|
-
settings files or source code.
|
|
92
|
+
The explicit config shape is `{ mode, remote: { url, pollIntervalMs } }`. Credentials come from
|
|
93
|
+
`caplets remote login <url>`, not settings files or source code.
|
package/dist/index.js
CHANGED
|
@@ -3486,13 +3486,7 @@ function parsePiNativeOptions(value, _writeWarning, _path = "settings.caplets")
|
|
|
3486
3486
|
if (raw.remote !== void 0 && !remote) return;
|
|
3487
3487
|
if (remote) {
|
|
3488
3488
|
const parsedRemote = {};
|
|
3489
|
-
for (const key of [
|
|
3490
|
-
"url",
|
|
3491
|
-
"user",
|
|
3492
|
-
"password",
|
|
3493
|
-
"token",
|
|
3494
|
-
"workspace"
|
|
3495
|
-
]) {
|
|
3489
|
+
for (const key of ["url", "workspace"]) {
|
|
3496
3490
|
const field = remote[key];
|
|
3497
3491
|
if (field !== void 0) {
|
|
3498
3492
|
if (typeof field !== "string") return void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caplets/pi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Native Pi extension for Caplets.",
|
|
5
5
|
"homepage": "https://github.com/spiritledsoftware/caplets#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@caplets/core": "0.
|
|
29
|
+
"@caplets/core": "0.25.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@jitl/quickjs-wasmfile-release-sync": "^0.32.0",
|