flowviant 0.84.0 → 0.85.0

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/bin/lib/work.mjs +17 -0
  2. package/package.json +1 -1
package/bin/lib/work.mjs CHANGED
@@ -4585,6 +4585,21 @@ export function createWorkManager({
4585
4585
  */
4586
4586
  const doubledKinds = RUNTIMES[rt]?.parse ? null : CLAUDE_TOOL_PROSE_KINDS;
4587
4587
 
4588
+ /**
4589
+ * WHICH BRAIN THIS CONTAINER WAS PINNED TO — the same `brainFor` the tab
4590
+ * lane runs, on the same two job keys, because an agent turn and a
4591
+ * session turn differ in who is watching and in nothing else that a model
4592
+ * name touches. Every guard lives in `brainFor`: a second copy here would
4593
+ * be a second answer to "is this a model we can spell", and the two would
4594
+ * drift the first time one of them learned a new effort.
4595
+ *
4596
+ * Absent stays genuinely absent — an agent nobody pinned produces the
4597
+ * byte-identical argv it produced yesterday, on the machine's own
4598
+ * default. That is also what an OLDER server yields, since it sends
4599
+ * neither key.
4600
+ */
4601
+ const brain = brainFor(job);
4602
+
4588
4603
  let out = '';
4589
4604
  let child = null;
4590
4605
  try {
@@ -4609,6 +4624,8 @@ export function createWorkManager({
4609
4624
  cwd: wt,
4610
4625
  runtime: rt,
4611
4626
  resume,
4627
+ // Present only when the container named one — see brainFor.
4628
+ ...brain,
4612
4629
  streamJson: true,
4613
4630
  answerFromResult: true,
4614
4631
  label: c.cyan('[agent]'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowviant",
3
- "version": "0.84.0",
3
+ "version": "0.85.0",
4
4
  "description": "Run your own coding CLIs as build agents for Flowviant \u2014 Claude Code, Codex or Antigravity, on your own credentials. Holds your sessions, keeps a worktree per tab, and ships branches on your word.",
5
5
  "type": "module",
6
6
  "bin": {