@cabane/companion 0.6.65 → 0.6.66

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/dist/cli.js CHANGED
@@ -7254,14 +7254,7 @@ function createSkipState() {
7254
7254
  return { skipped: false, reason: null };
7255
7255
  }
7256
7256
  function createAskState() {
7257
- return {
7258
- targetUserId: null,
7259
- question: null,
7260
- headline: null,
7261
- options: null,
7262
- questions: null,
7263
- order: null
7264
- };
7257
+ return { targetUserId: null, question: null, headline: null, options: null, questions: null };
7265
7258
  }
7266
7259
  function createWakeState() {
7267
7260
  return { afterSeconds: null, at: null, note: null, cancelled: false };
@@ -7407,7 +7400,6 @@ function createTurnControlMcpServer(sendState, skipState, askState, subAgentCrea
7407
7400
  };
7408
7401
  }
7409
7402
  askState.targetUserId = args.targetUserId;
7410
- askState.order = controlOrder?.next() ?? null;
7411
7403
  if (hasArray) {
7412
7404
  askState.questions = args.questions;
7413
7405
  askState.question = null;
@@ -7983,10 +7975,15 @@ var TurnCommitter = class {
7983
7975
  }
7984
7976
  // CT1281: the order the control tools were CALLED, for the addressed rows the
7985
7977
  // server writes from this one commit. It reports a position only for an intent
7986
- // that actually made it into the commit — an ask whose payload was incomplete,
7987
- // or a self-send the committer stripped, contributes no row and so has no place
7988
- // in the line. An intent with no recorded call (the runtime's auto-declared
7989
- // reply) is deliberately absent: the server sorts it last, which is what it is.
7978
+ // that actually made it into the commit — a self-send the committer stripped
7979
+ // contributes no row and so has no place in the line. An intent with no
7980
+ // recorded call (the runtime's auto-declared reply) is deliberately absent, and
7981
+ // the server sorts it after every recorded one it binds the turn's closing
7982
+ // words.
7983
+ //
7984
+ // The ask is absent by design, not by omission: its carrier queues last among
7985
+ // the turn's rows however early the tool fired, so there is no position to
7986
+ // report.
7990
7987
  orderField(fields) {
7991
7988
  const order = {};
7992
7989
  const replyOrder = this.deps.replyState.order;
@@ -7994,9 +7991,6 @@ var TurnCommitter = class {
7994
7991
  if (fields.dispatch !== void 0 && this.deps.sendState.order !== null) {
7995
7992
  order.send = this.deps.sendState.order;
7996
7993
  }
7997
- if (fields.ask !== void 0 && this.deps.askState.order !== null) {
7998
- order.ask = this.deps.askState.order;
7999
- }
8000
7994
  return Object.keys(order).length > 0 ? { turnControlOrder: order } : {};
8001
7995
  }
8002
7996
  // The declared reply: explicit `reply_to` first, else the runtime's own
@@ -8687,7 +8681,6 @@ ${reason}`,
8687
8681
  );
8688
8682
  if (intent.ask) {
8689
8683
  askState.targetUserId = intent.ask.targetUserId;
8690
- askState.order = intent.askOrder ?? null;
8691
8684
  if (intent.ask.questions && intent.ask.questions.length > 0) {
8692
8685
  askState.questions = intent.ask.questions;
8693
8686
  askState.question = null;
package/dist/runtime.js CHANGED
@@ -6753,14 +6753,7 @@ function createSkipState() {
6753
6753
  return { skipped: false, reason: null };
6754
6754
  }
6755
6755
  function createAskState() {
6756
- return {
6757
- targetUserId: null,
6758
- question: null,
6759
- headline: null,
6760
- options: null,
6761
- questions: null,
6762
- order: null
6763
- };
6756
+ return { targetUserId: null, question: null, headline: null, options: null, questions: null };
6764
6757
  }
6765
6758
  function createWakeState() {
6766
6759
  return { afterSeconds: null, at: null, note: null, cancelled: false };
@@ -6906,7 +6899,6 @@ function createTurnControlMcpServer(sendState, skipState, askState, subAgentCrea
6906
6899
  };
6907
6900
  }
6908
6901
  askState.targetUserId = args.targetUserId;
6909
- askState.order = controlOrder?.next() ?? null;
6910
6902
  if (hasArray) {
6911
6903
  askState.questions = args.questions;
6912
6904
  askState.question = null;
@@ -7482,10 +7474,15 @@ var TurnCommitter = class {
7482
7474
  }
7483
7475
  // CT1281: the order the control tools were CALLED, for the addressed rows the
7484
7476
  // server writes from this one commit. It reports a position only for an intent
7485
- // that actually made it into the commit — an ask whose payload was incomplete,
7486
- // or a self-send the committer stripped, contributes no row and so has no place
7487
- // in the line. An intent with no recorded call (the runtime's auto-declared
7488
- // reply) is deliberately absent: the server sorts it last, which is what it is.
7477
+ // that actually made it into the commit — a self-send the committer stripped
7478
+ // contributes no row and so has no place in the line. An intent with no
7479
+ // recorded call (the runtime's auto-declared reply) is deliberately absent, and
7480
+ // the server sorts it after every recorded one it binds the turn's closing
7481
+ // words.
7482
+ //
7483
+ // The ask is absent by design, not by omission: its carrier queues last among
7484
+ // the turn's rows however early the tool fired, so there is no position to
7485
+ // report.
7489
7486
  orderField(fields) {
7490
7487
  const order = {};
7491
7488
  const replyOrder = this.deps.replyState.order;
@@ -7493,9 +7490,6 @@ var TurnCommitter = class {
7493
7490
  if (fields.dispatch !== void 0 && this.deps.sendState.order !== null) {
7494
7491
  order.send = this.deps.sendState.order;
7495
7492
  }
7496
- if (fields.ask !== void 0 && this.deps.askState.order !== null) {
7497
- order.ask = this.deps.askState.order;
7498
- }
7499
7493
  return Object.keys(order).length > 0 ? { turnControlOrder: order } : {};
7500
7494
  }
7501
7495
  // The declared reply: explicit `reply_to` first, else the runtime's own
@@ -8186,7 +8180,6 @@ ${reason}`,
8186
8180
  );
8187
8181
  if (intent.ask) {
8188
8182
  askState.targetUserId = intent.ask.targetUserId;
8189
- askState.order = intent.askOrder ?? null;
8190
8183
  if (intent.ask.questions && intent.ask.questions.length > 0) {
8191
8184
  askState.questions = intent.ask.questions;
8192
8185
  askState.question = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabane/companion",
3
- "version": "0.6.65",
3
+ "version": "0.6.66",
4
4
  "type": "module",
5
5
  "description": "The Cabane Companion (headless): connect a coding agent on your machine to your Cabane workspace as a responder — drive work against your own codebase, files, and MCP servers without putting any of it in Cabane.",
6
6
  "license": "UNLICENSED",