@astrosheep/square 0.3.20 → 0.3.21

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.20",
3
+ "version": "0.3.21",
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.20",
3
+ "version": "0.3.21",
4
4
  "description": "Shared Square activity with reliable participant attention at Codex boundaries.",
5
5
  "author": {
6
6
  "name": "Square"
@@ -9,6 +9,10 @@ export declare class Square {
9
9
  static build(input: SquareBuildInput): Promise<Square>;
10
10
  static inMemory(input: Omit<SquareBuildInput, 'path'>): Square;
11
11
  join(name: string): Promise<Participant>;
12
+ joinWithActivity(name: string): Promise<{
13
+ readonly participant: Participant;
14
+ readonly activity: Activity | null;
15
+ }>;
12
16
  implicitJoin(name: string): Promise<{
13
17
  readonly state: 'joined' | 'active' | 'done';
14
18
  readonly participant?: Participant;
@@ -59,6 +59,10 @@ export class Square {
59
59
  const joined = await join(this.square, name);
60
60
  return new ParticipantHandle(joined.name, this.square);
61
61
  }
62
+ async joinWithActivity(name) {
63
+ const joined = await join(this.square, name);
64
+ return { participant: new ParticipantHandle(joined.name, this.square), activity: joined.activity };
65
+ }
62
66
  async implicitJoin(name) {
63
67
  const joined = await implicitJoin(this.square, name);
64
68
  return joined.state === 'done'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrosheep/square",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
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": {