mobbdev 1.3.4 → 1.3.5

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.
@@ -211,12 +211,6 @@ type PromptItemArray = z.infer<typeof PromptItemArrayZ>;
211
211
  * Returns null if not in a git repository or if not a GitHub repository.
212
212
  */
213
213
  declare function getRepositoryUrl(workingDir?: string): Promise<string | null>;
214
- /**
215
- * Gets the absolute git root path of the working directory's git checkout.
216
- * Used by Tracy uploads to let the server filter out events whose filePath
217
- * falls outside the repo (e.g., /tmp scratchpads, ~/.zshrc).
218
- */
219
- declare function getRepoGitRoot(workingDir?: string): Promise<string | null>;
220
214
  /**
221
215
  * Get system information for tracking inference source.
222
216
  * Works cross-platform (Windows, macOS, Linux).
@@ -271,4 +265,4 @@ type UploadAiBlameHandlerOptions = {
271
265
  declare function uploadAiBlameHandler(options: UploadAiBlameHandlerOptions): Promise<void>;
272
266
  declare function uploadAiBlameCommandHandler(args: UploadAiBlameOptions): Promise<void>;
273
267
 
274
- export { type PromptItem, type PromptItemArray, type UploadAiBlameOptions, type UploadAiBlameResult, getRepoGitRoot, getRepositoryUrl, getSystemInfo, uploadAiBlameBuilder, uploadAiBlameCommandHandler, uploadAiBlameHandler, uploadAiBlameHandlerFromExtension };
268
+ export { type PromptItem, type PromptItemArray, type UploadAiBlameOptions, type UploadAiBlameResult, getRepositoryUrl, getSystemInfo, uploadAiBlameBuilder, uploadAiBlameCommandHandler, uploadAiBlameHandler, uploadAiBlameHandlerFromExtension };
@@ -7941,18 +7941,6 @@ async function getRepositoryUrl(workingDir) {
7941
7941
  return null;
7942
7942
  }
7943
7943
  }
7944
- async function getRepoGitRoot(workingDir) {
7945
- try {
7946
- const gitService = new GitService(workingDir ?? process.cwd());
7947
- const isRepo = await gitService.isGitRepository();
7948
- if (!isRepo) {
7949
- return null;
7950
- }
7951
- return await gitService.getGitRoot();
7952
- } catch {
7953
- return null;
7954
- }
7955
- }
7956
7944
  function getSystemInfo() {
7957
7945
  let userName;
7958
7946
  try {
@@ -8231,7 +8219,6 @@ async function uploadAiBlameCommandHandler(args) {
8231
8219
  await uploadAiBlameHandler({ args });
8232
8220
  }
8233
8221
  export {
8234
- getRepoGitRoot,
8235
8222
  getRepositoryUrl,
8236
8223
  getSystemInfo,
8237
8224
  uploadAiBlameBuilder,
package/dist/index.mjs CHANGED
@@ -14016,18 +14016,6 @@ async function getRepositoryUrl(workingDir) {
14016
14016
  return null;
14017
14017
  }
14018
14018
  }
14019
- async function getRepoGitRoot(workingDir) {
14020
- try {
14021
- const gitService = new GitService(workingDir ?? process.cwd());
14022
- const isRepo = await gitService.isGitRepository();
14023
- if (!isRepo) {
14024
- return null;
14025
- }
14026
- return await gitService.getGitRoot();
14027
- } catch {
14028
- return null;
14029
- }
14030
- }
14031
14019
  function getSystemInfo() {
14032
14020
  let userName;
14033
14021
  try {
@@ -14360,7 +14348,6 @@ async function prepareAndSendTracyRecords(client, rawRecords, workingDir, option
14360
14348
  const defaultClientVersion = packageJson.version;
14361
14349
  const shouldSanitize = options?.sanitize ?? true;
14362
14350
  const defaultRepoUrl = rawRecords[0]?.repositoryUrl ? void 0 : await getRepositoryUrl(workingDir) ?? void 0;
14363
- const defaultGitRoot = rawRecords[0]?.gitRoot ? void 0 : await getRepoGitRoot(workingDir) ?? void 0;
14364
14351
  debug10(
14365
14352
  "[step:sanitize] %s %d records",
14366
14353
  shouldSanitize ? "Sanitizing" : "Serializing",
@@ -14379,7 +14366,6 @@ async function prepareAndSendTracyRecords(client, rawRecords, workingDir, option
14379
14366
  return {
14380
14367
  ...rest,
14381
14368
  repositoryUrl: record.repositoryUrl ?? defaultRepoUrl,
14382
- gitRoot: record.gitRoot ?? defaultGitRoot,
14383
14369
  computerName,
14384
14370
  userName,
14385
14371
  clientVersion: record.clientVersion ?? defaultClientVersion
@@ -17431,7 +17417,7 @@ function createLogger(config2) {
17431
17417
 
17432
17418
  // src/features/claude_code/hook_logger.ts
17433
17419
  var DD_RUM_TOKEN = true ? "pubf59c0182545bfb4c299175119f1abf9b" : "";
17434
- var CLI_VERSION = true ? "1.3.4" : "unknown";
17420
+ var CLI_VERSION = true ? "1.3.5" : "unknown";
17435
17421
  var NAMESPACE = "mobbdev-claude-code-hook-logs";
17436
17422
  var claudeCodeVersion;
17437
17423
  function buildDdTags() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
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",