@afokapu/atdd-flow 0.2.2 → 0.2.3

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/adapters.ts +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afokapu/atdd-flow",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Filesystem-first Desk registry for projects, seats, tasks, threads, and handoffs.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/adapters.ts CHANGED
@@ -27,10 +27,11 @@ export function discoverAddress(application: string, environment: Environment =
27
27
  export function notificationCommand(application: string, address: string, notice: string, herdrSession?: string): string[] | undefined {
28
28
  const commands: Record<string, () => string[] | undefined> = {
29
29
  tmux: () => ["tmux", "send-keys", "-t", address, notice, "Enter"],
30
- // A Herdr pane id is the canonical runtime address. `pane send-text` is
31
- // supported by both standalone Herdr and TUIOS's embedded Herdr server;
32
- // `agent send` is not available on every embedded-server version.
33
- herdr: () => ["herdr", ...(herdrSession ? ["--session", herdrSession] : []), "pane", "send-text", address, notice],
30
+ // Herdr resolves the live agent from its stable pane address and submits
31
+ // an ordered prompt through its agent-control API. Do not fall back to
32
+ // pane text injection: a Desk message remains durable when an older host
33
+ // cannot provide agent.prompt.
34
+ herdr: () => ["herdr", ...(herdrSession ? ["--session", herdrSession] : []), "agent", "prompt", address, notice],
34
35
  tuios: () => {
35
36
  const separator = address.indexOf("/");
36
37
  if (separator < 1 || separator === address.length - 1) return undefined;