mobbdev 1.2.66 → 1.2.68
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/index.mjs +15 -13
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -16408,6 +16408,20 @@ import { promisify } from "util";
|
|
|
16408
16408
|
import { z as z33 } from "zod";
|
|
16409
16409
|
init_client_generates();
|
|
16410
16410
|
|
|
16411
|
+
// src/features/claude_code/data_collector_constants.ts
|
|
16412
|
+
var CC_VERSION_CACHE_KEY = "claudeCode.detectedCCVersion";
|
|
16413
|
+
var CC_VERSION_CLI_KEY = "claudeCode.detectedCCVersionCli";
|
|
16414
|
+
var GLOBAL_COOLDOWN_MS = 5e3;
|
|
16415
|
+
var HOOK_COOLDOWN_MS = 15e3;
|
|
16416
|
+
var ACTIVE_LOCK_TTL_MS = 6e4;
|
|
16417
|
+
var GQL_AUTH_TIMEOUT_MS = 15e3;
|
|
16418
|
+
var STALE_KEY_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1e3;
|
|
16419
|
+
var CLEANUP_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
16420
|
+
var MAX_ENTRIES_PER_INVOCATION = 200;
|
|
16421
|
+
var COOLDOWN_KEY = "lastHookRunAt";
|
|
16422
|
+
var ACTIVE_KEY = "hookActiveAt";
|
|
16423
|
+
var STDIN_TIMEOUT_MS = 1e4;
|
|
16424
|
+
|
|
16411
16425
|
// src/utils/shared-logger/create-logger.ts
|
|
16412
16426
|
import Configstore2 from "configstore";
|
|
16413
16427
|
import pino from "pino";
|
|
@@ -16698,7 +16712,7 @@ function createLogger(config2) {
|
|
|
16698
16712
|
|
|
16699
16713
|
// src/features/claude_code/hook_logger.ts
|
|
16700
16714
|
var DD_RUM_TOKEN = true ? "pubf59c0182545bfb4c299175119f1abf9b" : "";
|
|
16701
|
-
var CLI_VERSION = true ? "1.2.
|
|
16715
|
+
var CLI_VERSION = true ? "1.2.68" : "unknown";
|
|
16702
16716
|
var NAMESPACE = "mobbdev-claude-code-hook-logs";
|
|
16703
16717
|
var claudeCodeVersion;
|
|
16704
16718
|
function buildDdTags() {
|
|
@@ -16881,17 +16895,6 @@ async function installMobbHooks(options = {}) {
|
|
|
16881
16895
|
}
|
|
16882
16896
|
|
|
16883
16897
|
// src/features/claude_code/data_collector.ts
|
|
16884
|
-
var CC_VERSION_CACHE_KEY = "claudeCode.detectedCCVersion";
|
|
16885
|
-
var CC_VERSION_CLI_KEY = "claudeCode.detectedCCVersionCli";
|
|
16886
|
-
var GLOBAL_COOLDOWN_MS = 5e3;
|
|
16887
|
-
var HOOK_COOLDOWN_MS = 15e3;
|
|
16888
|
-
var ACTIVE_LOCK_TTL_MS = 6e4;
|
|
16889
|
-
var GQL_AUTH_TIMEOUT_MS = 15e3;
|
|
16890
|
-
var STALE_KEY_MAX_AGE_MS = 14 * 24 * 60 * 60 * 1e3;
|
|
16891
|
-
var CLEANUP_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
16892
|
-
var MAX_ENTRIES_PER_INVOCATION = 50;
|
|
16893
|
-
var COOLDOWN_KEY = "lastHookRunAt";
|
|
16894
|
-
var ACTIVE_KEY = "hookActiveAt";
|
|
16895
16898
|
var HookDataSchema = z33.object({
|
|
16896
16899
|
session_id: z33.string().nullish(),
|
|
16897
16900
|
transcript_path: z33.string().nullish(),
|
|
@@ -16922,7 +16925,6 @@ async function detectClaudeCodeVersion() {
|
|
|
16922
16925
|
return void 0;
|
|
16923
16926
|
}
|
|
16924
16927
|
}
|
|
16925
|
-
var STDIN_TIMEOUT_MS = 1e4;
|
|
16926
16928
|
async function readStdinData() {
|
|
16927
16929
|
hookLog.debug("Reading stdin data");
|
|
16928
16930
|
return new Promise((resolve, reject) => {
|