@caplets/pi 0.7.2 → 0.8.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.
Files changed (3) hide show
  1. package/README.md +3 -6
  2. package/dist/index.js +1130 -1432
  3. 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 cloud auth login` before Cloud mode. For authenticated self-hosted remotes, prefer `CAPLETS_REMOTE_TOKEN`, or `CAPLETS_REMOTE_USER` plus `CAPLETS_REMOTE_PASSWORD`, from your shell or secret manager.
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, user, pollIntervalMs } }`.
95
- Prefer environment variables for `CAPLETS_REMOTE_TOKEN` or `CAPLETS_REMOTE_PASSWORD` rather than storing passwords in
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.