@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 +3 -5
- package/dist/node/index.cjs +0 -1
- package/dist/node/index.d.ts +1 -3
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
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
|
-
###
|
|
47
|
+
### Narrowing
|
|
48
48
|
|
|
49
|
-
|
|
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
|
|
package/dist/node/index.cjs
CHANGED
|
@@ -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;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -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 {
|
|
21
|
+
export type { ITuiCommandInteraction, ITuiConfirmInteraction, ITuiPickerInteraction, ITuiPickerItem, TAnyTuiCommandInteraction, TOnMissingArgsAction };
|
package/dist/node/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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.
|
|
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",
|