@genesislcap/ai-assistant 15.102.1-GENC-2023.1 → 15.103.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.
@@ -18917,7 +18917,7 @@
18917
18917
  },
18918
18918
  {
18919
18919
  "kind": "Content",
18920
- "text": "string | {\n readonly id?: string;\n readonly label: string;\n readonly hint?: string;\n readonly unavailable?: () => string | undefined;\n}"
18920
+ "text": "string | {\n readonly id?: string;\n readonly label: string;\n readonly unavailable?: () => string | undefined;\n}"
18921
18921
  },
18922
18922
  {
18923
18923
  "kind": "Content",
@@ -19948,33 +19948,6 @@
19948
19948
  "endIndex": 2
19949
19949
  }
19950
19950
  },
19951
- {
19952
- "kind": "PropertySignature",
19953
- "canonicalReference": "@genesislcap/ai-assistant!DescribedAction#hint:member",
19954
- "docComment": "/**\n * A sentence worth knowing before picking it. Only on a numbered option, when its widget gave one.\n */\n",
19955
- "excerptTokens": [
19956
- {
19957
- "kind": "Content",
19958
- "text": "readonly hint?: "
19959
- },
19960
- {
19961
- "kind": "Content",
19962
- "text": "string"
19963
- },
19964
- {
19965
- "kind": "Content",
19966
- "text": ";"
19967
- }
19968
- ],
19969
- "isReadonly": true,
19970
- "isOptional": true,
19971
- "releaseTag": "Beta",
19972
- "name": "hint",
19973
- "propertyTypeTokenRange": {
19974
- "startIndex": 1,
19975
- "endIndex": 2
19976
- }
19977
- },
19978
19951
  {
19979
19952
  "kind": "PropertySignature",
19980
19953
  "canonicalReference": "@genesislcap/ai-assistant!DescribedAction#label:member",
@@ -43245,33 +43218,6 @@
43245
43218
  "endIndex": 2
43246
43219
  }
43247
43220
  },
43248
- {
43249
- "kind": "PropertySignature",
43250
- "canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#hint:member",
43251
- "docComment": "/**\n * A short-form option's hint, when its widget gave one: a sentence worth knowing before picking it.\n */\n",
43252
- "excerptTokens": [
43253
- {
43254
- "kind": "Content",
43255
- "text": "readonly hint?: "
43256
- },
43257
- {
43258
- "kind": "Content",
43259
- "text": "string"
43260
- },
43261
- {
43262
- "kind": "Content",
43263
- "text": ";"
43264
- }
43265
- ],
43266
- "isReadonly": true,
43267
- "isOptional": true,
43268
- "releaseTag": "Beta",
43269
- "name": "hint",
43270
- "propertyTypeTokenRange": {
43271
- "startIndex": 1,
43272
- "endIndex": 2
43273
- }
43274
- },
43275
43221
  {
43276
43222
  "kind": "PropertySignature",
43277
43223
  "canonicalReference": "@genesislcap/ai-assistant!SurfaceAction#label:member",
@@ -4707,12 +4707,6 @@ export declare type DecisionOption = string | {
4707
4707
  readonly id?: string;
4708
4708
  /** The option's text, as the person sees it. */
4709
4709
  readonly label: string;
4710
- /**
4711
- * A sentence worth knowing before picking the option, as the person reads it (e.g. a
4712
- * tooltip). Shown with the option to whoever decides it, so the autopilot and the headless CLI
4713
- * choose from more than the bare label. Plain text, static like the label.
4714
- */
4715
- readonly hint?: string;
4716
4710
  /**
4717
4711
  * Why it cannot be chosen right now, or `undefined` when it can — the button's own guard (e.g.
4718
4712
  * "2 validation errors" for a Continue that needs a validated handler). Read fresh every time.
@@ -4985,8 +4979,6 @@ export declare interface DescribedAction {
4985
4979
  readonly name: string;
4986
4980
  /** What the person would read on the button, when it differs from the name. */
4987
4981
  readonly label?: string;
4988
- /** A sentence worth knowing before picking it. Only on a numbered option, when its widget gave one. */
4989
- readonly hint?: string;
4990
4982
  /** What a full-form action does, as its widget wrote it. */
4991
4983
  readonly description?: string;
4992
4984
  /** Whether it can be taken now. */
@@ -10488,8 +10480,6 @@ export declare interface SurfaceAction {
10488
10480
  readonly name: string;
10489
10481
  /** The text the person sees for it, where it has one. */
10490
10482
  readonly label?: string;
10491
- /** A short-form option's hint, when its widget gave one: a sentence worth knowing before picking it. */
10492
- readonly hint?: string;
10493
10483
  /** Whether running it settles the interaction. Every short-form action does. */
10494
10484
  readonly finishes: boolean;
10495
10485
  /** Whether it can be run right now. */
@@ -6649,12 +6649,7 @@ var IdleClock = class {
6649
6649
  // src/state/decision-surface.ts
6650
6650
  var SELECT_ACTION = "select";
6651
6651
  var REPLY_ACTION = "reply";
6652
- var normalise = (option) => typeof option === "string" ? { id: option, label: option } : {
6653
- id: option.id ?? option.label,
6654
- label: option.label,
6655
- hint: option.hint,
6656
- unavailable: option.unavailable
6657
- };
6652
+ var normalise = (option) => typeof option === "string" ? { id: option, label: option } : { id: option.id ?? option.label, label: option.label, unavailable: option.unavailable };
6658
6653
  var GENERIC_UNAVAILABLE = "not available in this state";
6659
6654
  function unavailableReason(guard, ...args) {
6660
6655
  if (!guard) return void 0;
@@ -6696,7 +6691,6 @@ function buildDecisionSurface(spec) {
6696
6691
  return {
6697
6692
  name: o.id,
6698
6693
  label: o.label,
6699
- ...o.hint !== void 0 ? { hint: o.hint } : {},
6700
6694
  finishes: true,
6701
6695
  enabled: unavailable === void 0,
6702
6696
  ...unavailable !== void 0 ? { unavailable } : {}
@@ -12892,10 +12886,7 @@ function renderActions(actions, options = {}) {
12892
12886
  lines.push(` reply({text}) \u2014 answer in your own words${unavailable}`);
12893
12887
  } else {
12894
12888
  numbering.push(action.name);
12895
- const hint = action.hint?.trim();
12896
- lines.push(
12897
- ` [${numbering.length}] "${action.label ?? action.name}"${hint ? ` \u2014 ${hint}` : ""}${unavailable}`
12898
- );
12889
+ lines.push(` [${numbering.length}] "${action.label ?? action.name}"${unavailable}`);
12899
12890
  }
12900
12891
  }
12901
12892
  const allSettle = actions.every((a) => a.description === void 0);
@@ -13030,7 +13021,6 @@ var describeAction = (action, n) => ({
13030
13021
  ...n !== void 0 ? { n } : {},
13031
13022
  name: action.name,
13032
13023
  ...action.label !== void 0 ? { label: action.label } : {},
13033
- ...action.hint !== void 0 ? { hint: action.hint } : {},
13034
13024
  ...action.description !== void 0 ? { description: action.description } : {},
13035
13025
  enabled: action.enabled,
13036
13026
  ...action.unavailable !== void 0 ? { unavailable: action.unavailable } : {},