mobbdev 1.2.33 → 1.2.35
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/args/commands/upload_ai_blame.d.mts +47 -33
- package/dist/args/commands/upload_ai_blame.mjs +304 -218
- package/dist/index.mjs +1479 -1352
- package/package.json +1 -1
|
@@ -56,32 +56,22 @@ declare const PromptItemZ: z.ZodObject<{
|
|
|
56
56
|
name: string;
|
|
57
57
|
parameters: string;
|
|
58
58
|
result: string;
|
|
59
|
-
accepted?: boolean | undefined;
|
|
60
59
|
rawArguments?: string | undefined;
|
|
60
|
+
accepted?: boolean | undefined;
|
|
61
61
|
mcpServer?: string | undefined;
|
|
62
62
|
mcpToolName?: string | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
name: string;
|
|
65
65
|
parameters: string;
|
|
66
66
|
result: string;
|
|
67
|
-
accepted?: boolean | undefined;
|
|
68
67
|
rawArguments?: string | undefined;
|
|
68
|
+
accepted?: boolean | undefined;
|
|
69
69
|
mcpServer?: string | undefined;
|
|
70
70
|
mcpToolName?: string | undefined;
|
|
71
71
|
}>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
74
|
-
tool?: {
|
|
75
|
-
name: string;
|
|
76
|
-
parameters: string;
|
|
77
|
-
result: string;
|
|
78
|
-
accepted?: boolean | undefined;
|
|
79
|
-
rawArguments?: string | undefined;
|
|
80
|
-
mcpServer?: string | undefined;
|
|
81
|
-
mcpToolName?: string | undefined;
|
|
82
|
-
} | undefined;
|
|
83
74
|
date?: Date | undefined;
|
|
84
|
-
text?: string | undefined;
|
|
85
75
|
attachedFiles?: {
|
|
86
76
|
relativePath: string;
|
|
87
77
|
startLine?: number | undefined;
|
|
@@ -90,19 +80,19 @@ declare const PromptItemZ: z.ZodObject<{
|
|
|
90
80
|
inputCount: number;
|
|
91
81
|
outputCount: number;
|
|
92
82
|
} | undefined;
|
|
93
|
-
|
|
94
|
-
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
83
|
+
text?: string | undefined;
|
|
95
84
|
tool?: {
|
|
96
85
|
name: string;
|
|
97
86
|
parameters: string;
|
|
98
87
|
result: string;
|
|
99
|
-
accepted?: boolean | undefined;
|
|
100
88
|
rawArguments?: string | undefined;
|
|
89
|
+
accepted?: boolean | undefined;
|
|
101
90
|
mcpServer?: string | undefined;
|
|
102
91
|
mcpToolName?: string | undefined;
|
|
103
92
|
} | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
104
95
|
date?: Date | undefined;
|
|
105
|
-
text?: string | undefined;
|
|
106
96
|
attachedFiles?: {
|
|
107
97
|
relativePath: string;
|
|
108
98
|
startLine?: number | undefined;
|
|
@@ -111,6 +101,16 @@ declare const PromptItemZ: z.ZodObject<{
|
|
|
111
101
|
inputCount: number;
|
|
112
102
|
outputCount: number;
|
|
113
103
|
} | undefined;
|
|
104
|
+
text?: string | undefined;
|
|
105
|
+
tool?: {
|
|
106
|
+
name: string;
|
|
107
|
+
parameters: string;
|
|
108
|
+
result: string;
|
|
109
|
+
rawArguments?: string | undefined;
|
|
110
|
+
accepted?: boolean | undefined;
|
|
111
|
+
mcpServer?: string | undefined;
|
|
112
|
+
mcpToolName?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
114
|
}>;
|
|
115
115
|
type PromptItem = z.infer<typeof PromptItemZ>;
|
|
116
116
|
declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
@@ -149,32 +149,22 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
|
149
149
|
name: string;
|
|
150
150
|
parameters: string;
|
|
151
151
|
result: string;
|
|
152
|
-
accepted?: boolean | undefined;
|
|
153
152
|
rawArguments?: string | undefined;
|
|
153
|
+
accepted?: boolean | undefined;
|
|
154
154
|
mcpServer?: string | undefined;
|
|
155
155
|
mcpToolName?: string | undefined;
|
|
156
156
|
}, {
|
|
157
157
|
name: string;
|
|
158
158
|
parameters: string;
|
|
159
159
|
result: string;
|
|
160
|
-
accepted?: boolean | undefined;
|
|
161
160
|
rawArguments?: string | undefined;
|
|
161
|
+
accepted?: boolean | undefined;
|
|
162
162
|
mcpServer?: string | undefined;
|
|
163
163
|
mcpToolName?: string | undefined;
|
|
164
164
|
}>>;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
166
|
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
167
|
-
tool?: {
|
|
168
|
-
name: string;
|
|
169
|
-
parameters: string;
|
|
170
|
-
result: string;
|
|
171
|
-
accepted?: boolean | undefined;
|
|
172
|
-
rawArguments?: string | undefined;
|
|
173
|
-
mcpServer?: string | undefined;
|
|
174
|
-
mcpToolName?: string | undefined;
|
|
175
|
-
} | undefined;
|
|
176
167
|
date?: Date | undefined;
|
|
177
|
-
text?: string | undefined;
|
|
178
168
|
attachedFiles?: {
|
|
179
169
|
relativePath: string;
|
|
180
170
|
startLine?: number | undefined;
|
|
@@ -183,19 +173,19 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
|
183
173
|
inputCount: number;
|
|
184
174
|
outputCount: number;
|
|
185
175
|
} | undefined;
|
|
186
|
-
|
|
187
|
-
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
176
|
+
text?: string | undefined;
|
|
188
177
|
tool?: {
|
|
189
178
|
name: string;
|
|
190
179
|
parameters: string;
|
|
191
180
|
result: string;
|
|
192
|
-
accepted?: boolean | undefined;
|
|
193
181
|
rawArguments?: string | undefined;
|
|
182
|
+
accepted?: boolean | undefined;
|
|
194
183
|
mcpServer?: string | undefined;
|
|
195
184
|
mcpToolName?: string | undefined;
|
|
196
185
|
} | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
197
188
|
date?: Date | undefined;
|
|
198
|
-
text?: string | undefined;
|
|
199
189
|
attachedFiles?: {
|
|
200
190
|
relativePath: string;
|
|
201
191
|
startLine?: number | undefined;
|
|
@@ -204,8 +194,32 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
|
204
194
|
inputCount: number;
|
|
205
195
|
outputCount: number;
|
|
206
196
|
} | undefined;
|
|
197
|
+
text?: string | undefined;
|
|
198
|
+
tool?: {
|
|
199
|
+
name: string;
|
|
200
|
+
parameters: string;
|
|
201
|
+
result: string;
|
|
202
|
+
rawArguments?: string | undefined;
|
|
203
|
+
accepted?: boolean | undefined;
|
|
204
|
+
mcpServer?: string | undefined;
|
|
205
|
+
mcpToolName?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
207
|
}>, "many">;
|
|
208
208
|
type PromptItemArray = z.infer<typeof PromptItemArrayZ>;
|
|
209
|
+
/**
|
|
210
|
+
* Gets the normalized GitHub repository URL from the current working directory.
|
|
211
|
+
* Returns null if not in a git repository or if not a GitHub repository.
|
|
212
|
+
*/
|
|
213
|
+
declare function getRepositoryUrl(): Promise<string | null>;
|
|
214
|
+
/**
|
|
215
|
+
* Get system information for tracking inference source.
|
|
216
|
+
* Works cross-platform (Windows, macOS, Linux).
|
|
217
|
+
* Handles errors gracefully for containerized environments where user info may not be available.
|
|
218
|
+
*/
|
|
219
|
+
declare function getSystemInfo(): {
|
|
220
|
+
computerName: string;
|
|
221
|
+
userName: string | undefined;
|
|
222
|
+
};
|
|
209
223
|
type UploadAiBlameOptions = {
|
|
210
224
|
prompt: string[];
|
|
211
225
|
inference: string[];
|
|
@@ -249,4 +263,4 @@ type UploadAiBlameHandlerOptions = {
|
|
|
249
263
|
declare function uploadAiBlameHandler(options: UploadAiBlameHandlerOptions): Promise<void>;
|
|
250
264
|
declare function uploadAiBlameCommandHandler(args: UploadAiBlameOptions): Promise<void>;
|
|
251
265
|
|
|
252
|
-
export { type PromptItem, type PromptItemArray, type UploadAiBlameOptions, type UploadAiBlameResult, uploadAiBlameBuilder, uploadAiBlameCommandHandler, uploadAiBlameHandler, uploadAiBlameHandlerFromExtension };
|
|
266
|
+
export { type PromptItem, type PromptItemArray, type UploadAiBlameOptions, type UploadAiBlameResult, getRepositoryUrl, getSystemInfo, uploadAiBlameBuilder, uploadAiBlameCommandHandler, uploadAiBlameHandler, uploadAiBlameHandlerFromExtension };
|