@ftrdotdev/pi-tui 0.7.0 → 0.8.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.
Files changed (2) hide show
  1. package/package.json +10 -10
  2. package/src/config.ts +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ftrdotdev/pi-tui",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "House TUI components and the pi interface extension: themed boxes, a pure box-frame model, and the header/footer/editor/settings/preview chrome",
5
5
  "keywords": [
6
6
  "components",
@@ -53,20 +53,20 @@
53
53
  "typecheck": "tsc --noEmit"
54
54
  },
55
55
  "dependencies": {
56
- "@effect/platform-node": "4.0.0",
57
- "@effect/platform-node-shared": "4.0.0",
58
- "effect": "4.0.0"
56
+ "@effect/platform-node": "4.1.1",
57
+ "@effect/platform-node-shared": "4.1.1",
58
+ "effect": "4.1.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@earendil-works/pi-tui": "1.1.0",
62
- "@effect/tsgo": "0.47.2",
63
- "@effect/vitest": "4.0.0",
61
+ "@earendil-works/pi-tui": "1.4.0",
62
+ "@effect/tsgo": "0.63.0",
63
+ "@effect/vitest": "4.1.1",
64
64
  "@types/bun": "latest",
65
65
  "oxfmt": "^0.63.0",
66
- "oxlint": "1.82.0",
67
- "oxlint-tsgolint": "7.0.2001",
66
+ "oxlint": "1.90.0",
67
+ "oxlint-tsgolint": "7.0.2005",
68
68
  "typescript": "7.0.2",
69
- "vitest": "^4.1.10"
69
+ "vitest": "^5.0.5"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@earendil-works/pi-ai": "*",
package/src/config.ts CHANGED
@@ -12,7 +12,7 @@ const CONFIG_FILE_NAME = "tui.json";
12
12
  const IconModeSchema = Schema.Literals(["auto", "nerd", "ascii"] as const);
13
13
  const SettingsLanguageSchema = Schema.Literals(["en"] as const);
14
14
 
15
- export class TuiConfig extends Schema.Class<TuiConfig>("tui/config/TuiConfig")({
15
+ export const TuiConfig = Schema.Struct({
16
16
  enabled: Schema.Boolean,
17
17
  settingsLanguage: SettingsLanguageSchema,
18
18
  vim: Schema.Boolean,
@@ -44,7 +44,9 @@ export class TuiConfig extends Schema.Class<TuiConfig>("tui/config/TuiConfig")({
44
44
  minAnswerConfidence: Schema.Number,
45
45
  maxCandidates: Schema.Number,
46
46
  }),
47
- }) {}
47
+ });
48
+
49
+ export type TuiConfig = typeof TuiConfig.Type;
48
50
 
49
51
  export type TelemetryConfig = TuiConfig["telemetry"];
50
52