mobbdev 1.2.1 → 1.2.4
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 +18 -0
- package/dist/args/commands/upload_ai_blame.d.mts +26 -6
- package/dist/args/commands/upload_ai_blame.mjs +3981 -3581
- package/dist/index.mjs +5803 -5445
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -175,6 +175,24 @@ Here is a simple example of a command line that will run Bugsy in your pipeline:
|
|
|
175
175
|
npx mobbdev analyze --ci --scan-file $SAST_RESULTS_FILENAME --repo $CI_PROJECT_URL --ref $CI_COMMIT_REF_NAME --api-key $MOBB_API_KEY
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
+
### Polling Mode
|
|
179
|
+
|
|
180
|
+
By default, Bugsy uses WebSocket connections for real-time status updates during analysis. However, some proxy environments or firewalls may block WebSocket connections. In these cases, you can use the `--polling` flag to use HTTP polling instead:
|
|
181
|
+
|
|
182
|
+
```shell
|
|
183
|
+
npx mobbdev analyze --scan-file report.json --repo https://github.com/org/repo --polling
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**When to use `--polling`:**
|
|
187
|
+
- Your network blocks WebSocket connections (ws:// or wss://)
|
|
188
|
+
- You're behind a corporate proxy that doesn't support WebSocket
|
|
189
|
+
- You experience connection timeouts with the default WebSocket mode
|
|
190
|
+
|
|
191
|
+
**Polling characteristics:**
|
|
192
|
+
- Polling interval: 5 seconds
|
|
193
|
+
- Timeout: 30 minutes
|
|
194
|
+
- Slightly higher latency compared to WebSocket mode, but works in restricted environments
|
|
195
|
+
|
|
178
196
|
## Contribution
|
|
179
197
|
|
|
180
198
|
Install the dependencies and run the tests:
|
|
@@ -21,7 +21,7 @@ type Logger = {
|
|
|
21
21
|
error: (msg: string, data?: unknown) => void;
|
|
22
22
|
};
|
|
23
23
|
declare const PromptItemZ: z.ZodObject<{
|
|
24
|
-
type: z.ZodEnum<["USER_PROMPT", "AI_RESPONSE", "TOOL_EXECUTION", "AI_THINKING"]>;
|
|
24
|
+
type: z.ZodEnum<["USER_PROMPT", "AI_RESPONSE", "TOOL_EXECUTION", "AI_THINKING", "MCP_TOOL_CALL"]>;
|
|
25
25
|
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
26
|
relativePath: z.ZodString;
|
|
27
27
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -50,27 +50,35 @@ declare const PromptItemZ: z.ZodObject<{
|
|
|
50
50
|
result: z.ZodString;
|
|
51
51
|
rawArguments: z.ZodOptional<z.ZodString>;
|
|
52
52
|
accepted: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
mcpServer: z.ZodOptional<z.ZodString>;
|
|
54
|
+
mcpToolName: z.ZodOptional<z.ZodString>;
|
|
53
55
|
}, "strip", z.ZodTypeAny, {
|
|
54
56
|
name: string;
|
|
55
57
|
parameters: string;
|
|
56
58
|
result: string;
|
|
57
59
|
accepted?: boolean | undefined;
|
|
58
60
|
rawArguments?: string | undefined;
|
|
61
|
+
mcpServer?: string | undefined;
|
|
62
|
+
mcpToolName?: string | undefined;
|
|
59
63
|
}, {
|
|
60
64
|
name: string;
|
|
61
65
|
parameters: string;
|
|
62
66
|
result: string;
|
|
63
67
|
accepted?: boolean | undefined;
|
|
64
68
|
rawArguments?: string | undefined;
|
|
69
|
+
mcpServer?: string | undefined;
|
|
70
|
+
mcpToolName?: string | undefined;
|
|
65
71
|
}>>;
|
|
66
72
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
|
|
73
|
+
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
68
74
|
tool?: {
|
|
69
75
|
name: string;
|
|
70
76
|
parameters: string;
|
|
71
77
|
result: string;
|
|
72
78
|
accepted?: boolean | undefined;
|
|
73
79
|
rawArguments?: string | undefined;
|
|
80
|
+
mcpServer?: string | undefined;
|
|
81
|
+
mcpToolName?: string | undefined;
|
|
74
82
|
} | undefined;
|
|
75
83
|
date?: Date | undefined;
|
|
76
84
|
text?: string | undefined;
|
|
@@ -83,13 +91,15 @@ declare const PromptItemZ: z.ZodObject<{
|
|
|
83
91
|
outputCount: number;
|
|
84
92
|
} | undefined;
|
|
85
93
|
}, {
|
|
86
|
-
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
|
|
94
|
+
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
87
95
|
tool?: {
|
|
88
96
|
name: string;
|
|
89
97
|
parameters: string;
|
|
90
98
|
result: string;
|
|
91
99
|
accepted?: boolean | undefined;
|
|
92
100
|
rawArguments?: string | undefined;
|
|
101
|
+
mcpServer?: string | undefined;
|
|
102
|
+
mcpToolName?: string | undefined;
|
|
93
103
|
} | undefined;
|
|
94
104
|
date?: Date | undefined;
|
|
95
105
|
text?: string | undefined;
|
|
@@ -104,7 +114,7 @@ declare const PromptItemZ: z.ZodObject<{
|
|
|
104
114
|
}>;
|
|
105
115
|
type PromptItem = z.infer<typeof PromptItemZ>;
|
|
106
116
|
declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
107
|
-
type: z.ZodEnum<["USER_PROMPT", "AI_RESPONSE", "TOOL_EXECUTION", "AI_THINKING"]>;
|
|
117
|
+
type: z.ZodEnum<["USER_PROMPT", "AI_RESPONSE", "TOOL_EXECUTION", "AI_THINKING", "MCP_TOOL_CALL"]>;
|
|
108
118
|
attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
119
|
relativePath: z.ZodString;
|
|
110
120
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -133,27 +143,35 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
|
133
143
|
result: z.ZodString;
|
|
134
144
|
rawArguments: z.ZodOptional<z.ZodString>;
|
|
135
145
|
accepted: z.ZodOptional<z.ZodBoolean>;
|
|
146
|
+
mcpServer: z.ZodOptional<z.ZodString>;
|
|
147
|
+
mcpToolName: z.ZodOptional<z.ZodString>;
|
|
136
148
|
}, "strip", z.ZodTypeAny, {
|
|
137
149
|
name: string;
|
|
138
150
|
parameters: string;
|
|
139
151
|
result: string;
|
|
140
152
|
accepted?: boolean | undefined;
|
|
141
153
|
rawArguments?: string | undefined;
|
|
154
|
+
mcpServer?: string | undefined;
|
|
155
|
+
mcpToolName?: string | undefined;
|
|
142
156
|
}, {
|
|
143
157
|
name: string;
|
|
144
158
|
parameters: string;
|
|
145
159
|
result: string;
|
|
146
160
|
accepted?: boolean | undefined;
|
|
147
161
|
rawArguments?: string | undefined;
|
|
162
|
+
mcpServer?: string | undefined;
|
|
163
|
+
mcpToolName?: string | undefined;
|
|
148
164
|
}>>;
|
|
149
165
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
-
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
|
|
166
|
+
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
151
167
|
tool?: {
|
|
152
168
|
name: string;
|
|
153
169
|
parameters: string;
|
|
154
170
|
result: string;
|
|
155
171
|
accepted?: boolean | undefined;
|
|
156
172
|
rawArguments?: string | undefined;
|
|
173
|
+
mcpServer?: string | undefined;
|
|
174
|
+
mcpToolName?: string | undefined;
|
|
157
175
|
} | undefined;
|
|
158
176
|
date?: Date | undefined;
|
|
159
177
|
text?: string | undefined;
|
|
@@ -166,13 +184,15 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
|
|
|
166
184
|
outputCount: number;
|
|
167
185
|
} | undefined;
|
|
168
186
|
}, {
|
|
169
|
-
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
|
|
187
|
+
type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING" | "MCP_TOOL_CALL";
|
|
170
188
|
tool?: {
|
|
171
189
|
name: string;
|
|
172
190
|
parameters: string;
|
|
173
191
|
result: string;
|
|
174
192
|
accepted?: boolean | undefined;
|
|
175
193
|
rawArguments?: string | undefined;
|
|
194
|
+
mcpServer?: string | undefined;
|
|
195
|
+
mcpToolName?: string | undefined;
|
|
176
196
|
} | undefined;
|
|
177
197
|
date?: Date | undefined;
|
|
178
198
|
text?: string | undefined;
|