primcli 1.13.0 → 1.13.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.
- package/README.md +3 -1
- package/dist/oclif/index.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,9 @@ primitive payments create-email-challenge --from payee@your-domain.example \
|
|
|
102
102
|
# locally with your wallet key AND sends the signed interaction.json as an
|
|
103
103
|
# in-thread reply, so you skip the manual sign-then-reply dance. --in-reply-to
|
|
104
104
|
# is the inbound challenge email you received; the reply is threaded to it and
|
|
105
|
-
# addressed to the payee, and From defaults to the payer it was sent to.
|
|
105
|
+
# addressed to the payee, and From defaults to the payer it was sent to. The
|
|
106
|
+
# reply carries a short default note alongside the attachment; pass --body to
|
|
107
|
+
# customize it.
|
|
106
108
|
primitive payments pay-email --challenge-file challenge.json \
|
|
107
109
|
--in-reply-to <inbound-challenge-email-id> --wait
|
|
108
110
|
|
package/dist/oclif/index.js
CHANGED
|
@@ -23864,8 +23864,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
|
|
|
23864
23864
|
name: "Primitive Team",
|
|
23865
23865
|
url: "https://primitive.dev"
|
|
23866
23866
|
};
|
|
23867
|
-
const SDK_VERSION_RANGE = "^1.13.
|
|
23868
|
-
const CLI_VERSION_RANGE = "^1.13.
|
|
23867
|
+
const SDK_VERSION_RANGE = "^1.13.1";
|
|
23868
|
+
const CLI_VERSION_RANGE = "^1.13.1";
|
|
23869
23869
|
const ESBUILD_VERSION_RANGE = "^0.27.0";
|
|
23870
23870
|
function renderHandler() {
|
|
23871
23871
|
return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
|
|
@@ -28293,6 +28293,7 @@ var PaymentsPayEmailStepCommand = class PaymentsPayEmailStepCommand extends Comm
|
|
|
28293
28293
|
/** The exact part name + content type the inbound matcher requires. */
|
|
28294
28294
|
const INTERACTION_PART_FILENAME = "interaction.json";
|
|
28295
28295
|
const INTERACTION_PART_CONTENT_TYPE = "application/json";
|
|
28296
|
+
const DEFAULT_REPLY_BODY_TEXT = "x402 payment authorization attached (interaction.json).";
|
|
28296
28297
|
/** Build the `interaction.json` attachment from a signed payment step. */
|
|
28297
28298
|
function interactionAttachment(built) {
|
|
28298
28299
|
return {
|
|
@@ -28356,6 +28357,7 @@ var PaymentsPayEmailCommand = class PaymentsPayEmailCommand extends Command {
|
|
|
28356
28357
|
required: true
|
|
28357
28358
|
}),
|
|
28358
28359
|
from: Flags.string({ description: "Optional From header override. Defaults to the inbound's recipient (the payer the challenge was addressed to)." }),
|
|
28360
|
+
body: Flags.string({ description: `Plain-text reply body. The signed authorization travels in the interaction.json attachment; this is the human-readable accompanying note. Defaults to "${DEFAULT_REPLY_BODY_TEXT}".` }),
|
|
28359
28361
|
wait: Flags.boolean({ description: "Block until the receiving MTA returns an outcome. Without --wait, the call returns once Primitive has accepted the reply for delivery." }),
|
|
28360
28362
|
json: Flags.boolean({ description: "Print a JSON object with the signed interaction step and the send result." }),
|
|
28361
28363
|
time: Flags.boolean({ description: TIME_FLAG_DESCRIPTION })
|
|
@@ -28391,6 +28393,7 @@ var PaymentsPayEmailCommand = class PaymentsPayEmailCommand extends Command {
|
|
|
28391
28393
|
}
|
|
28392
28394
|
const result = await replyToEmail({
|
|
28393
28395
|
body: {
|
|
28396
|
+
body_text: flags.body?.trim() ? flags.body : DEFAULT_REPLY_BODY_TEXT,
|
|
28394
28397
|
attachments: [interactionAttachment(built)],
|
|
28395
28398
|
...flags.from !== void 0 ? { from: flags.from } : {},
|
|
28396
28399
|
...flags.wait !== void 0 ? { wait: flags.wait } : {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primcli",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
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,
|