@robota-sdk/agent-interface-tui 3.0.0-beta.75 → 3.0.0-beta.76

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/README.md CHANGED
@@ -44,12 +44,10 @@ agent-command/*
44
44
  | `TAnyTuiCommandInteraction` | Union of all interaction variants |
45
45
  | `TOnMissingArgsAction` | `'picker' \| 'wizard' \| 'confirm'` |
46
46
 
47
- ### Type Guards
47
+ ### Narrowing
48
48
 
49
- | Export | Description |
50
- | ---------------------- | ----------------------------------- |
51
- | `isPickerInteraction` | Narrows to `ITuiPickerInteraction` |
52
- | `isConfirmInteraction` | Narrows to `ITuiConfirmInteraction` |
49
+ This package exports no runtime functions. `TAnyTuiCommandInteraction` is a discriminated union —
50
+ narrow it directly on the `onMissingArgs` literal (`if (x.onMissingArgs === 'picker')`).
53
51
 
54
52
  ## Boundaries
55
53
 
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return e.onMissingArgs===`picker`}function t(e){return e.onMissingArgs===`confirm`}exports.isConfirmInteraction=t,exports.isPickerInteraction=e;
@@ -17,7 +17,5 @@ interface ITuiConfirmInteraction extends ITuiCommandInteraction {
17
17
  message: string;
18
18
  }
19
19
  type TAnyTuiCommandInteraction = ITuiPickerInteraction | ITuiConfirmInteraction;
20
- declare function isPickerInteraction(interaction: ITuiCommandInteraction): interaction is ITuiPickerInteraction;
21
- declare function isConfirmInteraction(interaction: ITuiCommandInteraction): interaction is ITuiConfirmInteraction;
22
20
  //#endregion
23
- export { type ITuiCommandInteraction, type ITuiConfirmInteraction, type ITuiPickerInteraction, type ITuiPickerItem, type TAnyTuiCommandInteraction, type TOnMissingArgsAction, isConfirmInteraction, isPickerInteraction };
21
+ export type { ITuiCommandInteraction, ITuiConfirmInteraction, ITuiPickerInteraction, ITuiPickerItem, TAnyTuiCommandInteraction, TOnMissingArgsAction };
@@ -1 +1 @@
1
- function e(e){return e.onMissingArgs===`picker`}function t(e){return e.onMissingArgs===`confirm`}export{t as isConfirmInteraction,e as isPickerInteraction};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-interface-tui",
3
- "version": "3.0.0-beta.75",
3
+ "version": "3.0.0-beta.76",
4
4
  "description": "TUI interaction contract interfaces for the Robota SDK (ITuiPickerItem, ITuiCommandInteraction, ITuiPickerInteraction, ITuiConfirmInteraction)",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.js",