@astrosheep/square 0.3.10 → 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.
Files changed (54) hide show
  1. package/codex-plugin/.codex-plugin/plugin.json +1 -1
  2. package/dist/activity.js +6 -7
  3. package/dist/artifact.js +337 -618
  4. package/dist/boundary-presentation.js +1 -1
  5. package/dist/cli/context.js +3 -3
  6. package/dist/cli/harness-command.js +1 -1
  7. package/dist/cli/maintenance-commands.js +12 -58
  8. package/dist/cli/observation-commands.js +14 -34
  9. package/dist/cli/program.js +3 -6
  10. package/dist/cli/registry.js +1 -2
  11. package/dist/cli/square-commands.js +39 -20
  12. package/dist/cmd/notify-once.js +5 -15
  13. package/dist/compact.js +4 -4
  14. package/dist/decisions.js +21 -7
  15. package/dist/delivery-health.js +56 -136
  16. package/dist/delivery.js +11 -47
  17. package/dist/file-lock.js +112 -0
  18. package/dist/harness-codex.js +35 -29
  19. package/dist/harness-links.js +0 -3
  20. package/dist/harness-pi.js +57 -0
  21. package/dist/harness.js +10 -15
  22. package/dist/help.js +16 -18
  23. package/dist/index.js +11 -5
  24. package/dist/list.js +3 -47
  25. package/dist/model.js +4 -6
  26. package/dist/notifications.js +217 -32
  27. package/dist/paseo-connection.js +135 -0
  28. package/dist/paseo-delivery.js +73 -144
  29. package/dist/paseo-state.js +1 -1
  30. package/dist/paseo-timeline.js +32 -42
  31. package/dist/presentation.js +24 -39
  32. package/dist/presented.js +10 -72
  33. package/dist/registry.js +23 -24
  34. package/dist/routes.js +153 -0
  35. package/dist/runtime.js +6 -21
  36. package/dist/square-application.js +56 -127
  37. package/dist/square-core.js +56 -9
  38. package/dist/stream.js +1 -1
  39. package/dist/wake-attempts.js +175 -0
  40. package/dist/wake-evidence.js +35 -0
  41. package/dist/wake-port.js +22 -0
  42. package/dist/wake-sink.js +45 -6
  43. package/dist/watch.js +1 -2
  44. package/guides/participant.md +7 -174
  45. package/package.json +6 -3
  46. package/skills/brainstorm/SKILL.md +28 -28
  47. package/skills/square/.claude-plugin/plugin.json +1 -1
  48. package/skills/square/SKILL.md +23 -14
  49. package/skills/square-feedback/SKILL.md +7 -7
  50. package/dist/doctor.js +0 -35
  51. package/dist/notification-failures.js +0 -54
  52. package/template.md +0 -4
  53. package/templates/architect.md +0 -4
  54. package/templates/brainstorm.md +0 -4
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "square",
3
- "version": "0.3.10",
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,7 @@ 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';
9
+ import { dispatchActNotifications } from './notifications.js';
10
10
  import { execute } from './square-application.js';
11
11
  import { formatTimestamp } from './time.js';
12
12
  function draftDirFor(squarePath) {
@@ -61,11 +61,7 @@ export async function cmdActivity(squarePath, name, activity, resolveBody, opts)
61
61
  const body = rawInput.trim();
62
62
  const force = opts.force ?? false;
63
63
  const noWait = opts.noWait ?? false;
64
- const reach = opts.reach === undefined
65
- ? undefined
66
- : opts.reach === 'bell'
67
- ? 'bell'
68
- : { beside: resolveKnownName(doc, opts.reach.beside) };
64
+ const reach = opts.reach === 'bell' ? 'bell' : undefined;
69
65
  let announcedWait;
70
66
  while (true) {
71
67
  const committed = await execute(squarePath, {
@@ -83,8 +79,11 @@ export async function cmdActivity(squarePath, name, activity, resolveBody, opts)
83
79
  const held = currentHold(freshDoc.acts).active;
84
80
  switch (decision.type) {
85
81
  case 'sent': {
82
+ const sayAct = committed.acts.find((act) => act.kind === 'say');
83
+ if (sayAct !== undefined)
84
+ await dispatchActNotifications(squarePath, sayAct);
86
85
  const hasPending = decision.pendingPublic.length > 0 || decision.pendingRoomChanges.length > 0;
87
- 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)}` : '';
88
87
  const hint = expressHintLine(decision.ownActCount);
89
88
  const withHint = hint ? `${decision.confirmation}\n${hint}` : decision.confirmation;
90
89
  process.stdout.write(withPathOutput(squarePath, withHint + pending, { participantCount: headerCount, held }));