opencode-mailbox 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +14 -3
package/dist/index.js CHANGED
@@ -12817,8 +12817,8 @@ var mailboxPlugin = async (ctx) => {
12817
12817
  const sendMailTool = tool3({
12818
12818
  description: "Send a message to a recipient's mailbox",
12819
12819
  args: {
12820
- to: z.string().describe("Recipient name or identifier"),
12821
- from: z.string().describe("Sender name or identifier"),
12820
+ to: z.string().describe("Recipient name. Note, this does NOT have to be an email. It can just be a name that the recipient watches for it (e.g. 'samus')."),
12821
+ from: z.string().describe("Sender name. Note, this does NOT have to be an email. It can just be a name that the sender wants to appear as (e.g. 'link')."),
12822
12822
  message: z.string().describe("Message content to send")
12823
12823
  },
12824
12824
  async execute(args) {
@@ -12830,9 +12830,9 @@ var mailboxPlugin = async (ctx) => {
12830
12830
  }
12831
12831
  });
12832
12832
  const watchUnreadMailTool = tool3({
12833
- description: "Create a hook that auto-injects messages when they are received",
12833
+ description: "Create a hook that auto-injects messages when they are received for a specific name and can specify what should be done with the messages",
12834
12834
  args: {
12835
- name: z.string().describe("Name of the recipient to watch"),
12835
+ name: z.string().describe("Name of the recipient to watch. Note: this does NOT have to be an email. It can just be a name that the sender uses (e.g. 'samus')."),
12836
12836
  "what-to-do-with-it": z.string().describe("Instructions on how to process received messages")
12837
12837
  },
12838
12838
  async execute(args, toolCtx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mailbox",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A simple mailbox system for sending and receiving messages between sessions",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,16 +22,27 @@
22
22
  "prepublishOnly": "bun run build"
23
23
  },
24
24
  "devDependencies": {
25
+ "@types/better-sqlite3": "^7.6.13",
25
26
  "@types/bun": "^1.2.2",
26
- "@types/node": "^25.0.10",
27
+ "@types/node": "^25.2.3",
28
+ "@types/react": "^19.2.14",
29
+ "@types/react-dom": "^19.2.3",
30
+ "concurrently": "^9.2.1",
27
31
  "electron": "^28.0.0",
32
+ "tsx": "^4.21.0",
28
33
  "typescript": "^5.9.3"
29
34
  },
30
35
  "peerDependencies": {
31
36
  "@opencode-ai/plugin": "^1.1.25"
32
37
  },
33
38
  "dependencies": {
34
- "dotenv": "^17.2.3"
39
+ "better-sqlite3": "^12.6.2",
40
+ "commander": "^14.0.3",
41
+ "dotenv": "^17.2.3",
42
+ "react": "^19.2.4",
43
+ "react-dom": "^19.2.4",
44
+ "react-error-boundary": "^6.1.1",
45
+ "yargs": "^18.0.0"
35
46
  },
36
47
  "keywords": [
37
48
  "opencode",