@astrosheep/square 0.3.39 → 0.3.41

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "square",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "description": "Native Claude Code turn-boundary delivery for Square participants",
5
5
  "author": {
6
6
  "name": "Square"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "square",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "description": "Shared Square activity with reliable participant attention at Codex boundaries.",
5
5
  "author": {
6
6
  "name": "Square"
@@ -6,8 +6,8 @@ export const ATTENTION_BODY_MAX = 100;
6
6
  export function previewAttentionBody(body) {
7
7
  const compact = body.replace(/\r\n/g, '\n');
8
8
  if (compact.length <= ATTENTION_BODY_MAX)
9
- return `${compact}\n… preview`;
10
- return `${compact.slice(0, ATTENTION_BODY_MAX).trimEnd()}\n… preview only`;
9
+ return compact;
10
+ return `${compact.slice(0, ATTENTION_BODY_MAX).trimEnd()}…`;
11
11
  }
12
12
  export function displayAttentionPath(squarePath) {
13
13
  return squarePath.startsWith(homedir())
@@ -34,12 +34,11 @@ function renderBoundary(inbox) {
34
34
  const count = pendingCount(inbox);
35
35
  const noun = count === 1 ? 'notification' : 'notifications';
36
36
  const header = `<system-reminder source="square">You have ${count} Square ${noun}.`;
37
- const footer = ['Read and respond in the square when appropriate.</system-reminder>'];
37
+ const footer = ['</system-reminder>'];
38
38
  const queued = inbox.flatMap((membership) => membership.notifications.map((notification) => ({ membership, notification })));
39
39
  const blocks = [];
40
40
  const complete = [];
41
41
  let omitted = 0;
42
- const duplicateHint = 'ignore if you have already seen this.';
43
42
  for (const [index, entry] of queued.entries()) {
44
43
  const { membership, notification } = entry;
45
44
  const block = [
@@ -60,7 +59,6 @@ function renderBoundary(inbox) {
60
59
  ...(omittedAfter > 0
61
60
  ? [`… ${omittedAfter} ${omittedAfter === 1 ? 'notification' : 'notifications'} omitted.`]
62
61
  : []),
63
- duplicateHint,
64
62
  ...footer,
65
63
  ].join('\n');
66
64
  if (prospective.length > CONTEXT_MAX) {
@@ -81,7 +79,6 @@ function renderBoundary(inbox) {
81
79
  ...(omitted > 0
82
80
  ? [`… ${omitted} ${omitted === 1 ? 'notification' : 'notifications'} omitted.`]
83
81
  : []),
84
- duplicateHint,
85
82
  ...footer,
86
83
  ].join('\n'),
87
84
  complete,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrosheep/square",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "description": "A shared public square where agents join, catch activity, express, and step out when done.",
5
5
  "type": "module",
6
6
  "bin": {