mobbdev 1.1.11 → 1.1.12

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.
@@ -51,18 +51,26 @@ declare const PromptItemZ: z.ZodObject<{
51
51
  name: string;
52
52
  parameters: string;
53
53
  result: string;
54
- rawArguments?: string | undefined;
55
54
  accepted?: boolean | undefined;
55
+ rawArguments?: string | undefined;
56
56
  }, {
57
57
  name: string;
58
58
  parameters: string;
59
59
  result: string;
60
- rawArguments?: string | undefined;
61
60
  accepted?: boolean | undefined;
61
+ rawArguments?: string | undefined;
62
62
  }>>;
63
63
  }, "strip", z.ZodTypeAny, {
64
64
  type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
65
+ tool?: {
66
+ name: string;
67
+ parameters: string;
68
+ result: string;
69
+ accepted?: boolean | undefined;
70
+ rawArguments?: string | undefined;
71
+ } | undefined;
65
72
  date?: Date | undefined;
73
+ text?: string | undefined;
66
74
  attachedFiles?: {
67
75
  relativePath: string;
68
76
  startLine?: number | undefined;
@@ -71,17 +79,17 @@ declare const PromptItemZ: z.ZodObject<{
71
79
  inputCount: number;
72
80
  outputCount: number;
73
81
  } | undefined;
74
- text?: string | undefined;
82
+ }, {
83
+ type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
75
84
  tool?: {
76
85
  name: string;
77
86
  parameters: string;
78
87
  result: string;
79
- rawArguments?: string | undefined;
80
88
  accepted?: boolean | undefined;
89
+ rawArguments?: string | undefined;
81
90
  } | undefined;
82
- }, {
83
- type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
84
91
  date?: Date | undefined;
92
+ text?: string | undefined;
85
93
  attachedFiles?: {
86
94
  relativePath: string;
87
95
  startLine?: number | undefined;
@@ -90,14 +98,6 @@ declare const PromptItemZ: z.ZodObject<{
90
98
  inputCount: number;
91
99
  outputCount: number;
92
100
  } | undefined;
93
- text?: string | undefined;
94
- tool?: {
95
- name: string;
96
- parameters: string;
97
- result: string;
98
- rawArguments?: string | undefined;
99
- accepted?: boolean | undefined;
100
- } | undefined;
101
101
  }>;
102
102
  type PromptItem = z.infer<typeof PromptItemZ>;
103
103
  declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
@@ -134,18 +134,26 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
134
134
  name: string;
135
135
  parameters: string;
136
136
  result: string;
137
- rawArguments?: string | undefined;
138
137
  accepted?: boolean | undefined;
138
+ rawArguments?: string | undefined;
139
139
  }, {
140
140
  name: string;
141
141
  parameters: string;
142
142
  result: string;
143
- rawArguments?: string | undefined;
144
143
  accepted?: boolean | undefined;
144
+ rawArguments?: string | undefined;
145
145
  }>>;
146
146
  }, "strip", z.ZodTypeAny, {
147
147
  type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
148
+ tool?: {
149
+ name: string;
150
+ parameters: string;
151
+ result: string;
152
+ accepted?: boolean | undefined;
153
+ rawArguments?: string | undefined;
154
+ } | undefined;
148
155
  date?: Date | undefined;
156
+ text?: string | undefined;
149
157
  attachedFiles?: {
150
158
  relativePath: string;
151
159
  startLine?: number | undefined;
@@ -154,17 +162,17 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
154
162
  inputCount: number;
155
163
  outputCount: number;
156
164
  } | undefined;
157
- text?: string | undefined;
165
+ }, {
166
+ type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
158
167
  tool?: {
159
168
  name: string;
160
169
  parameters: string;
161
170
  result: string;
162
- rawArguments?: string | undefined;
163
171
  accepted?: boolean | undefined;
172
+ rawArguments?: string | undefined;
164
173
  } | undefined;
165
- }, {
166
- type: "USER_PROMPT" | "AI_RESPONSE" | "TOOL_EXECUTION" | "AI_THINKING";
167
174
  date?: Date | undefined;
175
+ text?: string | undefined;
168
176
  attachedFiles?: {
169
177
  relativePath: string;
170
178
  startLine?: number | undefined;
@@ -173,14 +181,6 @@ declare const PromptItemArrayZ: z.ZodArray<z.ZodObject<{
173
181
  inputCount: number;
174
182
  outputCount: number;
175
183
  } | undefined;
176
- text?: string | undefined;
177
- tool?: {
178
- name: string;
179
- parameters: string;
180
- result: string;
181
- rawArguments?: string | undefined;
182
- accepted?: boolean | undefined;
183
- } | undefined;
184
184
  }>, "many">;
185
185
  type PromptItemArray = z.infer<typeof PromptItemArrayZ>;
186
186
  type UploadAiBlameOptions = {
@@ -5133,7 +5133,99 @@ async function uploadFile({
5133
5133
  import { OpenRedaction } from "@openredaction/openredaction";
5134
5134
  import { spawn } from "child_process";
5135
5135
  import { installGitleaks } from "gitleaks-secret-scanner/lib/installer.js";
5136
- var openRedaction = new OpenRedaction();
5136
+ var openRedaction = new OpenRedaction({
5137
+ patterns: [
5138
+ // Core Personal Data
5139
+ "EMAIL",
5140
+ "SSN",
5141
+ "NATIONAL_INSURANCE_UK",
5142
+ "DATE_OF_BIRTH",
5143
+ // Identity Documents
5144
+ "PASSPORT_UK",
5145
+ "PASSPORT_US",
5146
+ "PASSPORT_MRZ_TD1",
5147
+ "PASSPORT_MRZ_TD3",
5148
+ "DRIVING_LICENSE_UK",
5149
+ "DRIVING_LICENSE_US",
5150
+ "VISA_NUMBER",
5151
+ "VISA_MRZ",
5152
+ "TAX_ID",
5153
+ // Financial Data
5154
+ "CREDIT_CARD",
5155
+ "IBAN",
5156
+ "BANK_ACCOUNT_UK",
5157
+ "ROUTING_NUMBER_US",
5158
+ "SWIFT_BIC",
5159
+ "CARD_TRACK1_DATA",
5160
+ "CARD_TRACK2_DATA",
5161
+ "CARD_EXPIRY",
5162
+ "CARD_AUTH_CODE",
5163
+ // Cryptocurrency
5164
+ "BITCOIN_ADDRESS",
5165
+ "ETHEREUM_ADDRESS",
5166
+ "LITECOIN_ADDRESS",
5167
+ "CARDANO_ADDRESS",
5168
+ "SOLANA_ADDRESS",
5169
+ "MONERO_ADDRESS",
5170
+ "RIPPLE_ADDRESS",
5171
+ // Medical Data
5172
+ "NHS_NUMBER",
5173
+ "MEDICAL_RECORD_NUMBER",
5174
+ "AUSTRALIAN_MEDICARE",
5175
+ "HEALTH_PLAN_NUMBER",
5176
+ "PRESCRIPTION_NUMBER",
5177
+ "PATIENT_ID",
5178
+ // Communications
5179
+ "PHONE_US",
5180
+ "PHONE_UK",
5181
+ "PHONE_UK_MOBILE",
5182
+ "PHONE_INTERNATIONAL",
5183
+ "PHONE_LINE_NUMBER",
5184
+ "EMERGENCY_CONTACT",
5185
+ "ADDRESS_STREET",
5186
+ "ADDRESS_PO_BOX",
5187
+ "POSTCODE_UK",
5188
+ "ZIP_CODE_US",
5189
+ // Network & Technical
5190
+ "IPV4",
5191
+ "IPV6",
5192
+ "MAC_ADDRESS",
5193
+ "URL_WITH_AUTH",
5194
+ // Security Keys & Tokens
5195
+ "PRIVATE_KEY",
5196
+ "SSH_PRIVATE_KEY",
5197
+ "AWS_SECRET_KEY",
5198
+ "AWS_ACCESS_KEY",
5199
+ "AZURE_STORAGE_KEY",
5200
+ "GCP_SERVICE_ACCOUNT",
5201
+ "JWT_TOKEN",
5202
+ "OAUTH_TOKEN",
5203
+ "OAUTH_CLIENT_SECRET",
5204
+ "BEARER_TOKEN",
5205
+ "PAYMENT_TOKEN",
5206
+ "GENERIC_SECRET",
5207
+ "GENERIC_API_KEY",
5208
+ // Platform-Specific API Keys
5209
+ "GITHUB_TOKEN",
5210
+ "SLACK_TOKEN",
5211
+ "STRIPE_API_KEY",
5212
+ "GOOGLE_API_KEY",
5213
+ "FIREBASE_API_KEY",
5214
+ "HEROKU_API_KEY",
5215
+ "MAILGUN_API_KEY",
5216
+ "SENDGRID_API_KEY",
5217
+ "TWILIO_API_KEY",
5218
+ "NPM_TOKEN",
5219
+ "PYPI_TOKEN",
5220
+ "DOCKER_AUTH",
5221
+ "KUBERNETES_SECRET",
5222
+ // Government & Legal
5223
+ "POLICE_REPORT_NUMBER",
5224
+ "IMMIGRATION_NUMBER",
5225
+ "COURT_REPORTER_LICENSE",
5226
+ "CLIENT_ID"
5227
+ ]
5228
+ });
5137
5229
  var gitleaksBinaryPath = null;
5138
5230
  async function initializeGitleaks() {
5139
5231
  try {
@@ -5211,16 +5303,7 @@ async function sanitizeDataWithCounts(obj) {
5211
5303
  ...piiDetections.medium,
5212
5304
  ...piiDetections.low
5213
5305
  ];
5214
- const filteredDetections = allDetections.filter((detection) => {
5215
- if (detection.type === "INSTAGRAM_USERNAME") {
5216
- return false;
5217
- }
5218
- if (detection.value.length < 3 && detection.severity !== "high") {
5219
- return false;
5220
- }
5221
- return true;
5222
- });
5223
- for (const detection of filteredDetections) {
5306
+ for (const detection of allDetections) {
5224
5307
  counts.pii.total++;
5225
5308
  if (detection.severity === "high") counts.pii.high++;
5226
5309
  else if (detection.severity === "medium") counts.pii.medium++;
package/dist/index.mjs CHANGED
@@ -13304,7 +13304,99 @@ import z31 from "zod";
13304
13304
  import { OpenRedaction } from "@openredaction/openredaction";
13305
13305
  import { spawn } from "child_process";
13306
13306
  import { installGitleaks } from "gitleaks-secret-scanner/lib/installer.js";
13307
- var openRedaction = new OpenRedaction();
13307
+ var openRedaction = new OpenRedaction({
13308
+ patterns: [
13309
+ // Core Personal Data
13310
+ "EMAIL",
13311
+ "SSN",
13312
+ "NATIONAL_INSURANCE_UK",
13313
+ "DATE_OF_BIRTH",
13314
+ // Identity Documents
13315
+ "PASSPORT_UK",
13316
+ "PASSPORT_US",
13317
+ "PASSPORT_MRZ_TD1",
13318
+ "PASSPORT_MRZ_TD3",
13319
+ "DRIVING_LICENSE_UK",
13320
+ "DRIVING_LICENSE_US",
13321
+ "VISA_NUMBER",
13322
+ "VISA_MRZ",
13323
+ "TAX_ID",
13324
+ // Financial Data
13325
+ "CREDIT_CARD",
13326
+ "IBAN",
13327
+ "BANK_ACCOUNT_UK",
13328
+ "ROUTING_NUMBER_US",
13329
+ "SWIFT_BIC",
13330
+ "CARD_TRACK1_DATA",
13331
+ "CARD_TRACK2_DATA",
13332
+ "CARD_EXPIRY",
13333
+ "CARD_AUTH_CODE",
13334
+ // Cryptocurrency
13335
+ "BITCOIN_ADDRESS",
13336
+ "ETHEREUM_ADDRESS",
13337
+ "LITECOIN_ADDRESS",
13338
+ "CARDANO_ADDRESS",
13339
+ "SOLANA_ADDRESS",
13340
+ "MONERO_ADDRESS",
13341
+ "RIPPLE_ADDRESS",
13342
+ // Medical Data
13343
+ "NHS_NUMBER",
13344
+ "MEDICAL_RECORD_NUMBER",
13345
+ "AUSTRALIAN_MEDICARE",
13346
+ "HEALTH_PLAN_NUMBER",
13347
+ "PRESCRIPTION_NUMBER",
13348
+ "PATIENT_ID",
13349
+ // Communications
13350
+ "PHONE_US",
13351
+ "PHONE_UK",
13352
+ "PHONE_UK_MOBILE",
13353
+ "PHONE_INTERNATIONAL",
13354
+ "PHONE_LINE_NUMBER",
13355
+ "EMERGENCY_CONTACT",
13356
+ "ADDRESS_STREET",
13357
+ "ADDRESS_PO_BOX",
13358
+ "POSTCODE_UK",
13359
+ "ZIP_CODE_US",
13360
+ // Network & Technical
13361
+ "IPV4",
13362
+ "IPV6",
13363
+ "MAC_ADDRESS",
13364
+ "URL_WITH_AUTH",
13365
+ // Security Keys & Tokens
13366
+ "PRIVATE_KEY",
13367
+ "SSH_PRIVATE_KEY",
13368
+ "AWS_SECRET_KEY",
13369
+ "AWS_ACCESS_KEY",
13370
+ "AZURE_STORAGE_KEY",
13371
+ "GCP_SERVICE_ACCOUNT",
13372
+ "JWT_TOKEN",
13373
+ "OAUTH_TOKEN",
13374
+ "OAUTH_CLIENT_SECRET",
13375
+ "BEARER_TOKEN",
13376
+ "PAYMENT_TOKEN",
13377
+ "GENERIC_SECRET",
13378
+ "GENERIC_API_KEY",
13379
+ // Platform-Specific API Keys
13380
+ "GITHUB_TOKEN",
13381
+ "SLACK_TOKEN",
13382
+ "STRIPE_API_KEY",
13383
+ "GOOGLE_API_KEY",
13384
+ "FIREBASE_API_KEY",
13385
+ "HEROKU_API_KEY",
13386
+ "MAILGUN_API_KEY",
13387
+ "SENDGRID_API_KEY",
13388
+ "TWILIO_API_KEY",
13389
+ "NPM_TOKEN",
13390
+ "PYPI_TOKEN",
13391
+ "DOCKER_AUTH",
13392
+ "KUBERNETES_SECRET",
13393
+ // Government & Legal
13394
+ "POLICE_REPORT_NUMBER",
13395
+ "IMMIGRATION_NUMBER",
13396
+ "COURT_REPORTER_LICENSE",
13397
+ "CLIENT_ID"
13398
+ ]
13399
+ });
13308
13400
  var gitleaksBinaryPath = null;
13309
13401
  async function initializeGitleaks() {
13310
13402
  try {
@@ -13382,16 +13474,7 @@ async function sanitizeDataWithCounts(obj) {
13382
13474
  ...piiDetections.medium,
13383
13475
  ...piiDetections.low
13384
13476
  ];
13385
- const filteredDetections = allDetections.filter((detection) => {
13386
- if (detection.type === "INSTAGRAM_USERNAME") {
13387
- return false;
13388
- }
13389
- if (detection.value.length < 3 && detection.severity !== "high") {
13390
- return false;
13391
- }
13392
- return true;
13393
- });
13394
- for (const detection of filteredDetections) {
13477
+ for (const detection of allDetections) {
13395
13478
  counts.pii.total++;
13396
13479
  if (detection.severity === "high") counts.pii.high++;
13397
13480
  else if (detection.severity === "medium") counts.pii.medium++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.mjs",