@robota-sdk/agent-interface-tui 3.0.0-beta.79 → 3.0.0-beta.82

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
@@ -19,7 +19,7 @@ agent-interface-tui ← this package (contracts only)
19
19
  ├── ITuiConfirmInteraction ← requires confirm UI
20
20
  └── TAnyTuiCommandInteraction ← union of all interaction shapes
21
21
 
22
- agent-transport-tui
22
+ agent-ui-terminal
23
23
  └── useSideEffects ← renders interactions via ITuiCliAdapter
24
24
 
25
25
  agent-command/*
@@ -0,0 +1,22 @@
1
+ //#region src/command-interaction.d.ts
2
+ type TOnMissingArgsAction = 'picker' | 'wizard' | 'confirm';
3
+ interface ITuiPickerItem {
4
+ label: string;
5
+ value: string;
6
+ description?: string;
7
+ }
8
+ interface ITuiCommandInteraction {
9
+ onMissingArgs?: TOnMissingArgsAction;
10
+ }
11
+ interface ITuiPickerInteraction extends ITuiCommandInteraction {
12
+ onMissingArgs: 'picker';
13
+ getItems(): ITuiPickerItem[];
14
+ }
15
+ interface ITuiConfirmInteraction extends ITuiCommandInteraction {
16
+ onMissingArgs: 'confirm';
17
+ message: string;
18
+ }
19
+ type TAnyTuiCommandInteraction = ITuiPickerInteraction | ITuiConfirmInteraction;
20
+ //#endregion
21
+ export type { ITuiCommandInteraction, ITuiConfirmInteraction, ITuiPickerInteraction, ITuiPickerItem, TAnyTuiCommandInteraction, TOnMissingArgsAction };
22
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/command-interaction.ts"],"mappings":";KAAY;UAEK;EACf;EACA;EACA;;UAGe;EACf,gBAAgB;;UAGD,8BAA8B;EAC7C;EACA,YAAY;;UAGG,+BAA+B;EAC9C;EACA;;KAGU,4BAA4B,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/command-interaction.ts"],"mappings":";KAAY,oBAAA;AAAA,UAEK,cAAA;EACf,KAAA;EACA,KAAA;EACA,WAAA;AAAA;AAAA,UAGe,sBAAA;EACf,aAAA,GAAgB,oBAAoB;AAAA;AAAA,UAGrB,qBAAA,SAA8B,sBAAsB;EACnE,aAAA;EACA,QAAA,IAAY,cAAA;AAAA;AAAA,UAGG,sBAAA,SAA+B,sBAAsB;EACpE,aAAA;EACA,OAAA;AAAA;AAAA,KAGU,yBAAA,GAA4B,qBAAA,GAAwB,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/command-interaction.ts"],"mappings":";KAAY;UAEK;EACf;EACA;EACA;;UAGe;EACf,gBAAgB;;UAGD,8BAA8B;EAC7C;EACA,YAAY;;UAGG,+BAA+B;EAC9C;EACA;;KAGU,4BAA4B,wBAAwB"}
package/package.json CHANGED
@@ -1,21 +1,32 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-interface-tui",
3
- "version": "3.0.0-beta.79",
3
+ "version": "3.0.0-beta.82",
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",
7
7
  "types": "dist/node/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": "./dist/node/index.d.ts",
11
10
  "source": "./src/index.ts",
12
11
  "node": {
13
- "import": "./dist/node/index.js",
14
- "require": "./dist/node/index.cjs"
12
+ "import": {
13
+ "types": "./dist/node/index.d.ts",
14
+ "default": "./dist/node/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/node/index.d.cts",
18
+ "default": "./dist/node/index.cjs"
19
+ }
15
20
  },
16
21
  "default": {
17
- "import": "./dist/node/index.js",
18
- "require": "./dist/node/index.cjs"
22
+ "import": {
23
+ "types": "./dist/node/index.d.ts",
24
+ "default": "./dist/node/index.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/node/index.d.cts",
28
+ "default": "./dist/node/index.cjs"
29
+ }
19
30
  }
20
31
  }
21
32
  },
@@ -32,8 +43,8 @@
32
43
  ],
33
44
  "devDependencies": {
34
45
  "rimraf": "^5.0.10",
35
- "tsdown": "^0.22.2",
36
- "typescript": "^5.9.3",
46
+ "tsdown": "^0.22.14",
47
+ "typescript": "^6.0.3",
37
48
  "vitest": "^3.2.6"
38
49
  },
39
50
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
@@ -41,13 +52,16 @@
41
52
  "access": "public"
42
53
  },
43
54
  "private": false,
55
+ "volta": {
56
+ "extends": "../../package.json"
57
+ },
44
58
  "scripts": {
45
- "build": "tsdown",
46
- "build:js": "tsdown --no-dts",
47
- "build:types": "tsdown --dts",
59
+ "build": "rimraf dist && tsdown",
60
+ "build:js": "pnpm run build",
61
+ "build:types": "pnpm run build",
48
62
  "test": "vitest run --passWithNoTests",
49
63
  "test:coverage": "vitest run --coverage --passWithNoTests",
50
- "typecheck": "tsc --noEmit",
64
+ "typecheck": "tsgo --noEmit",
51
65
  "lint": "eslint src/ --ext .ts",
52
66
  "clean": "rimraf dist"
53
67
  }