@pinet/slack-bridge 0.2.0 → 0.2.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/dist/pinet-tools.js +10 -2
- package/package.json +5 -5
package/dist/pinet-tools.js
CHANGED
|
@@ -11,8 +11,16 @@ import { HEARTBEAT_INTERVAL_MS } from "./broker/client.js";
|
|
|
11
11
|
const PINET_DISPATCHER_EXAMPLES = {
|
|
12
12
|
send: [{ action: "send", args: { to: "@worker", message: "Please review PR #123" } }],
|
|
13
13
|
read: [
|
|
14
|
+
// Routine inbox drain: defaults are `unread_only: true` + `mark_read: true`,
|
|
15
|
+
// so this returns and consumes only this agent's unread rows. The compact
|
|
16
|
+
// output already includes capped per-message previews; no `full=true` needed.
|
|
17
|
+
{ action: "read", args: { limit: 20 } },
|
|
18
|
+
// Same defaults, scoped to one thread.
|
|
14
19
|
{ action: "read", args: { thread_id: "a2a:<broker>:<worker>", limit: 20 } },
|
|
15
|
-
|
|
20
|
+
// Non-destructive latest-history peek (does NOT mark anything read or
|
|
21
|
+
// change unread state). Use only when you need to revisit recently-read
|
|
22
|
+
// context, not as a routine inbox read.
|
|
23
|
+
{ action: "read", args: { unread_only: false, mark_read: false, limit: 5 } },
|
|
16
24
|
],
|
|
17
25
|
free: [{ action: "free", args: { note: "Wrapped up <issue>" } }],
|
|
18
26
|
snooze: [
|
|
@@ -1377,7 +1385,7 @@ export function registerPinetTools(pi, deps) {
|
|
|
1377
1385
|
});
|
|
1378
1386
|
registerAction({
|
|
1379
1387
|
name: "read",
|
|
1380
|
-
description: "Read this agent's durable SQLite-backed Pinet inbox context with unread/read semantics. Ordinary workers only see rows addressed to their own agent identity; broker coordination visibility is limited to broker-addressed inbox rows.",
|
|
1388
|
+
description: "Read this agent's durable SQLite-backed Pinet inbox context with unread/read semantics. Defaults to draining unread rows (`unread_only: true`, `mark_read: true`) with compact per-message previews — no `full=true` required for routine reads. Override `unread_only`/`mark_read` only for a non-destructive latest-history peek. Ordinary workers only see rows addressed to their own agent identity; broker coordination visibility is limited to broker-addressed inbox rows.",
|
|
1381
1389
|
parameters: Type.Object({
|
|
1382
1390
|
thread_id: Type.Optional(Type.String({
|
|
1383
1391
|
description: "Optional Pinet/Slack broker thread ID to filter this agent's own inbox rows; it does not grant cross-agent thread access.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinet/slack-bridge",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pi package for Pinet Slack assistant integration — multi-agent broker, thread routing, and inbox tools",
|
|
6
6
|
"author": "Will Porcellini <5994936+gugu91@users.noreply.github.com>",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"test": "vitest run"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@pinet/broker-core": "0.2.
|
|
53
|
-
"@pinet/imessage-bridge": "0.2.
|
|
54
|
-
"@pinet/pinet-core": "0.2.
|
|
55
|
-
"@pinet/transport-core": "0.2.
|
|
52
|
+
"@pinet/broker-core": "0.2.1",
|
|
53
|
+
"@pinet/imessage-bridge": "0.2.1",
|
|
54
|
+
"@pinet/pinet-core": "0.2.1",
|
|
55
|
+
"@pinet/transport-core": "0.2.1",
|
|
56
56
|
"@sinclair/typebox": "^0.34.49"
|
|
57
57
|
},
|
|
58
58
|
"types": "./dist/index.d.ts",
|