primitive 1.72.1 → 1.72.2

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.
@@ -47286,7 +47286,7 @@ async function clearPendingAfterRead(configDir, emailId, known) {
47286
47286
  } : null);
47287
47287
  } catch {}
47288
47288
  }
47289
- const NO_SIGNAL_DESCRIPTION = "With --context, do not report working to the sender, and stop a working report an earlier read of this email started; nothing is sent. By default, reading mail from the verified owner or a same-organization member (not another agent) that a receiver surfaced to this session reports working in the background until you answer (also disabled by PRIMITIVE_NO_AUTO_SIGNALS=1).";
47289
+ const NO_SIGNAL_DESCRIPTION = "Do not report working to the sender, and stop a working report an earlier read of this email started; nothing is sent. Only a --context read reports working; on any other read this flag just stops the earlier report. By default, reading mail from the verified owner or a same-organization member (not another agent) that a receiver surfaced to this session reports working in the background until you answer (also disabled by PRIMITIVE_NO_AUTO_SIGNALS=1).";
47290
47290
  /**
47291
47291
  * The line a brief ends with once it has started reporting working: the
47292
47292
  * agent only knows whether it will act after reading, so the way out has to
@@ -47438,10 +47438,7 @@ function createEmailsGetCommand(base) {
47438
47438
  description: LINKS_DESCRIPTION,
47439
47439
  dependsOn: ["compact"]
47440
47440
  }),
47441
- "no-signal": Flags.boolean({
47442
- description: NO_SIGNAL_DESCRIPTION,
47443
- dependsOn: ["context"]
47444
- })
47441
+ "no-signal": Flags.boolean({ description: NO_SIGNAL_DESCRIPTION })
47445
47442
  };
47446
47443
  async run() {
47447
47444
  if (this.argv.includes("--brief")) {
@@ -47459,11 +47456,13 @@ function createEmailsGetCommand(base) {
47459
47456
  await runBrief(this, parsed);
47460
47457
  return;
47461
47458
  }
47459
+ if (parsed["no-signal"]) await haltAutoWorking(this.config.configDir, { emailIds: [parsed.id] }, "not_acting");
47462
47460
  if (parsed.links !== void 0 && !validLinksValue(parsed.links)) throw new Errors.CLIError("--links must be `all` or a comma list of link numbers, for example 1,2,3.", { exit: 2 });
47463
47461
  if (parsed.compact) {
47464
47462
  await runCompact(this, parsed);
47465
47463
  return;
47466
47464
  }
47465
+ this.argv = this.argv.filter((arg) => arg !== "--no-signal");
47467
47466
  const before = process.exitCode;
47468
47467
  await base.prototype.run.call(this);
47469
47468
  if (process.exitCode === before || process.exitCode === 0) await clearPendingAfterRead(this.config.configDir, parsed.id);
@@ -49156,7 +49155,7 @@ const PRIMITIVE_TEAM_AUTHOR = {
49156
49155
  url: "https://primitive.dev"
49157
49156
  };
49158
49157
  const SDK_VERSION_RANGE = "^2.0.0";
49159
- const CLI_VERSION_RANGE = "^1.72.1";
49158
+ const CLI_VERSION_RANGE = "^1.72.2";
49160
49159
  const ESBUILD_VERSION_RANGE = "^0.27.0";
49161
49160
  function renderHandler() {
49162
49161
  return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
package/man/primitive.1 CHANGED
@@ -335,7 +335,7 @@ Signal failures never delay or fail the wake or the read. Renewal runs in a
335
335
  detached process; if the runtime ends it, the next primitive command restarts
336
336
  it. Set PRIMITIVE_NO_AUTO_SIGNALS=1 to turn all of this off, or pass
337
337
  .B --no-signal
338
- to one brief read.
338
+ to a read of that email.
339
339
 
340
340
  .SH GLOBAL OPTIONS
341
341
  .TP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primitive",
3
- "version": "1.72.1",
3
+ "version": "1.72.2",
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,