@afokapu/atdd-flow 0.3.0 → 0.3.1
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.
- package/package.json +1 -1
- package/src/cli.ts +1 -1
- package/src/seats.ts +4 -0
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -19,7 +19,7 @@ Usage:
|
|
|
19
19
|
atdd-flow desk migrate
|
|
20
20
|
atdd-flow project init <project>
|
|
21
21
|
atdd-flow spawn <project> <role> <name> [--worktree <path>] [--branch <branch>] [--agent <legacy-executable>]
|
|
22
|
-
atdd-flow bind <address> [--application <application>] --address <native-address> [--wake host|native]
|
|
22
|
+
atdd-flow bind <address> [--application <application>] --address <native-address> [--agent <executable>] [--wake host|native]
|
|
23
23
|
atdd-flow attach <address> [--application <application>] [--wake host|native]
|
|
24
24
|
atdd-flow pi extension-path
|
|
25
25
|
atdd-flow launch <address> --application <application> --placement <native-container-address>
|
package/src/seats.ts
CHANGED
|
@@ -98,6 +98,7 @@ export async function bind(root: string, address: string, args: string[], select
|
|
|
98
98
|
const record = await seat(root, resolved);
|
|
99
99
|
const config = await desk(root);
|
|
100
100
|
const application = words(args, "--application") ?? config.application;
|
|
101
|
+
const requestedAgent = words(args, "--agent");
|
|
101
102
|
const requestedWake = words(args, "--wake");
|
|
102
103
|
if (requestedWake && requestedWake !== "host" && requestedWake !== "native") throw new Error("Wake must be host or native.");
|
|
103
104
|
const selectedWake = wake ?? requestedWake as Runtime["wake"] | undefined;
|
|
@@ -112,6 +113,9 @@ export async function bind(root: string, address: string, args: string[], select
|
|
|
112
113
|
...(selectedModel ? { model: selectedModel } : {}),
|
|
113
114
|
...(selectedWake ? { wake: selectedWake } : {}),
|
|
114
115
|
};
|
|
116
|
+
// Legacy Desks use this field as the executable chosen by a later `launch`.
|
|
117
|
+
// Keep it aligned when an existing seat is deliberately re-homed to Pi.
|
|
118
|
+
if (requestedAgent) record.agent = requestedAgent;
|
|
115
119
|
await atomicYaml(paths(root).seatFile(resolved), record);
|
|
116
120
|
console.log(`Bound ${resolved} to ${application}:${nativeAddress}`);
|
|
117
121
|
}
|