agent-mailbox-core 1.0.1 → 1.1.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/README.md CHANGED
@@ -24,7 +24,7 @@ Production-grade inter-agent messaging for multi-agent AI systems. SQLite-backed
24
24
  ## Install
25
25
 
26
26
  ```bash
27
- bun add agent-mailbox
27
+ bun add agent-mailbox-core
28
28
  ```
29
29
 
30
30
  ## Quick Start
@@ -32,7 +32,7 @@ bun add agent-mailbox
32
32
  ### Standalone (library)
33
33
 
34
34
  ```ts
35
- import { Mailbox } from "agent-mailbox";
35
+ import { Mailbox } from "agent-mailbox-core/lib";
36
36
 
37
37
  const mailbox = new Mailbox({ dbPath: "./mailbox.db" });
38
38
 
@@ -64,13 +64,13 @@ console.log(mailbox.metrics());
64
64
  mailbox.close();
65
65
  ```
66
66
 
67
- ### OpenCode Plugin
67
+ ### OpenCode Plugin (auto-install)
68
68
 
69
69
  In your `opencode.json`:
70
70
 
71
71
  ```json
72
72
  {
73
- "plugin": ["agent-mailbox/plugin"]
73
+ "plugin": ["agent-mailbox-core@latest"]
74
74
  }
75
75
  ```
76
76
 
package/dist/index.d.ts CHANGED
@@ -1,37 +1,8 @@
1
1
  /**
2
- * agent-mailbox — Production-grade inter-agent messaging for multi-agent AI systems
2
+ * agent-mailbox-core — Production-grade inter-agent messaging for multi-agent AI systems
3
3
  *
4
- * @example
5
- * ```ts
6
- * import { Mailbox } from "agent-mailbox";
7
- *
8
- * const mailbox = new Mailbox({ dbPath: "./mailbox.db" });
9
- *
10
- * // Send a message
11
- * const { messageId, threadId } = mailbox.send({
12
- * from: "architect",
13
- * to: "developer",
14
- * subject: "API schema ready",
15
- * body: "The OpenAPI spec is finalized. Proceed with implementation.",
16
- * priority: "high",
17
- * });
18
- *
19
- * // Read inbox
20
- * const messages = mailbox.readInbox({ agent: "developer" });
21
- *
22
- * // Acknowledge
23
- * mailbox.acknowledge(messages[0].id);
24
- *
25
- * // Search
26
- * const { messages: results } = mailbox.search({ query: "API schema" });
27
- *
28
- * // Metrics
29
- * console.log(mailbox.metrics());
30
- *
31
- * mailbox.close();
32
- * ```
4
+ * Default export is the OpenCode Plugin (for auto-install: "agent-mailbox-core@latest")
5
+ * Library exports available at "agent-mailbox-core/lib"
33
6
  */
34
- export { Mailbox } from "./mailbox.js";
35
- export { formatMessages, formatThreads, formatAgents, formatDeadLetters, formatMetrics } from "./format.js";
36
- export type { Priority, DeliveryStatus, MailboxConfig, Message, SendOptions, SendResult, InboxOptions, SearchOptions, Thread, DeadLetter, MailboxMetrics, AgentInfo, } from "./types.js";
7
+ export { default } from "./plugin.js";
37
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5G,YAAY,EACV,QAAQ,EACR,cAAc,EACd,aAAa,EACb,OAAO,EACP,WAAW,EACX,UAAU,EACV,YAAY,EACZ,aAAa,EACb,MAAM,EACN,UAAU,EACV,cAAc,EACd,SAAS,GACV,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}