@popoverai/dotrequirements 0.39.1 → 0.39.2

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.
@@ -48,6 +48,7 @@ export async function pushCommand(options) {
48
48
  ? await pushWork(solutionClient(), {
49
49
  solutionId: where.solutionId,
50
50
  branch: where.branch,
51
+ ...(where.agent ? { agent: where.agent } : {}),
51
52
  })
52
53
  : { ok: true, pushed: false };
53
54
  const result = outcome.ok
@@ -20,6 +20,7 @@ export async function pullRequestCommand(options) {
20
20
  const pushed = await pushWork(solutionClient(), {
21
21
  solutionId: where.solutionId,
22
22
  branch: where.branch,
23
+ agent: where.agent,
23
24
  });
24
25
  if (!pushed.ok) {
25
26
  throw new Error(pushed.tell
@@ -35,6 +35,7 @@ export type PushOutcome = {
35
35
  export declare function pushWork(client: Client, where: {
36
36
  solutionId: string;
37
37
  branch: string;
38
+ agent?: string;
38
39
  }, cwd?: string): Promise<PushOutcome>;
39
40
  /** Push before a record, or refuse it with what the agent is to do (SOLBRANCH-3). */
40
41
  export declare function pushBeforeRecord(client: Client, where: Where): Promise<void>;
@@ -26,6 +26,9 @@ export async function pushWork(client, where, cwd = process.cwd()) {
26
26
  branch,
27
27
  before: pushed.before,
28
28
  after: pushed.after,
29
+ // Which agent pushed, so the solution's agent is told of others'
30
+ // pushes since its last turn (SOLBRANCH-2.4.0).
31
+ ...(where.agent ? { agent: where.agent } : {}),
29
32
  });
30
33
  return { ok: true, pushed: true };
31
34
  case "nothing to push":
@@ -83,6 +86,7 @@ export async function pushBeforeRecord(client, where) {
83
86
  const outcome = await pushWork(client, {
84
87
  solutionId: where.solutionId,
85
88
  branch: where.branch,
89
+ agent: where.agent,
86
90
  });
87
91
  if (!outcome.ok)
88
92
  throw new Error(outcome.tell);
@@ -22,6 +22,7 @@ export async function stallCommand(reason, options) {
22
22
  const pushed = await pushWork(client, {
23
23
  solutionId,
24
24
  branch: where.branch,
25
+ agent,
25
26
  });
26
27
  if (!pushed.ok)
27
28
  said = withUnpushed(said, pushed.why);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popoverai/dotrequirements",
3
- "version": "0.39.1",
3
+ "version": "0.39.2",
4
4
  "description": "Requirements as testable, human-readable data — CLI and test harness for spec-driven development with AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {