primcli 1.39.0 → 1.41.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 CHANGED
@@ -862,6 +862,25 @@ choices when those options are omitted, and refuses only an option that
862
862
  conflicts with them, naming it. Select the saved profile for later commands with the result's
863
863
  `selectProfile`.
864
864
 
865
+ A runtime with no local session ID or hooks, such as a cloud-hosted session
866
+ whose commands run in a separate sandbox, connects with the same command and no
867
+ `--session` (an empty `--session` is treated the same way). It claims and
868
+ verifies the invitation normally and selects `--receiver poll`: nothing is
869
+ installed, the profile defaults to `connection-<invitation hash prefix>`, and
870
+ the result's `receiving.checkCommand` checks for new mail. The agent runs it at
871
+ the start of each turn and after it sends:
872
+
873
+ ```sh
874
+ npx -y primitive@latest agent connect --name Research --info "Reviews pull requests" --json < private-invitation.txt
875
+ PRIMITIVE_AGENT_PROFILE=connection-0123456789ab primitive agent check-mail --json
876
+ ```
877
+
878
+ `agent check-mail` prints the email IDs, senders and threads that arrived since
879
+ the profile's previous check (never subjects or bodies), leaving out fyi
880
+ acknowledgements, muted threads, and the setup and presence mail from the
881
+ connection's control address. Its position advances only after the result is
882
+ printed, so an interrupted check repeats mail rather than losing it.
883
+
865
884
  Verification submission and delivery are separate from receiver health. A queued
866
885
  verification reply is accepted for delivery. Do not claim again or resend because
867
886
  setup was interrupted. The CLI preserves its private recovery state.
@@ -1,5 +1,5 @@
1
1
  import { _ as isTrustedSender, c as classifySignalContent, g as isEmailReceivedEvent, v as parseWebhookEvent } from "./repeats-CoK0tpCK-Bx7nmyRi.js";
2
- import { g as downloadEmailAttachmentPart } from "./sdk.gen-CgKZwHs3.js";
2
+ import { g as downloadEmailAttachmentPart } from "./sdk.gen-I4mhUuUW.js";
3
3
  import { _ as acquireListenLock, g as ListenStateError, y as listenIdentity } from "./shared-mail-files-CZqI1kj6.js";
4
4
  import { closeSync, copyFileSync, existsSync, fsyncSync, lstatSync, mkdirSync, openSync, opendirSync, readFileSync, readdirSync, readlinkSync, renameSync, rmSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { createHash, randomUUID, scryptSync } from "node:crypto";
@@ -1,6 +1,6 @@
1
- import { j as getSentEmail } from "../sdk.gen-CgKZwHs3.js";
1
+ import { j as getSentEmail } from "../sdk.gen-I4mhUuUW.js";
2
2
  import { _ as acquireListenLock } from "../shared-mail-files-CZqI1kj6.js";
3
- import { Mt as createAuthenticatedCliApiClient, t as sendSignal, z as readThreadContext } from "../signal-command-C8Ph0ylh.js";
3
+ import { Mt as createAuthenticatedCliApiClient, t as sendSignal, z as readThreadContext } from "../signal-command-BFPKbatO.js";
4
4
  import { A as stopWorkingLease, b as readWorkingLease, d as autoSignalsDisabled, j as writeWorkingLease, p as clearWorkingSending, r as AUTO_SIGNAL_KIND_ENV, s as AUTO_WORKING_RENEW_MS, v as markWorkingSending, x as recordRenewer, y as readAutoClaim } from "../auto-signals-C8nMME8J.js";
5
5
  import { join } from "node:path";
6
6
  import { homedir } from "node:os";