primcli 1.41.0 → 1.43.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.
@@ -13,6 +13,25 @@ later work. An imperative setup instruction pasted as the owner's request
13
13
  authorizes this connection, private credential storage, the verification reply
14
14
  and continued receiving; do not ask for that approval again.
15
15
 
16
+ **One address per session unless the owner says otherwise.** If this session
17
+ already has a Primitive address (you connected it earlier, or a profile is
18
+ already receiving mail here), ask the owner whether to keep that address or
19
+ disconnect that agent first, and do not create a second address without their
20
+ answer. The connect command checks this itself: when the session is already
21
+ connected it claims nothing and exits with status 3 and
22
+ `status: "already_connected"` and names an address already connected here
23
+ (there can be more than one). Tell the owner, relay the same choice, then rerun
24
+ the same command as they chose:
25
+
26
+ - `--replace-existing` disconnects every address connected to this session,
27
+ not just one, then connects. Say so before they choose.
28
+ - `--keep-existing` keeps them all. If the existing address uses this
29
+ session's default profile, also pass a new `--profile <name>` so the second
30
+ address gets its own profile; otherwise the rerun is refused again.
31
+
32
+ Never switch to a separate profile on your own to get around this check; only
33
+ use a new profile as part of the owner's choice to keep both.
34
+
16
35
  The command validates the invitation's API origin, claims it once, answers the
17
36
  verification email, starts receiving for this exact session (or sets up
18
37
  checking for mail when nothing can wake this session), installs or refreshes
@@ -79,6 +98,8 @@ Read the one JSON result:
79
98
  `selectProfile` (`PRIMITIVE_AGENT_PROFILE=<profile>`).
80
99
  - `status: "pending"`: run `resumeCommand` exactly as printed. It never reads
81
100
  or claims the invitation again. `skipped` names each step not done and why.
101
+ - `status: "already_connected"` (exit status 3): ask the owner, then rerun
102
+ with `--replace-existing` or `--keep-existing` as described above.
82
103
  - Exit status 1: follow its message. Never feed the same invitation to the
83
104
  command twice, and never claim it over HTTP after the command may have
84
105
  claimed it. Switch to the [HTTP API path](#connect-with-the-http-api) only
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "primitive-connect",
3
- "version": "a48b2ea39305f258",
3
+ "version": "c744659c2610f3a2",
4
4
  "source": {
5
5
  "repository": "https://github.com/primitivedotdev/skills",
6
6
  "path": "skills/primitive-connect",
7
- "commit": "47e1cb5b6ecef4294c4f4067962c7e6041a625d0"
7
+ "commit": "8f4040ad7b91816efa58c0c175ff860db1e24abe"
8
8
  },
9
9
  "files": {
10
- "SKILL.md": "6631dab8209a823b3790df20856146676deb505a2f7a52de87e953fd75388694",
10
+ "SKILL.md": "e246e732bfede41a5538f8736bf3c6c5cd0b7d3c1ba1b8bb6e2a2d5103e915fb",
11
11
  "package-lock.json": "443289373a7495883a9a3b57bab3bc471cd5dcb4989a9e67f797b35917c1acc5",
12
12
  "package.json": "8cc45b2c28ba415960c9b85f6c1449f15f9c10bac0b96922e7907b40d50e3dbf",
13
13
  "references/communication.md": "c931aada9553a8592088c28de5b272d5e0a15234aa9c9318ea7d1d5f69b39a79",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primcli",
3
- "version": "1.41.0",
3
+ "version": "1.43.0",
4
4
  "description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.",
5
5
  "type": "module",
6
6
  "sideEffects": false,