@ngandu/ulicode 0.0.7 → 0.0.9

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/dist/cli.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkRQBOKG6N_cjs = require('./chunk-RQBOKG6N.cjs');
5
- var chunkYCO6YQ32_cjs = require('./chunk-YCO6YQ32.cjs');
5
+ var chunkMYJC6M7W_cjs = require('./chunk-MYJC6M7W.cjs');
6
6
  var chunkPVO3XD4K_cjs = require('./chunk-PVO3XD4K.cjs');
7
7
  var util = require('util');
8
8
 
@@ -300,16 +300,16 @@ async function tuiMain() {
300
300
  } else {
301
301
  const settings = chunkPVO3XD4K_cjs.loadSettingsCached();
302
302
  const themePref = settings.preferences.theme;
303
- themeMode = themePref === "dark" || themePref === "light" ? themePref : await chunkYCO6YQ32_cjs.detectTerminalTheme();
303
+ themeMode = themePref === "dark" || themePref === "light" ? themePref : await chunkMYJC6M7W_cjs.detectTerminalTheme();
304
304
  }
305
- chunkYCO6YQ32_cjs.applyThemeMode(themeMode);
306
- const tui = new chunkYCO6YQ32_cjs.MastraTUI({
305
+ chunkMYJC6M7W_cjs.applyThemeMode(themeMode);
306
+ const tui = new chunkMYJC6M7W_cjs.MastraTUI({
307
307
  harness,
308
308
  hookManager,
309
309
  authStorage,
310
310
  mcpManager,
311
311
  appName: "Ulicode",
312
- version: chunkYCO6YQ32_cjs.getCurrentVersion(),
312
+ version: chunkMYJC6M7W_cjs.getCurrentVersion(),
313
313
  inlineQuestions: true
314
314
  });
315
315
  tui.run().catch((error) => {
@@ -361,7 +361,7 @@ To switch back to LibSQL:
361
361
  process.exit(1);
362
362
  }
363
363
  if (hasVersionFlag(process.argv)) {
364
- console.info(chunkYCO6YQ32_cjs.getCurrentVersion());
364
+ console.info(chunkMYJC6M7W_cjs.getCurrentVersion());
365
365
  process.exit(0);
366
366
  }
367
367
  var main = hasHeadlessFlag(process.argv) ? headlessMain : tuiMain;
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createMastraCode } from './chunk-VUKAVQKO.js';
3
- import { getCurrentVersion, detectTerminalTheme, applyThemeMode, MastraTUI } from './chunk-MBFIA2QL.js';
3
+ import { getCurrentVersion, detectTerminalTheme, applyThemeMode, MastraTUI } from './chunk-SVO3SOLQ.js';
4
4
  import { releaseAllThreadLocks, loadSettingsCached, setupDebugLogging } from './chunk-ZYL5HA65.js';
5
5
  import { parseArgs } from 'util';
6
6
 
package/dist/index.d.cts CHANGED
@@ -67,53 +67,111 @@ declare const stateSchema: z.ZodObject<{
67
67
  reflectorModelId: z.ZodDefault<z.ZodString>;
68
68
  observationThreshold: z.ZodDefault<z.ZodNumber>;
69
69
  reflectionThreshold: z.ZodDefault<z.ZodNumber>;
70
- omScope: z.ZodOptional<z.ZodEnum<{
71
- thread: "thread";
72
- resource: "resource";
73
- }>>;
74
- thinkingLevel: z.ZodDefault<z.ZodEnum<{
75
- off: "off";
76
- low: "low";
77
- medium: "medium";
78
- high: "high";
79
- xhigh: "xhigh";
80
- }>>;
70
+ omScope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
71
+ thinkingLevel: z.ZodDefault<z.ZodEnum<["off", "low", "medium", "high", "xhigh"]>>;
81
72
  yolo: z.ZodDefault<z.ZodBoolean>;
82
73
  permissionRules: z.ZodDefault<z.ZodObject<{
83
- categories: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
84
- allow: "allow";
85
- ask: "ask";
86
- deny: "deny";
87
- }>>>;
88
- tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
89
- allow: "allow";
90
- ask: "ask";
91
- deny: "deny";
92
- }>>>;
93
- }, z.core.$strip>>;
94
- smartEditing: z.ZodDefault<z.ZodBoolean>;
95
- notifications: z.ZodDefault<z.ZodEnum<{
96
- off: "off";
97
- bell: "bell";
98
- system: "system";
99
- both: "both";
74
+ categories: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["allow", "ask", "deny"]>>>;
75
+ tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["allow", "ask", "deny"]>>>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ categories: Record<string, "allow" | "ask" | "deny">;
78
+ tools: Record<string, "allow" | "ask" | "deny">;
79
+ }, {
80
+ categories?: Record<string, "allow" | "ask" | "deny"> | undefined;
81
+ tools?: Record<string, "allow" | "ask" | "deny"> | undefined;
100
82
  }>>;
83
+ smartEditing: z.ZodDefault<z.ZodBoolean>;
84
+ notifications: z.ZodDefault<z.ZodEnum<["bell", "system", "both", "off"]>>;
101
85
  tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
102
86
  content: z.ZodString;
103
- status: z.ZodEnum<{
104
- pending: "pending";
105
- in_progress: "in_progress";
106
- completed: "completed";
107
- }>;
87
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
108
88
  activeForm: z.ZodString;
109
- }, z.core.$strip>>>;
110
- sandboxAllowedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ status: "pending" | "in_progress" | "completed";
91
+ content: string;
92
+ activeForm: string;
93
+ }, {
94
+ status: "pending" | "in_progress" | "completed";
95
+ content: string;
96
+ activeForm: string;
97
+ }>, "many">>;
98
+ sandboxAllowedPaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
111
99
  activePlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
112
100
  title: z.ZodString;
113
101
  plan: z.ZodString;
114
102
  approvedAt: z.ZodString;
115
- }, z.core.$strip>>>;
116
- }, z.core.$strip>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ title: string;
105
+ plan: string;
106
+ approvedAt: string;
107
+ }, {
108
+ title: string;
109
+ plan: string;
110
+ approvedAt: string;
111
+ }>>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ currentModelId: string;
114
+ observerModelId: string;
115
+ reflectorModelId: string;
116
+ observationThreshold: number;
117
+ reflectionThreshold: number;
118
+ thinkingLevel: "off" | "low" | "medium" | "high" | "xhigh";
119
+ yolo: boolean;
120
+ permissionRules: {
121
+ categories: Record<string, "allow" | "ask" | "deny">;
122
+ tools: Record<string, "allow" | "ask" | "deny">;
123
+ };
124
+ smartEditing: boolean;
125
+ notifications: "off" | "bell" | "system" | "both";
126
+ tasks: {
127
+ status: "pending" | "in_progress" | "completed";
128
+ content: string;
129
+ activeForm: string;
130
+ }[];
131
+ sandboxAllowedPaths: string[];
132
+ activePlan: {
133
+ title: string;
134
+ plan: string;
135
+ approvedAt: string;
136
+ } | null;
137
+ projectPath?: string | undefined;
138
+ projectName?: string | undefined;
139
+ gitBranch?: string | undefined;
140
+ lastCommand?: string | undefined;
141
+ subagentModelId?: string | undefined;
142
+ omScope?: "thread" | "resource" | undefined;
143
+ }, {
144
+ projectPath?: string | undefined;
145
+ projectName?: string | undefined;
146
+ gitBranch?: string | undefined;
147
+ lastCommand?: string | undefined;
148
+ currentModelId?: string | undefined;
149
+ subagentModelId?: string | undefined;
150
+ observerModelId?: string | undefined;
151
+ reflectorModelId?: string | undefined;
152
+ observationThreshold?: number | undefined;
153
+ reflectionThreshold?: number | undefined;
154
+ omScope?: "thread" | "resource" | undefined;
155
+ thinkingLevel?: "off" | "low" | "medium" | "high" | "xhigh" | undefined;
156
+ yolo?: boolean | undefined;
157
+ permissionRules?: {
158
+ categories?: Record<string, "allow" | "ask" | "deny"> | undefined;
159
+ tools?: Record<string, "allow" | "ask" | "deny"> | undefined;
160
+ } | undefined;
161
+ smartEditing?: boolean | undefined;
162
+ notifications?: "off" | "bell" | "system" | "both" | undefined;
163
+ tasks?: {
164
+ status: "pending" | "in_progress" | "completed";
165
+ content: string;
166
+ activeForm: string;
167
+ }[] | undefined;
168
+ sandboxAllowedPaths?: string[] | undefined;
169
+ activePlan?: {
170
+ title: string;
171
+ plan: string;
172
+ approvedAt: string;
173
+ } | null | undefined;
174
+ }>;
117
175
  type MastraCodeState = z.infer<typeof stateSchema>;
118
176
 
119
177
  interface MastraCodeConfig {
package/dist/index.d.ts CHANGED
@@ -67,53 +67,111 @@ declare const stateSchema: z.ZodObject<{
67
67
  reflectorModelId: z.ZodDefault<z.ZodString>;
68
68
  observationThreshold: z.ZodDefault<z.ZodNumber>;
69
69
  reflectionThreshold: z.ZodDefault<z.ZodNumber>;
70
- omScope: z.ZodOptional<z.ZodEnum<{
71
- thread: "thread";
72
- resource: "resource";
73
- }>>;
74
- thinkingLevel: z.ZodDefault<z.ZodEnum<{
75
- off: "off";
76
- low: "low";
77
- medium: "medium";
78
- high: "high";
79
- xhigh: "xhigh";
80
- }>>;
70
+ omScope: z.ZodOptional<z.ZodEnum<["thread", "resource"]>>;
71
+ thinkingLevel: z.ZodDefault<z.ZodEnum<["off", "low", "medium", "high", "xhigh"]>>;
81
72
  yolo: z.ZodDefault<z.ZodBoolean>;
82
73
  permissionRules: z.ZodDefault<z.ZodObject<{
83
- categories: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
84
- allow: "allow";
85
- ask: "ask";
86
- deny: "deny";
87
- }>>>;
88
- tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<{
89
- allow: "allow";
90
- ask: "ask";
91
- deny: "deny";
92
- }>>>;
93
- }, z.core.$strip>>;
94
- smartEditing: z.ZodDefault<z.ZodBoolean>;
95
- notifications: z.ZodDefault<z.ZodEnum<{
96
- off: "off";
97
- bell: "bell";
98
- system: "system";
99
- both: "both";
74
+ categories: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["allow", "ask", "deny"]>>>;
75
+ tools: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["allow", "ask", "deny"]>>>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ categories: Record<string, "allow" | "ask" | "deny">;
78
+ tools: Record<string, "allow" | "ask" | "deny">;
79
+ }, {
80
+ categories?: Record<string, "allow" | "ask" | "deny"> | undefined;
81
+ tools?: Record<string, "allow" | "ask" | "deny"> | undefined;
100
82
  }>>;
83
+ smartEditing: z.ZodDefault<z.ZodBoolean>;
84
+ notifications: z.ZodDefault<z.ZodEnum<["bell", "system", "both", "off"]>>;
101
85
  tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
102
86
  content: z.ZodString;
103
- status: z.ZodEnum<{
104
- pending: "pending";
105
- in_progress: "in_progress";
106
- completed: "completed";
107
- }>;
87
+ status: z.ZodEnum<["pending", "in_progress", "completed"]>;
108
88
  activeForm: z.ZodString;
109
- }, z.core.$strip>>>;
110
- sandboxAllowedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ status: "pending" | "in_progress" | "completed";
91
+ content: string;
92
+ activeForm: string;
93
+ }, {
94
+ status: "pending" | "in_progress" | "completed";
95
+ content: string;
96
+ activeForm: string;
97
+ }>, "many">>;
98
+ sandboxAllowedPaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
111
99
  activePlan: z.ZodDefault<z.ZodNullable<z.ZodObject<{
112
100
  title: z.ZodString;
113
101
  plan: z.ZodString;
114
102
  approvedAt: z.ZodString;
115
- }, z.core.$strip>>>;
116
- }, z.core.$strip>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ title: string;
105
+ plan: string;
106
+ approvedAt: string;
107
+ }, {
108
+ title: string;
109
+ plan: string;
110
+ approvedAt: string;
111
+ }>>>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ currentModelId: string;
114
+ observerModelId: string;
115
+ reflectorModelId: string;
116
+ observationThreshold: number;
117
+ reflectionThreshold: number;
118
+ thinkingLevel: "off" | "low" | "medium" | "high" | "xhigh";
119
+ yolo: boolean;
120
+ permissionRules: {
121
+ categories: Record<string, "allow" | "ask" | "deny">;
122
+ tools: Record<string, "allow" | "ask" | "deny">;
123
+ };
124
+ smartEditing: boolean;
125
+ notifications: "off" | "bell" | "system" | "both";
126
+ tasks: {
127
+ status: "pending" | "in_progress" | "completed";
128
+ content: string;
129
+ activeForm: string;
130
+ }[];
131
+ sandboxAllowedPaths: string[];
132
+ activePlan: {
133
+ title: string;
134
+ plan: string;
135
+ approvedAt: string;
136
+ } | null;
137
+ projectPath?: string | undefined;
138
+ projectName?: string | undefined;
139
+ gitBranch?: string | undefined;
140
+ lastCommand?: string | undefined;
141
+ subagentModelId?: string | undefined;
142
+ omScope?: "thread" | "resource" | undefined;
143
+ }, {
144
+ projectPath?: string | undefined;
145
+ projectName?: string | undefined;
146
+ gitBranch?: string | undefined;
147
+ lastCommand?: string | undefined;
148
+ currentModelId?: string | undefined;
149
+ subagentModelId?: string | undefined;
150
+ observerModelId?: string | undefined;
151
+ reflectorModelId?: string | undefined;
152
+ observationThreshold?: number | undefined;
153
+ reflectionThreshold?: number | undefined;
154
+ omScope?: "thread" | "resource" | undefined;
155
+ thinkingLevel?: "off" | "low" | "medium" | "high" | "xhigh" | undefined;
156
+ yolo?: boolean | undefined;
157
+ permissionRules?: {
158
+ categories?: Record<string, "allow" | "ask" | "deny"> | undefined;
159
+ tools?: Record<string, "allow" | "ask" | "deny"> | undefined;
160
+ } | undefined;
161
+ smartEditing?: boolean | undefined;
162
+ notifications?: "off" | "bell" | "system" | "both" | undefined;
163
+ tasks?: {
164
+ status: "pending" | "in_progress" | "completed";
165
+ content: string;
166
+ activeForm: string;
167
+ }[] | undefined;
168
+ sandboxAllowedPaths?: string[] | undefined;
169
+ activePlan?: {
170
+ title: string;
171
+ plan: string;
172
+ approvedAt: string;
173
+ } | null | undefined;
174
+ }>;
117
175
  type MastraCodeState = z.infer<typeof stateSchema>;
118
176
 
119
177
  interface MastraCodeConfig {
package/dist/tui.cjs CHANGED
@@ -1,76 +1,76 @@
1
1
  'use strict';
2
2
 
3
- var chunkYCO6YQ32_cjs = require('./chunk-YCO6YQ32.cjs');
3
+ var chunkMYJC6M7W_cjs = require('./chunk-MYJC6M7W.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "AssistantMessageComponent", {
8
8
  enumerable: true,
9
- get: function () { return chunkYCO6YQ32_cjs.AssistantMessageComponent; }
9
+ get: function () { return chunkMYJC6M7W_cjs.AssistantMessageComponent; }
10
10
  });
11
11
  Object.defineProperty(exports, "LoginDialogComponent", {
12
12
  enumerable: true,
13
- get: function () { return chunkYCO6YQ32_cjs.LoginDialogComponent; }
13
+ get: function () { return chunkMYJC6M7W_cjs.LoginDialogComponent; }
14
14
  });
15
15
  Object.defineProperty(exports, "LoginSelectorComponent", {
16
16
  enumerable: true,
17
- get: function () { return chunkYCO6YQ32_cjs.LoginSelectorComponent; }
17
+ get: function () { return chunkMYJC6M7W_cjs.LoginSelectorComponent; }
18
18
  });
19
19
  Object.defineProperty(exports, "MastraTUI", {
20
20
  enumerable: true,
21
- get: function () { return chunkYCO6YQ32_cjs.MastraTUI; }
21
+ get: function () { return chunkMYJC6M7W_cjs.MastraTUI; }
22
22
  });
23
23
  Object.defineProperty(exports, "ModelSelectorComponent", {
24
24
  enumerable: true,
25
- get: function () { return chunkYCO6YQ32_cjs.ModelSelectorComponent; }
25
+ get: function () { return chunkMYJC6M7W_cjs.ModelSelectorComponent; }
26
26
  });
27
27
  Object.defineProperty(exports, "OMProgressComponent", {
28
28
  enumerable: true,
29
- get: function () { return chunkYCO6YQ32_cjs.OMProgressComponent; }
29
+ get: function () { return chunkMYJC6M7W_cjs.OMProgressComponent; }
30
30
  });
31
31
  Object.defineProperty(exports, "ToolExecutionComponentEnhanced", {
32
32
  enumerable: true,
33
- get: function () { return chunkYCO6YQ32_cjs.ToolExecutionComponentEnhanced; }
33
+ get: function () { return chunkMYJC6M7W_cjs.ToolExecutionComponentEnhanced; }
34
34
  });
35
35
  Object.defineProperty(exports, "UserMessageComponent", {
36
36
  enumerable: true,
37
- get: function () { return chunkYCO6YQ32_cjs.UserMessageComponent; }
37
+ get: function () { return chunkMYJC6M7W_cjs.UserMessageComponent; }
38
38
  });
39
39
  Object.defineProperty(exports, "applyThemeMode", {
40
40
  enumerable: true,
41
- get: function () { return chunkYCO6YQ32_cjs.applyThemeMode; }
41
+ get: function () { return chunkMYJC6M7W_cjs.applyThemeMode; }
42
42
  });
43
43
  Object.defineProperty(exports, "createTUIState", {
44
44
  enumerable: true,
45
- get: function () { return chunkYCO6YQ32_cjs.createTUIState; }
45
+ get: function () { return chunkMYJC6M7W_cjs.createTUIState; }
46
46
  });
47
47
  Object.defineProperty(exports, "formatOMStatus", {
48
48
  enumerable: true,
49
- get: function () { return chunkYCO6YQ32_cjs.formatOMStatus; }
49
+ get: function () { return chunkMYJC6M7W_cjs.formatOMStatus; }
50
50
  });
51
51
  Object.defineProperty(exports, "getEditorTheme", {
52
52
  enumerable: true,
53
- get: function () { return chunkYCO6YQ32_cjs.getEditorTheme; }
53
+ get: function () { return chunkMYJC6M7W_cjs.getEditorTheme; }
54
54
  });
55
55
  Object.defineProperty(exports, "getMarkdownTheme", {
56
56
  enumerable: true,
57
- get: function () { return chunkYCO6YQ32_cjs.getMarkdownTheme; }
57
+ get: function () { return chunkMYJC6M7W_cjs.getMarkdownTheme; }
58
58
  });
59
59
  Object.defineProperty(exports, "getThemeMode", {
60
60
  enumerable: true,
61
- get: function () { return chunkYCO6YQ32_cjs.getThemeMode; }
61
+ get: function () { return chunkMYJC6M7W_cjs.getThemeMode; }
62
62
  });
63
63
  Object.defineProperty(exports, "mastra", {
64
64
  enumerable: true,
65
- get: function () { return chunkYCO6YQ32_cjs.mastra; }
65
+ get: function () { return chunkMYJC6M7W_cjs.mastra; }
66
66
  });
67
67
  Object.defineProperty(exports, "mastraBrand", {
68
68
  enumerable: true,
69
- get: function () { return chunkYCO6YQ32_cjs.mastraBrand; }
69
+ get: function () { return chunkMYJC6M7W_cjs.mastraBrand; }
70
70
  });
71
71
  Object.defineProperty(exports, "theme", {
72
72
  enumerable: true,
73
- get: function () { return chunkYCO6YQ32_cjs.theme; }
73
+ get: function () { return chunkMYJC6M7W_cjs.theme; }
74
74
  });
75
75
  //# sourceMappingURL=tui.cjs.map
76
76
  //# sourceMappingURL=tui.cjs.map
package/dist/tui.js CHANGED
@@ -1,3 +1,3 @@
1
- export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, applyThemeMode, createTUIState, formatOMStatus, getEditorTheme, getMarkdownTheme, getThemeMode, mastra, mastraBrand, theme } from './chunk-MBFIA2QL.js';
1
+ export { AssistantMessageComponent, LoginDialogComponent, LoginSelectorComponent, MastraTUI, ModelSelectorComponent, OMProgressComponent, ToolExecutionComponentEnhanced, UserMessageComponent, applyThemeMode, createTUIState, formatOMStatus, getEditorTheme, getMarkdownTheme, getThemeMode, mastra, mastraBrand, theme } from './chunk-SVO3SOLQ.js';
2
2
  //# sourceMappingURL=tui.js.map
3
3
  //# sourceMappingURL=tui.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngandu/ulicode",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -54,7 +54,7 @@
54
54
  "@ai-sdk/anthropic": "3.0.58",
55
55
  "@ai-sdk/openai": "3.0.41",
56
56
  "@ast-grep/napi": "0.41.1",
57
- "@mariozechner/pi-tui": "0.58.1",
57
+ "@mariozechner/pi-tui": "0.58.3",
58
58
  "@mastra/core": "1.13.2",
59
59
  "@mastra/libsql": "1.7.0",
60
60
  "@mastra/mcp": "1.2.1",
@@ -75,7 +75,7 @@
75
75
  "typescript-language-server": "^5.1.3",
76
76
  "vscode-jsonrpc": "8.2.1",
77
77
  "vscode-languageserver-protocol": "3.17.5",
78
- "zod": "^4.0.0"
78
+ "zod": "^3.25.76"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@eslint/js": "10.0.1",