haansi 0.1.33 → 0.1.34
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/haansi.js +13 -5
- package/package.json +1 -1
package/dist/haansi.js
CHANGED
|
@@ -95,7 +95,7 @@ var require_package = __commonJS({
|
|
|
95
95
|
"package.json"(exports2, module2) {
|
|
96
96
|
module2.exports = {
|
|
97
97
|
name: "haansi",
|
|
98
|
-
version: "0.1.
|
|
98
|
+
version: "0.1.34",
|
|
99
99
|
description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
|
|
100
100
|
bin: {
|
|
101
101
|
haansi: "./dist/haansi.js"
|
|
@@ -22781,18 +22781,26 @@ var init_path_policy = __esm({
|
|
|
22781
22781
|
"use strict";
|
|
22782
22782
|
POSIX_LOCAL_PATH_RE = /\/(?:Users|home|private|tmp|var|etc|opt|workspace|root|mnt|Volumes)\/(?:[\p{L}\p{N}._@%+~=-]+\/)*[\p{L}\p{N}._@%+~=-]+\/?/gu;
|
|
22783
22783
|
DIFF_PREFIX_RE = /(?:^|\s)(?:---|\+\+\+)\s+([ab])(?=\/)/gmu;
|
|
22784
|
-
URL_LIKE_RE = /(?:[a-z][a-z0-9+.-]
|
|
22784
|
+
URL_LIKE_RE = /(?<![\p{L}\p{N}@._-])(?:[a-z][a-z0-9+.-]{0,31}:\/\/|(?:site|url|repo|link|source|host):\s*|git@)?(?:[\p{L}\p{N}-]{1,63}\.)+(?:com|org|net|io|dev|co|ai|gov|edu|sh|app|cloud|local)(?::\d{2,5})?(?:[/:][^\s"'<>\\]*)?/giu;
|
|
22785
22785
|
WINDOWS_LOCAL_PATH_RE = /[A-Za-z]:\\{1,2}(?:[\p{L}\p{N}._@%+~=-]+\\{1,2})*[\p{L}\p{N}._@%+~=-]+(?:\\{1,2})?/gu;
|
|
22786
22786
|
CODE_SHAPED_RE = new RegExp(
|
|
22787
22787
|
[
|
|
22788
22788
|
// Filenames with a known source/config extension.
|
|
22789
22789
|
String.raw`\b[\w.-]+\.(?:ts|tsx|js|jsx|mjs|cjs|py|go|rs|java|rb|sh|sql|json|yaml|yml|toml|md|lock)\b`,
|
|
22790
22790
|
// Dotted member access: two or more segments, at least one lowercase start.
|
|
22791
|
-
|
|
22791
|
+
// Do not start immediately after `@`: the hostname portion of an email is
|
|
22792
|
+
// not member access, and protecting it would suppress EMAIL_ADDRESS.
|
|
22793
|
+
String.raw`(?<![\w@])\b[a-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*){1,}\b`,
|
|
22792
22794
|
// snake_case and SCREAMING_SNAKE with an underscore.
|
|
22793
22795
|
String.raw`\b[A-Za-z$][\w$]*_[\w$]+\b`,
|
|
22794
|
-
// camelCase
|
|
22795
|
-
|
|
22796
|
+
// camelCase of two or more segments, e.g. `orgColumn`, `isPartitioned`,
|
|
22797
|
+
// `effectiveDenyList`. Requires a LOWERCASE start so an ordinary capitalised
|
|
22798
|
+
// word — including a surname like `McDonald` or `O'Brien` — is not matched.
|
|
22799
|
+
String.raw`\b[a-z][a-z0-9$]*(?:[A-Z][a-z0-9$]+)+\b`,
|
|
22800
|
+
// PascalCase of three or more segments, e.g. `PlatformQueryService`. Three
|
|
22801
|
+
// is deliberate: two would match ordinary two-word capitalised text, and a
|
|
22802
|
+
// person's name is exactly that shape when written without a space.
|
|
22803
|
+
String.raw`\b(?:[A-Z][a-z0-9$]+){3,}\b`,
|
|
22796
22804
|
// Box-drawing, block and geometric glyphs used in terminal output.
|
|
22797
22805
|
String.raw`[─-╿▀-▟■-◿]+`
|
|
22798
22806
|
].join("|"),
|