agentmail 0.4.6 → 0.4.7

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentmail",
46
- "X-Fern-SDK-Version": "0.4.6",
47
- "User-Agent": "agentmail/0.4.6",
46
+ "X-Fern-SDK-Version": "0.4.7",
47
+ "User-Agent": "agentmail/0.4.7",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.6";
1
+ export declare const SDK_VERSION = "0.4.7";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.4.6";
4
+ exports.SDK_VERSION = "0.4.7";
@@ -1,5 +1,6 @@
1
1
  export interface MppxClient {
2
2
  fetch: typeof globalThis.fetch;
3
+ rawFetch: typeof globalThis.fetch;
3
4
  transport: {
4
5
  setCredential(request: Request, credential: string): RequestInit;
5
6
  };
@@ -13,7 +13,7 @@ exports.getPaymentCredentials = getPaymentCredentials;
13
13
  const util_js_1 = require("./util.js");
14
14
  function getPaymentCredentials(wsUrl, mppx) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
- const response = yield (0, util_js_1.probe402)(wsUrl);
16
+ const response = yield (0, util_js_1.probe402)(wsUrl, mppx.rawFetch);
17
17
  const credential = yield mppx.createCredential(response);
18
18
  const signed = mppx.transport.setCredential(new Request((0, util_js_1.wsToHttp)(wsUrl)), credential);
19
19
  const headers = {};
@@ -1,2 +1,2 @@
1
1
  export declare function wsToHttp(wsUrl: string): string;
2
- export declare function probe402(wsUrl: string): Promise<Response>;
2
+ export declare function probe402(wsUrl: string, fetchFn?: typeof fetch): Promise<Response>;
@@ -14,10 +14,10 @@ exports.probe402 = probe402;
14
14
  function wsToHttp(wsUrl) {
15
15
  return wsUrl.replace(/^wss:\/\//, "https://").replace(/^ws:\/\//, "http://");
16
16
  }
17
- function probe402(wsUrl) {
18
- return __awaiter(this, void 0, void 0, function* () {
17
+ function probe402(wsUrl_1) {
18
+ return __awaiter(this, arguments, void 0, function* (wsUrl, fetchFn = fetch) {
19
19
  const httpUrl = wsToHttp(wsUrl);
20
- const response = yield fetch(httpUrl);
20
+ const response = yield fetchFn(httpUrl);
21
21
  if (response.status !== 402) {
22
22
  throw new Error(`Expected 402 from ${httpUrl} but got ${response.status}`);
23
23
  }
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "agentmail",
9
- "X-Fern-SDK-Version": "0.4.6",
10
- "User-Agent": "agentmail/0.4.6",
9
+ "X-Fern-SDK-Version": "0.4.7",
10
+ "User-Agent": "agentmail/0.4.7",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.4.6";
1
+ export declare const SDK_VERSION = "0.4.7";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.4.6";
1
+ export const SDK_VERSION = "0.4.7";
@@ -1,5 +1,6 @@
1
1
  export interface MppxClient {
2
2
  fetch: typeof globalThis.fetch;
3
+ rawFetch: typeof globalThis.fetch;
3
4
  transport: {
4
5
  setCredential(request: Request, credential: string): RequestInit;
5
6
  };
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { probe402, wsToHttp } from "./util.mjs";
11
11
  export function getPaymentCredentials(wsUrl, mppx) {
12
12
  return __awaiter(this, void 0, void 0, function* () {
13
- const response = yield probe402(wsUrl);
13
+ const response = yield probe402(wsUrl, mppx.rawFetch);
14
14
  const credential = yield mppx.createCredential(response);
15
15
  const signed = mppx.transport.setCredential(new Request(wsToHttp(wsUrl)), credential);
16
16
  const headers = {};
@@ -1,2 +1,2 @@
1
1
  export declare function wsToHttp(wsUrl: string): string;
2
- export declare function probe402(wsUrl: string): Promise<Response>;
2
+ export declare function probe402(wsUrl: string, fetchFn?: typeof fetch): Promise<Response>;
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  export function wsToHttp(wsUrl) {
11
11
  return wsUrl.replace(/^wss:\/\//, "https://").replace(/^ws:\/\//, "http://");
12
12
  }
13
- export function probe402(wsUrl) {
14
- return __awaiter(this, void 0, void 0, function* () {
13
+ export function probe402(wsUrl_1) {
14
+ return __awaiter(this, arguments, void 0, function* (wsUrl, fetchFn = fetch) {
15
15
  const httpUrl = wsToHttp(wsUrl);
16
- const response = yield fetch(httpUrl);
16
+ const response = yield fetchFn(httpUrl);
17
17
  if (response.status !== 402) {
18
18
  throw new Error(`Expected 402 from ${httpUrl} but got ${response.status}`);
19
19
  }
@@ -2999,34 +2999,24 @@ The skill is available at [skills.sh/agentmail-to/agentmail-skills/agentmail](ht
2999
2999
 
3000
3000
  ## Installation
3001
3001
 
3002
- ### OpenClaw
3003
-
3004
- Install the skill using the OpenClaw CLI:
3002
+ Install the skill using the [skills CLI](https://github.com/vercel-labs/skills). This works with Claude Code, Cursor, OpenClaw, Codex, and other compatible agents:
3005
3003
 
3006
3004
  ```bash
3007
- openclaw skills install agentmail-to/agentmail-skills/agentmail
3005
+ npx skills add agentmail-to/agentmail-skills
3008
3006
  ```
3009
3007
 
3010
- Or install via ClawHub:
3008
+ To skip interactive prompts, specify the skill and agent directly:
3011
3009
 
3012
3010
  ```bash
3013
- npx clawhub@latest install agentmail
3011
+ npx skills add agentmail-to/agentmail-skills --skill agentmail --agent claude-code
3014
3012
  ```
3015
3013
 
3016
- ### Claude Code
3014
+ ### OpenClaw via ClawHub
3017
3015
 
3018
- Add the skill to your Claude Code configuration:
3016
+ OpenClaw users can also install via ClawHub:
3019
3017
 
3020
3018
  ```bash
3021
- claude-code skills install agentmail-to/agentmail-skills/agentmail
3022
- ```
3023
-
3024
- ### Cursor
3025
-
3026
- Install the skill in Cursor:
3027
-
3028
- ```bash
3029
- cursor skills install agentmail-to/agentmail-skills/agentmail
3019
+ npx clawhub@latest install agentmail
3030
3020
  ```
3031
3021
 
3032
3022
  ### Manual installation
@@ -3304,13 +3294,7 @@ The easiest way to add email capabilities to OpenClaw is by installing the offic
3304
3294
 
3305
3295
  ### Installation
3306
3296
 
3307
- Install the skill using the OpenClaw CLI:
3308
-
3309
- ```bash
3310
- openclaw skills install agentmail-to/agentmail-skills/agentmail
3311
- ```
3312
-
3313
- Or install via ClawHub:
3297
+ Install the skill via ClawHub:
3314
3298
 
3315
3299
  ```bash
3316
3300
  npx clawhub@latest install agentmail
@@ -17595,6 +17579,10 @@ components:
17595
17579
  $ref: '#/components/schemas/type_attachments:Attachment'
17596
17580
  description: Attachments in draft.
17597
17581
  title: DraftAttachments
17582
+ type_drafts:DraftInReplyTo:
17583
+ type: string
17584
+ description: ID of message being replied to.
17585
+ title: DraftInReplyTo
17598
17586
  type_drafts:DraftSendStatus:
17599
17587
  type: string
17600
17588
  enum:
@@ -17634,6 +17622,8 @@ components:
17634
17622
  $ref: '#/components/schemas/type_drafts:DraftPreview'
17635
17623
  attachments:
17636
17624
  $ref: '#/components/schemas/type_drafts:DraftAttachments'
17625
+ in_reply_to:
17626
+ $ref: '#/components/schemas/type_drafts:DraftInReplyTo'
17637
17627
  send_status:
17638
17628
  $ref: '#/components/schemas/type_drafts:DraftSendStatus'
17639
17629
  send_at:
@@ -21983,6 +21973,10 @@ components:
21983
21973
  $ref: '#/components/schemas/type_attachments:Attachment'
21984
21974
  description: Attachments in draft.
21985
21975
  title: DraftAttachments
21976
+ type_drafts:DraftInReplyTo:
21977
+ type: string
21978
+ description: ID of message being replied to.
21979
+ title: DraftInReplyTo
21986
21980
  type_drafts:DraftSendStatus:
21987
21981
  type: string
21988
21982
  enum:
@@ -22022,6 +22016,8 @@ components:
22022
22016
  $ref: '#/components/schemas/type_drafts:DraftPreview'
22023
22017
  attachments:
22024
22018
  $ref: '#/components/schemas/type_drafts:DraftAttachments'
22019
+ in_reply_to:
22020
+ $ref: '#/components/schemas/type_drafts:DraftInReplyTo'
22025
22021
  send_status:
22026
22022
  $ref: '#/components/schemas/type_drafts:DraftSendStatus'
22027
22023
  send_at:
@@ -34663,6 +34659,10 @@ components:
34663
34659
  $ref: '#/components/schemas/type_attachments:Attachment'
34664
34660
  description: Attachments in draft.
34665
34661
  title: DraftAttachments
34662
+ type_drafts:DraftInReplyTo:
34663
+ type: string
34664
+ description: ID of message being replied to.
34665
+ title: DraftInReplyTo
34666
34666
  type_drafts:DraftSendStatus:
34667
34667
  type: string
34668
34668
  enum:
@@ -34702,6 +34702,8 @@ components:
34702
34702
  $ref: '#/components/schemas/type_drafts:DraftPreview'
34703
34703
  attachments:
34704
34704
  $ref: '#/components/schemas/type_drafts:DraftAttachments'
34705
+ in_reply_to:
34706
+ $ref: '#/components/schemas/type_drafts:DraftInReplyTo'
34705
34707
  send_status:
34706
34708
  $ref: '#/components/schemas/type_drafts:DraftSendStatus'
34707
34709
  send_at:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",