@agentcomms/whatsapp 0.7.2 → 0.8.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/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as withFileLock, A as CommsError, B as installExitStatus, C as checkStorePath, F as canPrompt, G as paint, H as lookupName, I as channelManifest, J as runCommand, K as renderInstall, L as colorEnabled, M as agentMarker, N as approvalKind, O as CHANNELS, P as approveChangeAtTerminal, Q as truncateDisplay, R as escapeForDisplay, S as storeIdentity, T as expandSource, U as nameAvailable, V as isCommsError, W as nameShapeProblem, X as serverPruneChange, Y as serverInstallChange, _ as chatRefOf, a as listChats, b as requireAccount, c as Presenter, d as draftMessage, et as writeResult, f as Visibility, g as requireSupportedNode, h as WhatsAppIndex, i as CHAT_KINDS, j as EXIT_CODES, k as CHANNEL_SERVERS, l as innerText, m as WhatsAppContext, n as whatsappStatus, o as readChat, p as listKey, q as renderPrune, r as probeStore, s as searchMessages, t as syncAccount, tt as VERSION, v as PLATFORM, w as defaultStorePath, x as requireNamedConfig, y as newWhatsAppAccount, z as gatedChangeAtTerminal } from "./sync-
|
|
2
|
+
import { $ as withFileLock, A as CommsError, B as installExitStatus, C as checkStorePath, F as canPrompt, G as paint, H as lookupName, I as channelManifest, J as runCommand, K as renderInstall, L as colorEnabled, M as agentMarker, N as approvalKind, O as CHANNELS, P as approveChangeAtTerminal, Q as truncateDisplay, R as escapeForDisplay, S as storeIdentity, T as expandSource, U as nameAvailable, V as isCommsError, W as nameShapeProblem, X as serverPruneChange, Y as serverInstallChange, _ as chatRefOf, a as listChats, b as requireAccount, c as Presenter, d as draftMessage, et as writeResult, f as Visibility, g as requireSupportedNode, h as WhatsAppIndex, i as CHAT_KINDS, j as EXIT_CODES, k as CHANNEL_SERVERS, l as innerText, m as WhatsAppContext, n as whatsappStatus, o as readChat, p as listKey, q as renderPrune, r as probeStore, s as searchMessages, t as syncAccount, tt as VERSION, v as PLATFORM, w as defaultStorePath, x as requireNamedConfig, y as newWhatsAppAccount, z as gatedChangeAtTerminal } from "./sync-BcshklLi.mjs";
|
|
3
3
|
import { rm } from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { stripVTControlCharacters } from "node:util";
|
|
@@ -3495,7 +3495,7 @@ a macOS dialog may be waiting) · 77 permission needed (macOS privacy) · 78 con
|
|
|
3495
3495
|
ran = true;
|
|
3496
3496
|
exitCode = await runCommand(output(), async () => {
|
|
3497
3497
|
requireSupportedNode();
|
|
3498
|
-
const { startWhatsAppStdioServer } = await import("./stdio-entry-
|
|
3498
|
+
const { startWhatsAppStdioServer } = await import("./stdio-entry-Dmwsi_a0.mjs");
|
|
3499
3499
|
await startWhatsAppStdioServer({
|
|
3500
3500
|
env,
|
|
3501
3501
|
...flags.account ? { account: String(flags.account) } : {}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tt as VERSION, u as composeDraft } from "./sync-
|
|
2
|
-
import { t as createWhatsAppMcpServer } from "./server-
|
|
1
|
+
import { tt as VERSION, u as composeDraft } from "./sync-BcshklLi.mjs";
|
|
2
|
+
import { t as createWhatsAppMcpServer } from "./server-BZiPPNbS.mjs";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* The library entry of `@agentcomms/whatsapp`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as strictToolArguments, E as UNTRUSTED_NOTICE, Z as toCommsError, a as listChats, d as draftMessage, i as CHAT_KINDS, m as WhatsAppContext, n as whatsappStatus, o as readChat, s as searchMessages, t as syncAccount, tt as VERSION } from "./sync-
|
|
1
|
+
import { D as strictToolArguments, E as UNTRUSTED_NOTICE, Z as toCommsError, a as listChats, d as draftMessage, i as CHAT_KINDS, m as WhatsAppContext, n as whatsappStatus, o as readChat, s as searchMessages, t as syncAccount, tt as VERSION } from "./sync-BcshklLi.mjs";
|
|
2
2
|
import { c as boolean, h as number, x as string } from "./schemas-DiGKNDNq.mjs";
|
|
3
3
|
import { t as McpServer } from "./mcp-DXXb3Vv3-Co5BzjYe.mjs";
|
|
4
4
|
//#region src/mcp/server.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createWhatsAppMcpServer } from "./server-
|
|
1
|
+
import { t as createWhatsAppMcpServer } from "./server-BZiPPNbS.mjs";
|
|
2
2
|
//#region src/mcp/stdio-entry.ts
|
|
3
3
|
/**
|
|
4
4
|
* Starting the stdio server. On stdio, stdout is the protocol, so the console is redirected to stderr first — the
|
|
@@ -11,9 +11,9 @@ import { constants as constants$1 } from "node:fs";
|
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/version.ts
|
|
13
13
|
/** The package version, read from package.json at build time. */
|
|
14
|
-
const VERSION$1 = "0.
|
|
14
|
+
const VERSION$1 = "0.8.0";
|
|
15
15
|
//#endregion
|
|
16
|
-
//#region ../core/dist/servers-
|
|
16
|
+
//#region ../core/dist/servers-C9e_nZMJ.mjs
|
|
17
17
|
/**
|
|
18
18
|
* Every failure a user or an agent can act on carries a specific, stable code from this registry, a message, an
|
|
19
19
|
* optional one-line hint and structured `details`. The code decides the process exit status; agents and skills branch
|
|
@@ -826,7 +826,7 @@ const CHANNEL_SNAPSHOT = [
|
|
|
826
826
|
word: "slack",
|
|
827
827
|
can: "post to Slack"
|
|
828
828
|
},
|
|
829
|
-
hosts: ["slack.com"],
|
|
829
|
+
hosts: ["slack.com", "files.slack.com"],
|
|
830
830
|
approve: "agent-slack approve",
|
|
831
831
|
skills: {
|
|
832
832
|
prefix: "slack-",
|
|
@@ -5524,7 +5524,7 @@ function wholeNumber(raw, rule) {
|
|
|
5524
5524
|
return value;
|
|
5525
5525
|
}
|
|
5526
5526
|
/** The package version, read from package.json at build time. */
|
|
5527
|
-
const VERSION = "0.
|
|
5527
|
+
const VERSION = "0.8.0";
|
|
5528
5528
|
/**
|
|
5529
5529
|
* Registering, pruning and listing the MCP servers of every channel, from the core.
|
|
5530
5530
|
*
|
|
@@ -5779,7 +5779,7 @@ function serverPruneChange(core, env, request, own) {
|
|
|
5779
5779
|
};
|
|
5780
5780
|
const { packageName, version } = ownProduct(request.channel, own) ?? {
|
|
5781
5781
|
packageName: channelServer(request.channel).packageName,
|
|
5782
|
-
version: "0.
|
|
5782
|
+
version: "0.8.0"
|
|
5783
5783
|
};
|
|
5784
5784
|
const product = {
|
|
5785
5785
|
packageName,
|
|
@@ -5818,7 +5818,7 @@ function serverPruneChange(core, env, request, own) {
|
|
|
5818
5818
|
};
|
|
5819
5819
|
}
|
|
5820
5820
|
//#endregion
|
|
5821
|
-
//#region ../core/dist/tool-arguments-
|
|
5821
|
+
//#region ../core/dist/tool-arguments-nyLcGiBq.mjs
|
|
5822
5822
|
const APPLIED = Symbol.for("agentcomms.strictToolArguments");
|
|
5823
5823
|
const TARGET = "draft-2020-12";
|
|
5824
5824
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentcomms/whatsapp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "WhatsApp for coding agents, read-only: list, read and search the chats WhatsApp for Mac keeps on this Mac, and draft replies as links the person sends. No network client; it never sends.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@modelcontextprotocol/server": "^2.0.0",
|
|
39
39
|
"commander": "^15.0.0",
|
|
40
40
|
"zod": "^4.6.5",
|
|
41
|
-
"@agentcomms/core": "0.
|
|
41
|
+
"@agentcomms/core": "0.8.0"
|
|
42
42
|
},
|
|
43
43
|
"agentcomms": {
|
|
44
44
|
"contract": 1,
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"typecheck": "tsc -p tsconfig.json",
|
|
88
88
|
"test": "node --experimental-strip-types --disable-warning=ExperimentalWarning --test --test-timeout=600000 \"test/**/*.test.ts\""
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "6ba01db89c28176192ba5ffca72b14866e6b6f67"
|
|
91
91
|
}
|