oh-my-opencode 5.0.0-beta.17 → 5.0.0-beta.19
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/cli/index.js +641 -161
- package/dist/cli/runtime-commands.d.ts +1 -1
- package/dist/cli/worktree-sweep/classify.d.ts +16 -0
- package/dist/cli/worktree-sweep/format.d.ts +8 -0
- package/dist/cli/worktree-sweep/git.d.ts +19 -0
- package/dist/cli/worktree-sweep/index.d.ts +7 -0
- package/dist/cli/worktree-sweep/options.d.ts +2 -0
- package/dist/cli/worktree-sweep/parse-worktree-list.d.ts +8 -0
- package/dist/cli/worktree-sweep/sweep.d.ts +2 -0
- package/dist/cli/worktree-sweep/types.d.ts +65 -0
- package/dist/cli/worktree-sweep/worktree-sweep.d.ts +2 -0
- package/dist/cli-node/index.js +641 -161
- package/dist/index.js +324 -176
- package/dist/skills/ast-grep/AGENTS.md +51 -0
- package/dist/skills/coding-agent-sessions/AGENTS.md +62 -0
- package/dist/skills/review-work/SKILL.md +3 -3
- package/dist/skills/start-work/SKILL.md +2 -1
- package/dist/skills/ultimate-browsing/SKILL.md +2 -0
- package/dist/skills/ultimate-browsing/references/chrome-stealth.md +2 -0
- package/dist/skills/visual-qa/AGENTS.md +58 -0
- package/dist/tui.js +17 -17
- package/package.json +21 -21
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/AGENTS.md +47 -0
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/codegraph/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/AGENTS.md +9 -0
- package/packages/omo-codex/plugin/components/comment-checker/biome.json +2 -2
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/src/apply-patch.ts +2 -8
- package/packages/omo-codex/plugin/components/comment-checker/src/core.ts +1 -2
- package/packages/omo-codex/plugin/components/comment-checker/src/request-extractor.ts +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/biome.json +2 -2
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/cli.js +1 -5
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/dist/codex-hook.js +1 -5
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/src/codex-hook.ts +1 -5
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/test/codex-hook.test.ts +1 -4
- package/packages/omo-codex/plugin/components/lsp/AGENTS.md +30 -15
- package/packages/omo-codex/plugin/components/lsp/biome.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
- package/packages/omo-codex/plugin/components/lsp/dist/daemon-cli-path.js +1 -1
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/src/codex-hook.ts +1 -1
- package/packages/omo-codex/plugin/components/lsp/src/daemon-cli-path.ts +1 -5
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook-unavailable.test.ts +6 -7
- package/packages/omo-codex/plugin/components/lsp/test/codex-hook.test.ts +1 -2
- package/packages/omo-codex/plugin/components/lsp/test/package-smoke.test.ts +11 -1
- package/packages/omo-codex/plugin/components/rules/AGENTS.md +12 -0
- package/packages/omo-codex/plugin/components/rules/biome.json +2 -2
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +43 -30
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +2 -2
- package/packages/omo-codex/plugin/components/rules/src/config.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/src/persistent-cache.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/src/post-compact-budget.ts +6 -2
- package/packages/omo-codex/plugin/components/rules/src/rules-engine-factory.ts +1 -4
- package/packages/omo-codex/plugin/components/rules/src/static-injection.ts +4 -9
- package/packages/omo-codex/plugin/components/rules/test/bundled-rules.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/dynamic-target-fingerprints.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/engine.test.ts +7 -4
- package/packages/omo-codex/plugin/components/rules/test/finder.test.ts +2 -3
- package/packages/omo-codex/plugin/components/rules/test/formatter.test.ts +2 -3
- package/packages/omo-codex/plugin/components/rules/test/hephaestus-model-variant.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/matcher.test.ts +2 -3
- package/packages/omo-codex/plugin/components/rules/test/package-smoke.test.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/test/parser.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/post-compact-budget.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/rules-engine-consumption.test.ts +3 -6
- package/packages/omo-codex/plugin/components/rules/test/scanner.test.ts +1 -2
- package/packages/omo-codex/plugin/components/rules/test/sources.test.ts +2 -5
- package/packages/omo-codex/plugin/components/rules/test/windows-git-bash-bundled-rule.test.ts +1 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/biome.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/AGENTS.md +8 -0
- package/packages/omo-codex/plugin/components/telemetry/biome.json +2 -2
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +237 -99
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +237 -99
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/src/codex-hook.ts +1 -4
- package/packages/omo-codex/plugin/components/telemetry/src/posthog.ts +4 -14
- package/packages/omo-codex/plugin/components/telemetry/src/product-identity.ts +1 -1
- package/packages/omo-codex/plugin/components/telemetry/test/diagnostics.test.ts +2 -5
- package/packages/omo-codex/plugin/components/ultrawork/AGENTS.md +5 -0
- package/packages/omo-codex/plugin/components/ultrawork/biome.json +2 -2
- package/packages/omo-codex/plugin/components/ultrawork/directive.md +7 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/skills/ultrawork/SKILL.md +7 -1
- package/packages/omo-codex/plugin/components/ultrawork/test/codex-hook-trigger-policy.test.ts +9 -1
- package/packages/omo-codex/plugin/components/ulw-loop/AGENTS.md +16 -0
- package/packages/omo-codex/plugin/components/ulw-loop/biome.json +2 -2
- package/packages/omo-codex/plugin/components/ulw-loop/directive.md +7 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/dist/codex-goal-snapshot.js +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-goal-snapshot.ts +3 -1
- package/packages/omo-codex/plugin/components/ulw-loop/src/codex-hook.ts +3 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/codex-goal-snapshot.test.ts +18 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/package-smoke.test.ts +3 -2
- package/packages/omo-codex/plugin/components/ulw-loop/test/steering.test.ts +8 -5
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +19 -19
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/scripts/AGENTS.md +40 -0
- package/packages/omo-codex/plugin/skills/ast-grep/AGENTS.md +51 -0
- package/packages/omo-codex/plugin/skills/coding-agent-sessions/AGENTS.md +62 -0
- package/packages/omo-codex/plugin/skills/review-work/SKILL.md +3 -3
- package/packages/omo-codex/plugin/skills/start-work/SKILL.md +2 -1
- package/packages/omo-codex/plugin/skills/ultimate-browsing/SKILL.md +2 -0
- package/packages/omo-codex/plugin/skills/ultimate-browsing/references/chrome-stealth.md +2 -0
- package/packages/omo-codex/plugin/skills/ultrawork/SKILL.md +7 -1
- package/packages/omo-codex/plugin/skills/visual-qa/AGENTS.md +58 -0
- package/packages/omo-codex/plugin/test/AGENTS.md +47 -0
- package/packages/omo-codex/scripts/AGENTS.md +36 -0
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +249 -120
- package/packages/shared-skills/skills/ast-grep/AGENTS.md +51 -0
- package/packages/shared-skills/skills/coding-agent-sessions/AGENTS.md +62 -0
- package/packages/shared-skills/skills/review-work/SKILL.md +3 -3
- package/packages/shared-skills/skills/start-work/SKILL.md +2 -1
- package/packages/shared-skills/skills/ultimate-browsing/SKILL.md +2 -0
- package/packages/shared-skills/skills/ultimate-browsing/references/chrome-stealth.md +2 -0
- package/packages/shared-skills/skills/visual-qa/AGENTS.md +58 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// omo-codex-install:1d8359e77ebe41655f091cd2e455f320cde2f9c681f0651797c47d8fdfa2dd76:
|
|
2
|
+
// omo-codex-install:1d8359e77ebe41655f091cd2e455f320cde2f9c681f0651797c47d8fdfa2dd76:fe42a5610803f06b84bc9fe0b1f98d651e9b8420a522c804cb85bec2668149b7
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __returnValue = (v) => v;
|
|
5
5
|
function __exportSetter(name, newValue) {
|
|
@@ -347,7 +347,7 @@ var init_env = __esm(() => {
|
|
|
347
347
|
SEND_OPT_OUT_VALUES = ["0", "false", "no", "yes"];
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
-
// node_modules/.bun/posthog-node@5.
|
|
350
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs
|
|
351
351
|
import { dirname as dirname10, posix as posix2, sep as sep7 } from "node:path";
|
|
352
352
|
function createModulerModifier() {
|
|
353
353
|
const getModuleFromFileName = createGetModuleFromFilename();
|
|
@@ -384,7 +384,7 @@ function normalizeWindowsPath(path2) {
|
|
|
384
384
|
}
|
|
385
385
|
var init_module_node = () => {};
|
|
386
386
|
|
|
387
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
387
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/featureFlagUtils.mjs
|
|
388
388
|
function getFlagDetailFromFlagAndPayload(key, value, payload) {
|
|
389
389
|
return {
|
|
390
390
|
key,
|
|
@@ -513,7 +513,7 @@ var init_featureFlagUtils = __esm(() => {
|
|
|
513
513
|
];
|
|
514
514
|
});
|
|
515
515
|
|
|
516
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
516
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/types.mjs
|
|
517
517
|
var types_PostHogPersistedProperty;
|
|
518
518
|
var init_types = __esm(() => {
|
|
519
519
|
types_PostHogPersistedProperty = /* @__PURE__ */ function(PostHogPersistedProperty) {
|
|
@@ -554,7 +554,7 @@ var init_types = __esm(() => {
|
|
|
554
554
|
}({});
|
|
555
555
|
});
|
|
556
556
|
|
|
557
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
557
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/gzip.mjs
|
|
558
558
|
function isGzipSupported() {
|
|
559
559
|
return "CompressionStream" in globalThis && "TextEncoder" in globalThis && "Response" in globalThis && typeof Response.prototype.blob == "function";
|
|
560
560
|
}
|
|
@@ -622,7 +622,30 @@ var init_gzip = __esm(() => {
|
|
|
622
622
|
init_types();
|
|
623
623
|
});
|
|
624
624
|
|
|
625
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
625
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/json-utils.mjs
|
|
626
|
+
function sanitizeString(value) {
|
|
627
|
+
let output = "";
|
|
628
|
+
for (let index = 0;index < value.length; index++) {
|
|
629
|
+
const codeUnit = value.charCodeAt(index);
|
|
630
|
+
if (codeUnit >= 55296 && codeUnit <= 56319) {
|
|
631
|
+
const nextCodeUnit = value.charCodeAt(index + 1);
|
|
632
|
+
if (nextCodeUnit >= 56320 && nextCodeUnit <= 57343) {
|
|
633
|
+
output += value[index] + value[index + 1];
|
|
634
|
+
index++;
|
|
635
|
+
} else
|
|
636
|
+
output += "�";
|
|
637
|
+
} else
|
|
638
|
+
output += codeUnit >= 56320 && codeUnit <= 57343 ? "�" : value[index];
|
|
639
|
+
}
|
|
640
|
+
return output;
|
|
641
|
+
}
|
|
642
|
+
var MAX_JSON_SAFE_VALUE_DEPTH = 20, MAX_JSON_SAFE_VALUE_ITEMS = 1000, MAX_JSON_SAFE_VALUE_NODES = 1e4, CIRCULAR_VALUE = "[Circular]", TRUNCATED_VALUE = "[Truncated]", UNSERIALIZABLE_VALUE = "[Unserializable]", FUNCTION_VALUE = "[Function]", dateGetTime, dateToISOString;
|
|
643
|
+
var init_json_utils = __esm(() => {
|
|
644
|
+
dateGetTime = Date.prototype.getTime;
|
|
645
|
+
dateToISOString = Date.prototype.toISOString;
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/bot-detection.mjs
|
|
626
649
|
var DEFAULT_BLOCKED_UA_STRS, isBlockedUA = function(ua, customBlockedUserAgents = []) {
|
|
627
650
|
if (!ua)
|
|
628
651
|
return false;
|
|
@@ -714,7 +737,7 @@ var init_bot_detection = __esm(() => {
|
|
|
714
737
|
];
|
|
715
738
|
});
|
|
716
739
|
|
|
717
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
740
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/string-utils.mjs
|
|
718
741
|
function safeJsonStringify(value) {
|
|
719
742
|
const ancestors = [];
|
|
720
743
|
return JSON.stringify(value, function(_key, replacementValue) {
|
|
@@ -740,12 +763,12 @@ function safeJsonStringify(value) {
|
|
|
740
763
|
}
|
|
741
764
|
var init_string_utils = () => {};
|
|
742
765
|
|
|
743
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
766
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/browser-utils.mjs
|
|
744
767
|
var init_browser_utils = __esm(() => {
|
|
745
768
|
init_string_utils();
|
|
746
769
|
});
|
|
747
770
|
|
|
748
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
771
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/type-utils.mjs
|
|
749
772
|
function isPrimitive(value) {
|
|
750
773
|
return value === null || typeof value != "object";
|
|
751
774
|
}
|
|
@@ -780,7 +803,7 @@ function isInstanceOf(candidate, base) {
|
|
|
780
803
|
return false;
|
|
781
804
|
}
|
|
782
805
|
}
|
|
783
|
-
var nativeIsArray, ObjProto, type_utils_hasOwnProperty, type_utils_toString, isArray, isObject = (x) => x === Object(x) && !isArray(x), isUndefined = (x) => x === undefined, isString = (x) => type_utils_toString.call(x) == "[object String]", isEmptyString = (x) => isString(x) && x.trim().length === 0, isNull = (x) => x === null, isNumber = (x) => type_utils_toString.call(x) == "[object Number]" && x === x, isBoolean = (x) => type_utils_toString.call(x) === "[object Boolean]";
|
|
806
|
+
var nativeIsArray, ObjProto, type_utils_hasOwnProperty, type_utils_toString, isArray, isObject = (x) => x === Object(x) && !isArray(x), isUndefined = (x) => x === undefined, isString = (x) => type_utils_toString.call(x) == "[object String]", isEmptyString = (x) => isString(x) && x.trim().length === 0, isNull = (x) => x === null, isNullish = (x) => isUndefined(x) || isNull(x), isNumber = (x) => type_utils_toString.call(x) == "[object Number]" && x === x, isBoolean = (x) => type_utils_toString.call(x) === "[object Boolean]";
|
|
784
807
|
var init_type_utils = __esm(() => {
|
|
785
808
|
init_types();
|
|
786
809
|
init_string_utils();
|
|
@@ -793,7 +816,7 @@ var init_type_utils = __esm(() => {
|
|
|
793
816
|
};
|
|
794
817
|
});
|
|
795
818
|
|
|
796
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
819
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/number-utils.mjs
|
|
797
820
|
function clampToRange(value, min, max, logger, fallbackValue) {
|
|
798
821
|
if (min > max) {
|
|
799
822
|
logger.warn("min cannot be greater than max.");
|
|
@@ -816,7 +839,7 @@ var init_number_utils = __esm(() => {
|
|
|
816
839
|
init_type_utils();
|
|
817
840
|
});
|
|
818
841
|
|
|
819
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
842
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
|
|
820
843
|
function resolveExceptionRateLimiterConfig(config = {}) {
|
|
821
844
|
return {
|
|
822
845
|
refillRate: config.exceptionRateLimiterRefillRate ?? config.__exceptionRateLimiterRefillRate ?? DEFAULT_EXCEPTION_RATE_LIMITER_REFILL_RATE,
|
|
@@ -870,14 +893,7 @@ var init_bucketed_rate_limiter = __esm(() => {
|
|
|
870
893
|
init_number_utils();
|
|
871
894
|
});
|
|
872
895
|
|
|
873
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
874
|
-
var dateGetTime, dateToISOString;
|
|
875
|
-
var init_json_utils = __esm(() => {
|
|
876
|
-
dateGetTime = Date.prototype.getTime;
|
|
877
|
-
dateToISOString = Date.prototype.toISOString;
|
|
878
|
-
});
|
|
879
|
-
|
|
880
|
-
// node_modules/.bun/@posthog+core@1.48.6/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
896
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
|
|
881
897
|
class UUID {
|
|
882
898
|
constructor(bytes) {
|
|
883
899
|
this.bytes = bytes;
|
|
@@ -1052,7 +1068,7 @@ var init_uuidv7 = __esm(() => {
|
|
|
1052
1068
|
/*! For license information please see uuidv7.mjs.LICENSE.txt */
|
|
1053
1069
|
});
|
|
1054
1070
|
|
|
1055
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1071
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/promise-queue.mjs
|
|
1056
1072
|
class PromiseQueue {
|
|
1057
1073
|
add(promise) {
|
|
1058
1074
|
const promiseUUID = uuidv7();
|
|
@@ -1094,7 +1110,7 @@ var init_promise_queue = __esm(() => {
|
|
|
1094
1110
|
init_uuidv7();
|
|
1095
1111
|
});
|
|
1096
1112
|
|
|
1097
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1113
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/logger.mjs
|
|
1098
1114
|
function createConsole(consoleLike = console) {
|
|
1099
1115
|
const lockedMethods = {
|
|
1100
1116
|
log: consoleLike.log.bind(consoleLike),
|
|
@@ -1136,7 +1152,7 @@ var _createLogger = (prefix, maybeCall, consoleLike) => {
|
|
|
1136
1152
|
}, passThrough = (fn) => fn();
|
|
1137
1153
|
var init_logger = () => {};
|
|
1138
1154
|
|
|
1139
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1155
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
|
|
1140
1156
|
var MOBILE = "Mobile", IOS = "iOS", ANDROID = "Android", TABLET = "Tablet", ANDROID_TABLET, APPLE = "Apple", APPLE_WATCH, SAFARI = "Safari", BLACKBERRY = "BlackBerry", SAMSUNG = "Samsung", SAMSUNG_BROWSER, SAMSUNG_INTERNET, CHROME = "Chrome", CHROME_OS, CHROME_IOS, INTERNET_EXPLORER = "Internet Explorer", INTERNET_EXPLORER_MOBILE, OPERA = "Opera", OPERA_MINI, EDGE = "Edge", MICROSOFT_EDGE, FIREFOX = "Firefox", FIREFOX_IOS, NINTENDO = "Nintendo", PLAYSTATION = "PlayStation", XBOX = "Xbox", ANDROID_MOBILE, MOBILE_SAFARI, WINDOWS = "Windows", WINDOWS_PHONE, GENERIC = "Generic", GENERIC_MOBILE, GENERIC_TABLET, KONQUEROR = "Konqueror", OCULUS_BROWSER = "Oculus Browser", VIVALDI = "Vivaldi", YANDEX = "Yandex", WHALE = "Whale", DUCKDUCKGO = "DuckDuckGo", PALE_MOON = "Pale Moon", WATERFOX = "Waterfox", BRAVE = "Brave", GOOGLE_SEARCH_APP = "Google Search App", BROWSER_VERSION_REGEX_SUFFIX = "(\\d+(\\.\\d+)?)", DEFAULT_BROWSER_VERSION_REGEX, XBOX_REGEX, PLAYSTATION_REGEX, NINTENDO_REGEX, BLACKBERRY_REGEX, windowsVersionMap, versionRegexes, osMatchers;
|
|
1141
1157
|
var init_user_agent_utils = __esm(() => {
|
|
1142
1158
|
init_string_utils();
|
|
@@ -1405,7 +1421,7 @@ var init_user_agent_utils = __esm(() => {
|
|
|
1405
1421
|
];
|
|
1406
1422
|
});
|
|
1407
1423
|
|
|
1408
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1424
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/utils/index.mjs
|
|
1409
1425
|
function isValidUUID(value) {
|
|
1410
1426
|
return typeof value == "string" && UUID_REGEX.test(value);
|
|
1411
1427
|
}
|
|
@@ -1470,10 +1486,10 @@ function allSettled(promises) {
|
|
|
1470
1486
|
}
|
|
1471
1487
|
var STRING_FORMAT = "utf8", UUID_REGEX;
|
|
1472
1488
|
var init_utils = __esm(() => {
|
|
1489
|
+
init_json_utils();
|
|
1473
1490
|
init_bot_detection();
|
|
1474
1491
|
init_browser_utils();
|
|
1475
1492
|
init_bucketed_rate_limiter();
|
|
1476
|
-
init_json_utils();
|
|
1477
1493
|
init_number_utils();
|
|
1478
1494
|
init_string_utils();
|
|
1479
1495
|
init_type_utils();
|
|
@@ -1483,8 +1499,26 @@ var init_utils = __esm(() => {
|
|
|
1483
1499
|
UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
1484
1500
|
});
|
|
1485
1501
|
|
|
1486
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1487
|
-
function
|
|
1502
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/logs/logs-utils.mjs
|
|
1503
|
+
function newState() {
|
|
1504
|
+
return {
|
|
1505
|
+
ancestors: new WeakSet,
|
|
1506
|
+
remainingNodes: MAX_JSON_SAFE_VALUE_NODES
|
|
1507
|
+
};
|
|
1508
|
+
}
|
|
1509
|
+
function toOtlpKeyValueList(attrs, logger2) {
|
|
1510
|
+
try {
|
|
1511
|
+
return encodeKeyValueList(attrs, logger2, newState(), 0);
|
|
1512
|
+
} catch {
|
|
1513
|
+
return [];
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
function encodeAnyValue(value, logger2, state, depth) {
|
|
1517
|
+
if (state.remainingNodes <= 0)
|
|
1518
|
+
return {
|
|
1519
|
+
stringValue: TRUNCATED_VALUE
|
|
1520
|
+
};
|
|
1521
|
+
state.remainingNodes--;
|
|
1488
1522
|
if (isBoolean(value))
|
|
1489
1523
|
return {
|
|
1490
1524
|
boolValue: value
|
|
@@ -1494,49 +1528,136 @@ function toOtlpAnyValue(value) {
|
|
|
1494
1528
|
return {
|
|
1495
1529
|
stringValue: String(value)
|
|
1496
1530
|
};
|
|
1497
|
-
if (Number.isInteger(value))
|
|
1531
|
+
if (Number.isInteger(value)) {
|
|
1532
|
+
if (Number.isSafeInteger(value))
|
|
1533
|
+
return {
|
|
1534
|
+
intValue: String(value)
|
|
1535
|
+
};
|
|
1536
|
+
if (typeof BigInt == "undefined")
|
|
1537
|
+
return {
|
|
1538
|
+
stringValue: String(value)
|
|
1539
|
+
};
|
|
1540
|
+
const decimal = BigInt(value).toString();
|
|
1541
|
+
if (value >= INT64_RANGE_LIMIT || value < -INT64_RANGE_LIMIT) {
|
|
1542
|
+
logger2?.debug(`Attribute ${decimal} is outside the int64 range; encoding it as a string`);
|
|
1543
|
+
return {
|
|
1544
|
+
stringValue: decimal
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1498
1547
|
return {
|
|
1499
|
-
intValue:
|
|
1548
|
+
intValue: decimal
|
|
1500
1549
|
};
|
|
1550
|
+
}
|
|
1501
1551
|
return {
|
|
1502
1552
|
doubleValue: value
|
|
1503
1553
|
};
|
|
1504
1554
|
}
|
|
1505
1555
|
if (typeof value == "string")
|
|
1506
1556
|
return {
|
|
1507
|
-
stringValue: value
|
|
1508
|
-
};
|
|
1509
|
-
if (isArray(value))
|
|
1510
|
-
return {
|
|
1511
|
-
arrayValue: {
|
|
1512
|
-
values: value.map((v) => toOtlpAnyValue(v))
|
|
1513
|
-
}
|
|
1557
|
+
stringValue: sanitizeString(value)
|
|
1514
1558
|
};
|
|
1515
|
-
|
|
1559
|
+
if (typeof value == "function")
|
|
1516
1560
|
return {
|
|
1517
|
-
stringValue:
|
|
1561
|
+
stringValue: FUNCTION_VALUE
|
|
1518
1562
|
};
|
|
1519
|
-
|
|
1563
|
+
if (typeof value == "symbol")
|
|
1520
1564
|
return {
|
|
1521
1565
|
stringValue: String(value)
|
|
1522
1566
|
};
|
|
1567
|
+
if (typeof value == "object" && value !== null) {
|
|
1568
|
+
if (state.ancestors.has(value))
|
|
1569
|
+
return {
|
|
1570
|
+
stringValue: CIRCULAR_VALUE
|
|
1571
|
+
};
|
|
1572
|
+
if (depth >= MAX_JSON_SAFE_VALUE_DEPTH)
|
|
1573
|
+
return {
|
|
1574
|
+
stringValue: TRUNCATED_VALUE
|
|
1575
|
+
};
|
|
1576
|
+
if (value instanceof Date) {
|
|
1577
|
+
const time = value.getTime();
|
|
1578
|
+
const iso = Number.isFinite(time) ? value.toISOString() : String(value);
|
|
1579
|
+
return {
|
|
1580
|
+
stringValue: typeof iso == "string" ? sanitizeString(iso) : String(iso)
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
state.ancestors.add(value);
|
|
1584
|
+
try {
|
|
1585
|
+
try {
|
|
1586
|
+
const toJSON = value.toJSON;
|
|
1587
|
+
if (typeof toJSON == "function")
|
|
1588
|
+
return encodeAnyValue(toJSON.call(value), logger2, state, depth + 1);
|
|
1589
|
+
} catch {}
|
|
1590
|
+
if (isArray(value))
|
|
1591
|
+
return {
|
|
1592
|
+
arrayValue: {
|
|
1593
|
+
values: encodeArrayValues(value, logger2, state, depth + 1)
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1596
|
+
return {
|
|
1597
|
+
kvlistValue: {
|
|
1598
|
+
values: encodeKeyValueList(value, logger2, state, depth + 1)
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1601
|
+
} finally {
|
|
1602
|
+
state.ancestors.delete(value);
|
|
1603
|
+
}
|
|
1523
1604
|
}
|
|
1605
|
+
return {
|
|
1606
|
+
stringValue: sanitizeString(String(value))
|
|
1607
|
+
};
|
|
1524
1608
|
}
|
|
1525
|
-
function
|
|
1609
|
+
function encodeArrayValues(values, logger2, state, depth) {
|
|
1526
1610
|
const result = [];
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1611
|
+
const itemCount = Math.min(values.length, MAX_JSON_SAFE_VALUE_ITEMS);
|
|
1612
|
+
let index = 0;
|
|
1613
|
+
for (;index < itemCount && state.remainingNodes > 0; index++)
|
|
1614
|
+
try {
|
|
1615
|
+
const element = index in values ? values[index] : undefined;
|
|
1616
|
+
if (isNullish(element))
|
|
1617
|
+
continue;
|
|
1618
|
+
result.push(encodeAnyValue(element, logger2, state, depth));
|
|
1619
|
+
} catch {
|
|
1530
1620
|
result.push({
|
|
1531
|
-
|
|
1532
|
-
value: toOtlpAnyValue(value)
|
|
1621
|
+
stringValue: UNSERIALIZABLE_VALUE
|
|
1533
1622
|
});
|
|
1534
|
-
|
|
1623
|
+
}
|
|
1624
|
+
if (values.length > index)
|
|
1625
|
+
result.push({
|
|
1626
|
+
stringValue: TRUNCATED_VALUE
|
|
1627
|
+
});
|
|
1628
|
+
return result;
|
|
1629
|
+
}
|
|
1630
|
+
function encodeKeyValueList(attrs, logger2, state, depth) {
|
|
1631
|
+
const result = [];
|
|
1632
|
+
for (const key in attrs)
|
|
1633
|
+
if (propertyIsEnumerable.call(attrs, key)) {
|
|
1634
|
+
if (result.length >= MAX_JSON_SAFE_VALUE_ITEMS || state.remainingNodes <= 0) {
|
|
1635
|
+
logger2?.debug("Attributes truncated: the value exceeds the OTLP encoder budget");
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
try {
|
|
1639
|
+
const value = attrs[key];
|
|
1640
|
+
if (isNull(value) || isUndefined(value))
|
|
1641
|
+
continue;
|
|
1642
|
+
result.push({
|
|
1643
|
+
key: sanitizeString(key),
|
|
1644
|
+
value: encodeAnyValue(value, logger2, state, depth)
|
|
1645
|
+
});
|
|
1646
|
+
} catch {
|
|
1647
|
+
result.push({
|
|
1648
|
+
key: sanitizeString(key),
|
|
1649
|
+
value: {
|
|
1650
|
+
stringValue: UNSERIALIZABLE_VALUE
|
|
1651
|
+
}
|
|
1652
|
+
});
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1535
1655
|
return result;
|
|
1536
1656
|
}
|
|
1537
|
-
var OTLP_SEVERITY_MAP, DEFAULT_OTLP_SEVERITY;
|
|
1657
|
+
var OTLP_SEVERITY_MAP, DEFAULT_OTLP_SEVERITY, INT64_RANGE_LIMIT = 9223372036854776000, propertyIsEnumerable;
|
|
1538
1658
|
var init_logs_utils = __esm(() => {
|
|
1539
1659
|
init_utils();
|
|
1660
|
+
init_json_utils();
|
|
1540
1661
|
OTLP_SEVERITY_MAP = {
|
|
1541
1662
|
trace: {
|
|
1542
1663
|
text: "TRACE",
|
|
@@ -1564,16 +1685,17 @@ var init_logs_utils = __esm(() => {
|
|
|
1564
1685
|
}
|
|
1565
1686
|
};
|
|
1566
1687
|
DEFAULT_OTLP_SEVERITY = OTLP_SEVERITY_MAP.info;
|
|
1688
|
+
propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1567
1689
|
});
|
|
1568
1690
|
|
|
1569
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1691
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/logs/index.mjs
|
|
1570
1692
|
var init_logs = __esm(() => {
|
|
1571
1693
|
init_logs_utils();
|
|
1572
1694
|
init_types();
|
|
1573
1695
|
init_utils();
|
|
1574
1696
|
});
|
|
1575
1697
|
|
|
1576
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1698
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/metrics/metrics-utils.mjs
|
|
1577
1699
|
function msToUnixNano(ms) {
|
|
1578
1700
|
return String(ms) + "000000";
|
|
1579
1701
|
}
|
|
@@ -1647,7 +1769,7 @@ var init_metrics_utils = __esm(() => {
|
|
|
1647
1769
|
];
|
|
1648
1770
|
});
|
|
1649
1771
|
|
|
1650
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1772
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/metrics/config.mjs
|
|
1651
1773
|
function resolveMetricsConfig(config) {
|
|
1652
1774
|
const resourceAttributes = config?.resourceAttributes;
|
|
1653
1775
|
return {
|
|
@@ -1663,7 +1785,7 @@ function resolveMetricsConfig(config) {
|
|
|
1663
1785
|
var DEFAULT_FLUSH_INTERVAL_MS = 1e4, DEFAULT_MAX_SERIES_PER_FLUSH = 1000;
|
|
1664
1786
|
var init_config = () => {};
|
|
1665
1787
|
|
|
1666
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
1788
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/metrics/index.mjs
|
|
1667
1789
|
class PostHogMetrics {
|
|
1668
1790
|
constructor(_instance, _config, _logger) {
|
|
1669
1791
|
this._instance = _instance;
|
|
@@ -1916,7 +2038,7 @@ class PostHogMetrics {
|
|
|
1916
2038
|
};
|
|
1917
2039
|
byMetric.set(metricKey, metric);
|
|
1918
2040
|
}
|
|
1919
|
-
const attributes = toOtlpKeyValueList(state.attributes ?? {});
|
|
2041
|
+
const attributes = toOtlpKeyValueList(state.attributes ?? {}, this._logger);
|
|
1920
2042
|
const startNano = msToUnixNano(state.windowStartMs);
|
|
1921
2043
|
if (state.type === "count") {
|
|
1922
2044
|
const dp = {
|
|
@@ -1989,18 +2111,18 @@ var init_metrics = __esm(() => {
|
|
|
1989
2111
|
init_config();
|
|
1990
2112
|
});
|
|
1991
2113
|
|
|
1992
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2114
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/surveys/validation.mjs
|
|
1993
2115
|
var init_validation = __esm(() => {
|
|
1994
2116
|
init_types();
|
|
1995
2117
|
});
|
|
1996
2118
|
|
|
1997
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2119
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/cookie.mjs
|
|
1998
2120
|
var init_cookie = __esm(() => {
|
|
1999
2121
|
init_utils();
|
|
2000
2122
|
init_uuidv7();
|
|
2001
2123
|
});
|
|
2002
2124
|
|
|
2003
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2125
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/eventemitter.mjs
|
|
2004
2126
|
class SimpleEventEmitter {
|
|
2005
2127
|
constructor() {
|
|
2006
2128
|
this.events = {};
|
|
@@ -2023,7 +2145,7 @@ class SimpleEventEmitter {
|
|
|
2023
2145
|
}
|
|
2024
2146
|
var init_eventemitter = () => {};
|
|
2025
2147
|
|
|
2026
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2148
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
|
|
2027
2149
|
function getFilenameToChunkIdMap(stackParser) {
|
|
2028
2150
|
const chunkIdMap = globalThis._posthogChunkIds;
|
|
2029
2151
|
if (!chunkIdMap)
|
|
@@ -2061,7 +2183,7 @@ function getFilenameToChunkIdMap(stackParser) {
|
|
|
2061
2183
|
var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
|
|
2062
2184
|
var init_chunk_ids = () => {};
|
|
2063
2185
|
|
|
2064
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2186
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
|
|
2065
2187
|
class ErrorPropertiesBuilder {
|
|
2066
2188
|
constructor(coercers, stackParser, modifiers = []) {
|
|
2067
2189
|
this.coercers = coercers;
|
|
@@ -2187,7 +2309,7 @@ var init_error_properties_builder = __esm(() => {
|
|
|
2187
2309
|
init_chunk_ids();
|
|
2188
2310
|
});
|
|
2189
2311
|
|
|
2190
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2312
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
|
|
2191
2313
|
function createFrame(platform, filename, func, lineno, colno) {
|
|
2192
2314
|
const frame = {
|
|
2193
2315
|
platform,
|
|
@@ -2206,7 +2328,7 @@ var init_base = __esm(() => {
|
|
|
2206
2328
|
init_utils();
|
|
2207
2329
|
});
|
|
2208
2330
|
|
|
2209
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2331
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
|
|
2210
2332
|
var extractSafariExtensionDetails = (func, filename) => {
|
|
2211
2333
|
const isSafariExtension = func.indexOf("safari-extension") !== -1;
|
|
2212
2334
|
const isSafariWebExtension = func.indexOf("safari-web-extension") !== -1;
|
|
@@ -2222,7 +2344,7 @@ var init_safari = __esm(() => {
|
|
|
2222
2344
|
init_base();
|
|
2223
2345
|
});
|
|
2224
2346
|
|
|
2225
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2347
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
|
|
2226
2348
|
var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser = (line, platform) => {
|
|
2227
2349
|
const noFnParts = chromeRegexNoFnName.exec(line);
|
|
2228
2350
|
if (noFnParts) {
|
|
@@ -2252,7 +2374,7 @@ var init_chrome = __esm(() => {
|
|
|
2252
2374
|
chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
|
|
2253
2375
|
});
|
|
2254
2376
|
|
|
2255
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2377
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
|
|
2256
2378
|
var geckoREgex, geckoEvalRegex, geckoStackLineParser = (line, platform) => {
|
|
2257
2379
|
const parts = geckoREgex.exec(line);
|
|
2258
2380
|
if (parts) {
|
|
@@ -2279,7 +2401,7 @@ var init_gecko = __esm(() => {
|
|
|
2279
2401
|
geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
|
|
2280
2402
|
});
|
|
2281
2403
|
|
|
2282
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2404
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
|
|
2283
2405
|
var winjsRegex, winjsStackLineParser = (line, platform) => {
|
|
2284
2406
|
const parts = winjsRegex.exec(line);
|
|
2285
2407
|
return parts ? createFrame(platform, parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined) : undefined;
|
|
@@ -2289,7 +2411,7 @@ var init_winjs = __esm(() => {
|
|
|
2289
2411
|
winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
|
|
2290
2412
|
});
|
|
2291
2413
|
|
|
2292
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2414
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
|
|
2293
2415
|
var opera10Regex, opera10StackLineParser = (line, platform) => {
|
|
2294
2416
|
const parts = opera10Regex.exec(line);
|
|
2295
2417
|
return parts ? createFrame(platform, parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : undefined;
|
|
@@ -2303,7 +2425,7 @@ var init_opera = __esm(() => {
|
|
|
2303
2425
|
opera11Regex = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;
|
|
2304
2426
|
});
|
|
2305
2427
|
|
|
2306
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2428
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
|
|
2307
2429
|
function filenameIsInApp(filename, isNative = false) {
|
|
2308
2430
|
const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
|
|
2309
2431
|
return !isInternal && filename !== undefined && !filename.includes("node_modules/");
|
|
@@ -2379,7 +2501,7 @@ var init_node = __esm(() => {
|
|
|
2379
2501
|
PROMISE_INDEX = /^index \d+$/;
|
|
2380
2502
|
});
|
|
2381
2503
|
|
|
2382
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2504
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
|
|
2383
2505
|
function reverseAndStripFrames(stack) {
|
|
2384
2506
|
if (!stack.length)
|
|
2385
2507
|
return [];
|
|
@@ -2433,7 +2555,7 @@ var init_parsers = __esm(() => {
|
|
|
2433
2555
|
WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
2434
2556
|
});
|
|
2435
2557
|
|
|
2436
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2558
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
|
|
2437
2559
|
class DOMExceptionCoercer {
|
|
2438
2560
|
match(err) {
|
|
2439
2561
|
return this.isDOMException(err) || this.isDOMError(err);
|
|
@@ -2467,7 +2589,7 @@ var init_dom_exception_coercer = __esm(() => {
|
|
|
2467
2589
|
init_utils();
|
|
2468
2590
|
});
|
|
2469
2591
|
|
|
2470
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2592
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
|
|
2471
2593
|
class ErrorCoercer {
|
|
2472
2594
|
match(err) {
|
|
2473
2595
|
return isError(err);
|
|
@@ -2500,7 +2622,7 @@ var init_error_coercer = __esm(() => {
|
|
|
2500
2622
|
init_type_utils();
|
|
2501
2623
|
});
|
|
2502
2624
|
|
|
2503
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2625
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
|
|
2504
2626
|
class ErrorEventCoercer {
|
|
2505
2627
|
constructor() {}
|
|
2506
2628
|
match(err) {
|
|
@@ -2538,7 +2660,7 @@ var init_error_event_coercer = __esm(() => {
|
|
|
2538
2660
|
init_utils();
|
|
2539
2661
|
});
|
|
2540
2662
|
|
|
2541
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2663
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
|
|
2542
2664
|
class StringCoercer {
|
|
2543
2665
|
match(input) {
|
|
2544
2666
|
return typeof input == "string";
|
|
@@ -2571,7 +2693,7 @@ var init_string_coercer = __esm(() => {
|
|
|
2571
2693
|
ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
|
|
2572
2694
|
});
|
|
2573
2695
|
|
|
2574
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2696
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/types.mjs
|
|
2575
2697
|
var severityLevels;
|
|
2576
2698
|
var init_types2 = __esm(() => {
|
|
2577
2699
|
severityLevels = [
|
|
@@ -2584,7 +2706,7 @@ var init_types2 = __esm(() => {
|
|
|
2584
2706
|
];
|
|
2585
2707
|
});
|
|
2586
2708
|
|
|
2587
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2709
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
|
|
2588
2710
|
function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
2589
2711
|
const keys = Object.keys(err);
|
|
2590
2712
|
keys.sort();
|
|
@@ -2602,7 +2724,7 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
|
|
|
2602
2724
|
}
|
|
2603
2725
|
var init_utils2 = () => {};
|
|
2604
2726
|
|
|
2605
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2727
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
|
|
2606
2728
|
class ObjectCoercer {
|
|
2607
2729
|
match(candidate) {
|
|
2608
2730
|
return typeof candidate == "object" && candidate !== null;
|
|
@@ -2673,7 +2795,7 @@ var init_object_coercer = __esm(() => {
|
|
|
2673
2795
|
init_utils2();
|
|
2674
2796
|
});
|
|
2675
2797
|
|
|
2676
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2798
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
|
|
2677
2799
|
class EventCoercer {
|
|
2678
2800
|
match(err) {
|
|
2679
2801
|
return isEvent(err);
|
|
@@ -2693,7 +2815,7 @@ var init_event_coercer = __esm(() => {
|
|
|
2693
2815
|
init_utils2();
|
|
2694
2816
|
});
|
|
2695
2817
|
|
|
2696
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2818
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
|
|
2697
2819
|
class PrimitiveCoercer {
|
|
2698
2820
|
match(candidate) {
|
|
2699
2821
|
return isPrimitive(candidate);
|
|
@@ -2711,7 +2833,7 @@ var init_primitive_coercer = __esm(() => {
|
|
|
2711
2833
|
init_utils();
|
|
2712
2834
|
});
|
|
2713
2835
|
|
|
2714
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2836
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
|
|
2715
2837
|
class PromiseRejectionEventCoercer {
|
|
2716
2838
|
match(err) {
|
|
2717
2839
|
return isBuiltin(err, "PromiseRejectionEvent") || this.isCustomEventWrappingRejection(err);
|
|
@@ -2751,7 +2873,7 @@ var init_promise_rejection_event = __esm(() => {
|
|
|
2751
2873
|
init_utils();
|
|
2752
2874
|
});
|
|
2753
2875
|
|
|
2754
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2876
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
|
|
2755
2877
|
var init_coercers = __esm(() => {
|
|
2756
2878
|
init_dom_exception_coercer();
|
|
2757
2879
|
init_error_coercer();
|
|
@@ -2763,7 +2885,7 @@ var init_coercers = __esm(() => {
|
|
|
2763
2885
|
init_promise_rejection_event();
|
|
2764
2886
|
});
|
|
2765
2887
|
|
|
2766
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2888
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/utils.mjs
|
|
2767
2889
|
class ReduceableCache {
|
|
2768
2890
|
constructor(_maxSize) {
|
|
2769
2891
|
this._maxSize = _maxSize;
|
|
@@ -2790,7 +2912,7 @@ class ReduceableCache {
|
|
|
2790
2912
|
}
|
|
2791
2913
|
var init_utils3 = () => {};
|
|
2792
2914
|
|
|
2793
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
2915
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
|
|
2794
2916
|
function resolveExceptionStepsConfig(config) {
|
|
2795
2917
|
if (!config)
|
|
2796
2918
|
return {
|
|
@@ -2928,14 +3050,14 @@ var init_exception_steps = __esm(() => {
|
|
|
2928
3050
|
};
|
|
2929
3051
|
});
|
|
2930
3052
|
|
|
2931
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
3053
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/release.mjs
|
|
2932
3054
|
function getInjectedReleaseId() {
|
|
2933
3055
|
const injected = globalThis._posthogReleaseId;
|
|
2934
3056
|
return typeof injected == "string" && injected.length > 0 ? injected : undefined;
|
|
2935
3057
|
}
|
|
2936
3058
|
var init_release = () => {};
|
|
2937
3059
|
|
|
2938
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
3060
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/error-tracking/index.mjs
|
|
2939
3061
|
var exports_error_tracking = {};
|
|
2940
3062
|
__export(exports_error_tracking, {
|
|
2941
3063
|
DEFAULT_EXCEPTION_STEPS_CONFIG: () => DEFAULT_EXCEPTION_STEPS_CONFIG,
|
|
@@ -2974,7 +3096,7 @@ var init_error_tracking = __esm(() => {
|
|
|
2974
3096
|
init_release();
|
|
2975
3097
|
});
|
|
2976
3098
|
|
|
2977
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
3099
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
|
|
2978
3100
|
async function logFlushError(err) {
|
|
2979
3101
|
if (err instanceof PostHogFetchHttpError) {
|
|
2980
3102
|
let text = "";
|
|
@@ -3875,10 +3997,12 @@ class PostHogCoreStateless {
|
|
|
3875
3997
|
const body = options.body ? options.body : "";
|
|
3876
3998
|
let reqByteLength = -1;
|
|
3877
3999
|
try {
|
|
3878
|
-
reqByteLength = body instanceof Blob ? body.size : Buffer.byteLength(body, STRING_FORMAT);
|
|
4000
|
+
reqByteLength = body instanceof Blob ? body.size : body instanceof Uint8Array ? body.byteLength : Buffer.byteLength(body, STRING_FORMAT);
|
|
3879
4001
|
} catch {
|
|
3880
4002
|
if (body instanceof Blob)
|
|
3881
4003
|
reqByteLength = body.size;
|
|
4004
|
+
else if (body instanceof Uint8Array)
|
|
4005
|
+
reqByteLength = body.byteLength;
|
|
3882
4006
|
else {
|
|
3883
4007
|
const encoded = new TextEncoder().encode(body);
|
|
3884
4008
|
reqByteLength = encoded.length;
|
|
@@ -4093,7 +4217,7 @@ var init_posthog_core_stateless = __esm(() => {
|
|
|
4093
4217
|
};
|
|
4094
4218
|
});
|
|
4095
4219
|
|
|
4096
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
4220
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/posthog-core.mjs
|
|
4097
4221
|
var init_posthog_core = __esm(() => {
|
|
4098
4222
|
init_featureFlagUtils();
|
|
4099
4223
|
init_types();
|
|
@@ -4102,12 +4226,12 @@ var init_posthog_core = __esm(() => {
|
|
|
4102
4226
|
init_utils();
|
|
4103
4227
|
});
|
|
4104
4228
|
|
|
4105
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
4229
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/tracing-headers.mjs
|
|
4106
4230
|
var init_tracing_headers = __esm(() => {
|
|
4107
4231
|
init_type_utils();
|
|
4108
4232
|
});
|
|
4109
4233
|
|
|
4110
|
-
// node_modules/.bun/@posthog+core@1.48.
|
|
4234
|
+
// node_modules/.bun/@posthog+core@1.48.9/node_modules/@posthog/core/dist/index.mjs
|
|
4111
4235
|
var init_dist = __esm(() => {
|
|
4112
4236
|
init_featureFlagUtils();
|
|
4113
4237
|
init_gzip();
|
|
@@ -4125,7 +4249,7 @@ var init_dist = __esm(() => {
|
|
|
4125
4249
|
init_types();
|
|
4126
4250
|
});
|
|
4127
4251
|
|
|
4128
|
-
// node_modules/.bun/posthog-node@5.
|
|
4252
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs
|
|
4129
4253
|
import { constants as constants3 } from "node:fs";
|
|
4130
4254
|
import { open as promises_open } from "node:fs/promises";
|
|
4131
4255
|
import { isAbsolute as isAbsolute7 } from "node:path";
|
|
@@ -4412,7 +4536,7 @@ var init_context_lines_node = __esm(() => {
|
|
|
4412
4536
|
LRU_FILE_CONTENTS_FS_READ_FAILED = new exports_error_tracking.ReduceableCache(20);
|
|
4413
4537
|
});
|
|
4414
4538
|
|
|
4415
|
-
// node_modules/.bun/posthog-node@5.
|
|
4539
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs
|
|
4416
4540
|
import { isAbsolute as isAbsolute8, relative as relative4, sep as sep8 } from "node:path";
|
|
4417
4541
|
function createRelativePathModifier(basePath = process.cwd()) {
|
|
4418
4542
|
const isWindows = sep8 === "\\";
|
|
@@ -4429,11 +4553,11 @@ function createRelativePathModifier(basePath = process.cwd()) {
|
|
|
4429
4553
|
}
|
|
4430
4554
|
var init_relative_path_node = () => {};
|
|
4431
4555
|
|
|
4432
|
-
// node_modules/.bun/posthog-node@5.
|
|
4433
|
-
var version = "5.
|
|
4556
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/version.mjs
|
|
4557
|
+
var version = "5.51.1";
|
|
4434
4558
|
var init_version = () => {};
|
|
4435
4559
|
|
|
4436
|
-
// node_modules/.bun/posthog-node@5.
|
|
4560
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/types.mjs
|
|
4437
4561
|
var FeatureFlagError2;
|
|
4438
4562
|
var init_types3 = __esm(() => {
|
|
4439
4563
|
FeatureFlagError2 = {
|
|
@@ -4444,7 +4568,7 @@ var init_types3 = __esm(() => {
|
|
|
4444
4568
|
};
|
|
4445
4569
|
});
|
|
4446
4570
|
|
|
4447
|
-
// node_modules/.bun/posthog-node@5.
|
|
4571
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/feature-flag-evaluations.mjs
|
|
4448
4572
|
class FeatureFlagEvaluations {
|
|
4449
4573
|
constructor(init) {
|
|
4450
4574
|
this._host = init.host;
|
|
@@ -4460,10 +4584,10 @@ class FeatureFlagEvaluations {
|
|
|
4460
4584
|
this._accessed = init.accessed ?? new Set;
|
|
4461
4585
|
this._isSlice = init.isSlice ?? false;
|
|
4462
4586
|
}
|
|
4463
|
-
isEnabled(key) {
|
|
4587
|
+
isEnabled(key, options = {}) {
|
|
4464
4588
|
const flag = this._flags[key];
|
|
4465
4589
|
this._recordAccess(key);
|
|
4466
|
-
return flag?.enabled ?? false;
|
|
4590
|
+
return flag?.enabled ?? options.defaultValue ?? false;
|
|
4467
4591
|
}
|
|
4468
4592
|
getFlag(key) {
|
|
4469
4593
|
const flag = this._flags[key];
|
|
@@ -4580,7 +4704,7 @@ var init_feature_flag_evaluations = __esm(() => {
|
|
|
4580
4704
|
init_types3();
|
|
4581
4705
|
});
|
|
4582
4706
|
|
|
4583
|
-
// node_modules/.bun/posthog-node@5.
|
|
4707
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
|
|
4584
4708
|
async function hashSHA1(text) {
|
|
4585
4709
|
const subtle = globalThis.crypto?.subtle;
|
|
4586
4710
|
if (!subtle)
|
|
@@ -4591,7 +4715,7 @@ async function hashSHA1(text) {
|
|
|
4591
4715
|
}
|
|
4592
4716
|
var init_crypto = () => {};
|
|
4593
4717
|
|
|
4594
|
-
// node_modules/.bun/posthog-node@5.
|
|
4718
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
|
|
4595
4719
|
function setCustomErrorPrototype(error, constructor) {
|
|
4596
4720
|
error.name = constructor.name;
|
|
4597
4721
|
Error.captureStackTrace(error, constructor);
|
|
@@ -5543,7 +5667,7 @@ var init_feature_flags = __esm(() => {
|
|
|
5543
5667
|
};
|
|
5544
5668
|
});
|
|
5545
5669
|
|
|
5546
|
-
// node_modules/.bun/posthog-node@5.
|
|
5670
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
|
|
5547
5671
|
function splitNodeOptions(nodeOptions) {
|
|
5548
5672
|
const args = [];
|
|
5549
5673
|
let current = "";
|
|
@@ -5644,7 +5768,7 @@ var init_autocapture = __esm(() => {
|
|
|
5644
5768
|
STARTUP_UNHANDLED_REJECTION_MODE = getUnhandledRejectionMode();
|
|
5645
5769
|
});
|
|
5646
5770
|
|
|
5647
|
-
// node_modules/.bun/posthog-node@5.
|
|
5771
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
|
|
5648
5772
|
class error_tracking_ErrorTracking {
|
|
5649
5773
|
constructor(client, options, _logger) {
|
|
5650
5774
|
this.client = client;
|
|
@@ -5718,7 +5842,7 @@ var init_error_tracking2 = __esm(() => {
|
|
|
5718
5842
|
init_dist();
|
|
5719
5843
|
});
|
|
5720
5844
|
|
|
5721
|
-
// node_modules/.bun/posthog-node@5.
|
|
5845
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/storage-memory.mjs
|
|
5722
5846
|
class PostHogMemoryStorage {
|
|
5723
5847
|
getProperty(key) {
|
|
5724
5848
|
return this._memoryStorage[key];
|
|
@@ -5732,7 +5856,7 @@ class PostHogMemoryStorage {
|
|
|
5732
5856
|
}
|
|
5733
5857
|
var init_storage_memory = () => {};
|
|
5734
5858
|
|
|
5735
|
-
// node_modules/.bun/posthog-node@5.
|
|
5859
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/capture-v1/config.mjs
|
|
5736
5860
|
function isCaptureMode(value) {
|
|
5737
5861
|
return value === "v0" || value === "v1";
|
|
5738
5862
|
}
|
|
@@ -5742,14 +5866,14 @@ function resolveCaptureMode() {
|
|
|
5742
5866
|
}
|
|
5743
5867
|
var init_config2 = () => {};
|
|
5744
5868
|
|
|
5745
|
-
// node_modules/.bun/posthog-node@5.
|
|
5869
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/capture-v1/routing.mjs
|
|
5746
5870
|
function isLegacyOnlyEvent(message) {
|
|
5747
5871
|
return typeof message.event == "string" && message.event.startsWith(AI_EVENT_PREFIX);
|
|
5748
5872
|
}
|
|
5749
5873
|
var AI_EVENT_PREFIX = "$ai_", ANALYTICS_ROUTE = "analytics", AI_ROUTE = "ai";
|
|
5750
5874
|
var init_routing = () => {};
|
|
5751
5875
|
|
|
5752
|
-
// node_modules/.bun/posthog-node@5.
|
|
5876
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/capture-v1/errors.mjs
|
|
5753
5877
|
var CaptureV1Error;
|
|
5754
5878
|
var init_errors = __esm(() => {
|
|
5755
5879
|
CaptureV1Error = class CaptureV1Error extends Error {
|
|
@@ -5769,7 +5893,7 @@ var init_errors = __esm(() => {
|
|
|
5769
5893
|
};
|
|
5770
5894
|
});
|
|
5771
5895
|
|
|
5772
|
-
// node_modules/.bun/posthog-node@5.
|
|
5896
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/capture-v1/transform.mjs
|
|
5773
5897
|
function coerceBool(value) {
|
|
5774
5898
|
if (typeof value == "boolean")
|
|
5775
5899
|
return value;
|
|
@@ -5887,7 +6011,7 @@ var init_transform = __esm(() => {
|
|
|
5887
6011
|
];
|
|
5888
6012
|
});
|
|
5889
6013
|
|
|
5890
|
-
// node_modules/.bun/posthog-node@5.
|
|
6014
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/capture-v1/sender.mjs
|
|
5891
6015
|
class V1CaptureSender {
|
|
5892
6016
|
constructor(config, hooks) {
|
|
5893
6017
|
this.config = config;
|
|
@@ -6143,11 +6267,11 @@ var init_sender = __esm(() => {
|
|
|
6143
6267
|
]);
|
|
6144
6268
|
});
|
|
6145
6269
|
|
|
6146
|
-
// node_modules/.bun/posthog-node@5.
|
|
6270
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/ai-capture/routing.mjs
|
|
6147
6271
|
var AI_CAPTURE_ROUTE = "ai-capture", AI_CAPTURE_ENDPOINT_PATH = "/i/v0/ai/batch/", AI_MAX_EVENT_BYTES = 8388608, AI_BATCH_TARGET_BYTES = 5242880;
|
|
6148
6272
|
var init_routing2 = () => {};
|
|
6149
6273
|
|
|
6150
|
-
// node_modules/.bun/posthog-node@5.
|
|
6274
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/ai-capture/batching.mjs
|
|
6151
6275
|
function eventByteSize(message) {
|
|
6152
6276
|
return encoder.encode(safeJsonStringify(message)).length;
|
|
6153
6277
|
}
|
|
@@ -6189,7 +6313,7 @@ var init_batching = __esm(() => {
|
|
|
6189
6313
|
encoder = new TextEncoder;
|
|
6190
6314
|
});
|
|
6191
6315
|
|
|
6192
|
-
// node_modules/.bun/posthog-node@5.
|
|
6316
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/client.mjs
|
|
6193
6317
|
function emitDeprecationWarningOnce(id, message) {
|
|
6194
6318
|
if (_emittedDeprecations.has(id))
|
|
6195
6319
|
return;
|
|
@@ -6746,7 +6870,7 @@ var init_client = __esm(() => {
|
|
|
6746
6870
|
result = {
|
|
6747
6871
|
key,
|
|
6748
6872
|
enabled: flagDetail.enabled,
|
|
6749
|
-
variant: flagDetail.variant,
|
|
6873
|
+
variant: flagDetail.variant ?? undefined,
|
|
6750
6874
|
payload: parsedPayload
|
|
6751
6875
|
};
|
|
6752
6876
|
}
|
|
@@ -6947,6 +7071,7 @@ var init_client = __esm(() => {
|
|
|
6947
7071
|
const evaluationContext = this.createFeatureFlagEvaluationContext(resolvedDistinctId, groups, this.personPropertiesForLocalEvaluation(resolvedDistinctId, personProperties), groupProperties);
|
|
6948
7072
|
if (onlyEvaluateLocally == undefined)
|
|
6949
7073
|
onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
|
|
7074
|
+
const requestedFlagKeys = flagKeys ? new Set(flagKeys) : undefined;
|
|
6950
7075
|
const records = {};
|
|
6951
7076
|
let requestId;
|
|
6952
7077
|
let evaluatedAt;
|
|
@@ -6970,7 +7095,8 @@ var init_client = __esm(() => {
|
|
|
6970
7095
|
};
|
|
6971
7096
|
locallyEvaluatedKeys.add(key);
|
|
6972
7097
|
}
|
|
6973
|
-
const
|
|
7098
|
+
const requestedFlagMissingLocally = requestedFlagKeys !== undefined && Array.from(requestedFlagKeys).some((key) => this.featureFlagsPoller?.featureFlagsByKey[key] === undefined);
|
|
7099
|
+
const fallbackToFlags = localResult ? localResult.fallbackToFlags || requestedFlagMissingLocally : true;
|
|
6974
7100
|
if (fallbackToFlags && !onlyEvaluateLocally) {
|
|
6975
7101
|
const details = await super.getFeatureFlagDetailsStateless(evaluationContext.distinctId, evaluationContext.groups, personProperties, groupProperties, disableGeoip, flagKeys);
|
|
6976
7102
|
if (details) {
|
|
@@ -7031,6 +7157,11 @@ var init_client = __esm(() => {
|
|
|
7031
7157
|
payload
|
|
7032
7158
|
};
|
|
7033
7159
|
}
|
|
7160
|
+
if (requestedFlagKeys !== undefined) {
|
|
7161
|
+
for (const key of Object.keys(records))
|
|
7162
|
+
if (!requestedFlagKeys.has(key))
|
|
7163
|
+
delete records[key];
|
|
7164
|
+
}
|
|
7034
7165
|
return new FeatureFlagEvaluations({
|
|
7035
7166
|
host: this._getFeatureFlagEvaluationsHost(),
|
|
7036
7167
|
distinctId: resolvedDistinctId,
|
|
@@ -7439,7 +7570,7 @@ var init_client = __esm(() => {
|
|
|
7439
7570
|
};
|
|
7440
7571
|
});
|
|
7441
7572
|
|
|
7442
|
-
// node_modules/.bun/posthog-node@5.
|
|
7573
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/context/context.mjs
|
|
7443
7574
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7444
7575
|
|
|
7445
7576
|
class PostHogContext {
|
|
@@ -7471,15 +7602,13 @@ class PostHogContext {
|
|
|
7471
7602
|
}
|
|
7472
7603
|
var init_context = () => {};
|
|
7473
7604
|
|
|
7474
|
-
// node_modules/.bun/posthog-node@5.
|
|
7605
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/gzip.node.mjs
|
|
7475
7606
|
import { gzip } from "node:zlib";
|
|
7476
7607
|
import { promisify } from "node:util";
|
|
7477
7608
|
async function gzipCompress2(input, isDebug = true) {
|
|
7478
7609
|
try {
|
|
7479
7610
|
const compressed = await gzipAsync(input);
|
|
7480
|
-
return new
|
|
7481
|
-
new Uint8Array(compressed)
|
|
7482
|
-
]);
|
|
7611
|
+
return new Uint8Array(compressed);
|
|
7483
7612
|
} catch (error) {
|
|
7484
7613
|
if (isDebug)
|
|
7485
7614
|
console.error("Failed to gzip compress data", error);
|
|
@@ -7491,7 +7620,7 @@ var init_gzip_node = __esm(() => {
|
|
|
7491
7620
|
gzipAsync = promisify(gzip);
|
|
7492
7621
|
});
|
|
7493
7622
|
|
|
7494
|
-
// node_modules/.bun/posthog-node@5.
|
|
7623
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
|
|
7495
7624
|
function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
|
|
7496
7625
|
"error"
|
|
7497
7626
|
], sendExceptionsToPostHog = true } = {}) {
|
|
@@ -7566,22 +7695,22 @@ var init_sentry_integration = __esm(() => {
|
|
|
7566
7695
|
};
|
|
7567
7696
|
});
|
|
7568
7697
|
|
|
7569
|
-
// node_modules/.bun/posthog-node@5.
|
|
7698
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/tracing-headers.mjs
|
|
7570
7699
|
var init_tracing_headers2 = () => {};
|
|
7571
7700
|
|
|
7572
|
-
// node_modules/.bun/posthog-node@5.
|
|
7701
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/url-utils.mjs
|
|
7573
7702
|
var init_url_utils = __esm(() => {
|
|
7574
7703
|
init_dist();
|
|
7575
7704
|
});
|
|
7576
7705
|
|
|
7577
|
-
// node_modules/.bun/posthog-node@5.
|
|
7706
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/extensions/express.mjs
|
|
7578
7707
|
var init_express = __esm(() => {
|
|
7579
7708
|
init_error_tracking2();
|
|
7580
7709
|
init_tracing_headers2();
|
|
7581
7710
|
init_url_utils();
|
|
7582
7711
|
});
|
|
7583
7712
|
|
|
7584
|
-
// node_modules/.bun/posthog-node@5.
|
|
7713
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/exports.mjs
|
|
7585
7714
|
var init_exports = __esm(() => {
|
|
7586
7715
|
init_feature_flag_evaluations();
|
|
7587
7716
|
init_dist();
|
|
@@ -7590,7 +7719,7 @@ var init_exports = __esm(() => {
|
|
|
7590
7719
|
init_types3();
|
|
7591
7720
|
});
|
|
7592
7721
|
|
|
7593
|
-
// node_modules/.bun/posthog-node@5.
|
|
7722
|
+
// node_modules/.bun/posthog-node@5.51.1/node_modules/posthog-node/dist/entrypoints/index.node.mjs
|
|
7594
7723
|
var PostHog;
|
|
7595
7724
|
var init_index_node = __esm(() => {
|
|
7596
7725
|
init_module_node();
|
|
@@ -7833,7 +7962,7 @@ var package_default;
|
|
|
7833
7962
|
var init_package = __esm(() => {
|
|
7834
7963
|
package_default = {
|
|
7835
7964
|
name: "@oh-my-opencode/omo-codex",
|
|
7836
|
-
version: "5.0.0-beta.
|
|
7965
|
+
version: "5.0.0-beta.19",
|
|
7837
7966
|
type: "module",
|
|
7838
7967
|
private: true,
|
|
7839
7968
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|