@pinet/pinet-core 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.
|
@@ -121,7 +121,12 @@ export function formatPinetReadResultCompact(result, options) {
|
|
|
121
121
|
const lines = [
|
|
122
122
|
`Pinet read: ${result.messages.length} ${mode} message${result.messages.length === 1 ? "" : "s"}; unread ${result.unreadCountBefore}→${result.unreadCountAfter}${markedSuffix}${unreadThreadSuffix}.`,
|
|
123
123
|
];
|
|
124
|
-
|
|
124
|
+
// Show capped per-message previews for both thread-scoped and inbox-wide
|
|
125
|
+
// compact reads. Restricting previews to thread-scoped reads (the previous
|
|
126
|
+
// behavior) left inbox-wide `pinet action=read` callers with only the counts
|
|
127
|
+
// header, which pushed agents toward `full=true` just to see what arrived.
|
|
128
|
+
// The 3-message + 96-char cap already keeps the output bounded.
|
|
129
|
+
if (result.messages.length > 0) {
|
|
125
130
|
const shownMessages = result.messages.slice(0, COMPACT_READ_TEXT_MESSAGE_LIMIT);
|
|
126
131
|
lines.push(...shownMessages.map(formatCompactMessagePreview));
|
|
127
132
|
const truncated = result.messages.length - shownMessages.length;
|
|
@@ -129,7 +134,9 @@ export function formatPinetReadResultCompact(result, options) {
|
|
|
129
134
|
lines.push(`… ${truncated} more message${truncated === 1 ? "" : "s"}.`);
|
|
130
135
|
}
|
|
131
136
|
if (truncated > 0 || shownMessages.some(isMessageBodyTruncated)) {
|
|
132
|
-
|
|
137
|
+
// Stated as a diagnostic affordance rather than a directive so we don't
|
|
138
|
+
// actively push routine reads toward `full=true`.
|
|
139
|
+
lines.push("args.full=true args.unread_only=false returns verbatim bodies.");
|
|
133
140
|
}
|
|
134
141
|
}
|
|
135
142
|
return lines.join("\n");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinet/pinet-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Pinet runtime core for pi — broker/follower orchestration and mesh tooling",
|
|
6
6
|
"author": "Will Porcellini <5994936+gugu91@users.noreply.github.com>",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"test": "vitest run *.test.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@pinet/broker-core": "0.2.
|
|
39
|
-
"@pinet/transport-core": "0.2.
|
|
38
|
+
"@pinet/broker-core": "0.2.1",
|
|
39
|
+
"@pinet/transport-core": "0.2.1"
|
|
40
40
|
},
|
|
41
41
|
"types": "./dist/index.d.ts"
|
|
42
42
|
}
|