@genesislcap/ai-assistant 15.103.2 → 15.105.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.
@@ -6550,7 +6550,12 @@ var IdleClock = class {
6550
6550
  // src/state/decision-surface.ts
6551
6551
  var SELECT_ACTION = "select";
6552
6552
  var REPLY_ACTION = "reply";
6553
- var normalise = (option) => typeof option === "string" ? { id: option, label: option } : { id: option.id ?? option.label, label: option.label, unavailable: option.unavailable };
6553
+ var normalise = (option) => typeof option === "string" ? { id: option, label: option } : {
6554
+ id: option.id ?? option.label,
6555
+ label: option.label,
6556
+ hint: option.hint,
6557
+ unavailable: option.unavailable
6558
+ };
6554
6559
  var GENERIC_UNAVAILABLE = "not available in this state";
6555
6560
  function unavailableReason(guard, ...args) {
6556
6561
  if (!guard) return void 0;
@@ -6592,6 +6597,7 @@ function buildDecisionSurface(spec) {
6592
6597
  return {
6593
6598
  name: o.id,
6594
6599
  label: o.label,
6600
+ ...o.hint !== void 0 ? { hint: o.hint } : {},
6595
6601
  finishes: true,
6596
6602
  enabled: unavailable === void 0,
6597
6603
  ...unavailable !== void 0 ? { unavailable } : {}
@@ -12787,7 +12793,10 @@ function renderActions(actions, options = {}) {
12787
12793
  lines.push(` reply({text}) \u2014 answer in your own words${unavailable}`);
12788
12794
  } else {
12789
12795
  numbering.push(action.name);
12790
- lines.push(` [${numbering.length}] "${action.label ?? action.name}"${unavailable}`);
12796
+ const hint = action.hint?.trim();
12797
+ lines.push(
12798
+ ` [${numbering.length}] "${action.label ?? action.name}"${hint ? ` \u2014 ${hint}` : ""}${unavailable}`
12799
+ );
12791
12800
  }
12792
12801
  }
12793
12802
  const allSettle = actions.every((a) => a.description === void 0);
@@ -12922,6 +12931,7 @@ var describeAction = (action, n) => ({
12922
12931
  ...n !== void 0 ? { n } : {},
12923
12932
  name: action.name,
12924
12933
  ...action.label !== void 0 ? { label: action.label } : {},
12934
+ ...action.hint !== void 0 ? { hint: action.hint } : {},
12925
12935
  ...action.description !== void 0 ? { description: action.description } : {},
12926
12936
  enabled: action.enabled,
12927
12937
  ...action.unavailable !== void 0 ? { unavailable: action.unavailable } : {},