@astrosheep/square 0.3.11 → 0.3.12

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.11",
3
+ "version": "0.3.12",
4
4
  "description": "Shared Square activity with reliable participant attention at Codex boundaries.",
5
5
  "author": {
6
6
  "name": "Square"
package/dist/activity.js CHANGED
@@ -6,7 +6,6 @@ import { loadSquare } from './artifact.js';
6
6
  import { SquareError, validateName } from './model.js';
7
7
  import { expressHintLine, renderActivityBlocked, renderActivityLimit, renderExpressNoWait, renderExpressWaiting, renderPendingFeed, withPathOutput, } from './presentation.js';
8
8
  import { currentHold, inSquareCount, nowMs, SLEEP_MS, resolveRosterName } from './runtime.js';
9
- import { resolveKnownName } from './decisions.js';
10
9
  import { dispatchActNotifications } from './notifications.js';
11
10
  import { execute } from './square-application.js';
12
11
  import { formatTimestamp } from './time.js';
@@ -62,11 +61,7 @@ export async function cmdActivity(squarePath, name, activity, resolveBody, opts)
62
61
  const body = rawInput.trim();
63
62
  const force = opts.force ?? false;
64
63
  const noWait = opts.noWait ?? false;
65
- const reach = opts.reach === undefined
66
- ? undefined
67
- : opts.reach === 'bell'
68
- ? 'bell'
69
- : { beside: resolveKnownName(doc, opts.reach.beside) };
64
+ const reach = opts.reach === 'bell' ? 'bell' : undefined;
70
65
  let announcedWait;
71
66
  while (true) {
72
67
  const committed = await execute(squarePath, {
@@ -88,7 +83,7 @@ export async function cmdActivity(squarePath, name, activity, resolveBody, opts)
88
83
  if (sayAct !== undefined)
89
84
  await dispatchActNotifications(squarePath, sayAct);
90
85
  const hasPending = decision.pendingPublic.length > 0 || decision.pendingRoomChanges.length > 0;
91
- const pending = hasPending ? `\n\n${renderPendingFeed(freshDoc.acts, decision.pendingPublic, decision.pendingRoomChanges)}` : '';
86
+ const pending = hasPending ? `\n\n${renderPendingFeed(freshDoc.acts, decision.pendingPublic, decision.pendingRoomChanges, knownName)}` : '';
92
87
  const hint = expressHintLine(decision.ownActCount);
93
88
  const withHint = hint ? `${decision.confirmation}\n${hint}` : decision.confirmation;
94
89
  process.stdout.write(withPathOutput(squarePath, withHint + pending, { participantCount: headerCount, held }));