@open-livex-wiki/core 0.2.1 → 0.2.2
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/coverage/handles.d.ts +5 -0
- package/dist/coverage/handles.d.ts.map +1 -0
- package/dist/coverage/handles.js +116 -0
- package/dist/coverage/handles.js.map +1 -0
- package/dist/coverage/targets.d.ts +22 -0
- package/dist/coverage/targets.d.ts.map +1 -0
- package/dist/coverage/targets.js +117 -0
- package/dist/coverage/targets.js.map +1 -0
- package/dist/coverage/visuals.d.ts +19 -0
- package/dist/coverage/visuals.d.ts.map +1 -0
- package/dist/coverage/visuals.js +103 -0
- package/dist/coverage/visuals.js.map +1 -0
- package/dist/coverage.d.ts.map +1 -1
- package/dist/coverage.js +36 -233
- package/dist/coverage.js.map +1 -1
- package/dist/discover/designators.d.ts +26 -0
- package/dist/discover/designators.d.ts.map +1 -0
- package/dist/discover/designators.js +361 -0
- package/dist/discover/designators.js.map +1 -0
- package/dist/discover/document-types.d.ts +90 -0
- package/dist/discover/document-types.d.ts.map +1 -0
- package/dist/discover/document-types.js +2 -0
- package/dist/discover/document-types.js.map +1 -0
- package/dist/discover/index-builder.d.ts +28 -0
- package/dist/discover/index-builder.d.ts.map +1 -0
- package/dist/discover/index-builder.js +286 -0
- package/dist/discover/index-builder.js.map +1 -0
- package/dist/discover/postings.d.ts +9 -0
- package/dist/discover/postings.d.ts.map +1 -0
- package/dist/discover/postings.js +183 -0
- package/dist/discover/postings.js.map +1 -0
- package/dist/discover/query-expansion.d.ts +4 -0
- package/dist/discover/query-expansion.d.ts.map +1 -0
- package/dist/discover/query-expansion.js +109 -0
- package/dist/discover/query-expansion.js.map +1 -0
- package/dist/discover/scene-document.d.ts +40 -0
- package/dist/discover/scene-document.d.ts.map +1 -0
- package/dist/discover/scene-document.js +417 -0
- package/dist/discover/scene-document.js.map +1 -0
- package/dist/discover/scene-ranking.d.ts +14 -0
- package/dist/discover/scene-ranking.d.ts.map +1 -0
- package/dist/discover/scene-ranking.js +217 -0
- package/dist/discover/scene-ranking.js.map +1 -0
- package/dist/discover/scoring.d.ts +34 -0
- package/dist/discover/scoring.d.ts.map +1 -0
- package/dist/discover/scoring.js +425 -0
- package/dist/discover/scoring.js.map +1 -0
- package/dist/discover/subscene.d.ts +11 -0
- package/dist/discover/subscene.d.ts.map +1 -0
- package/dist/discover/subscene.js +121 -0
- package/dist/discover/subscene.js.map +1 -0
- package/dist/discover/term-scoring.d.ts +25 -0
- package/dist/discover/term-scoring.d.ts.map +1 -0
- package/dist/discover/term-scoring.js +374 -0
- package/dist/discover/term-scoring.js.map +1 -0
- package/dist/discover/tokenizer.d.ts +35 -0
- package/dist/discover/tokenizer.d.ts.map +1 -0
- package/dist/discover/tokenizer.js +282 -0
- package/dist/discover/tokenizer.js.map +1 -0
- package/dist/discover.d.ts +5 -61
- package/dist/discover.d.ts.map +1 -1
- package/dist/discover.js +54 -2733
- package/dist/discover.js.map +1 -1
- package/dist/loader/config.d.ts +29 -0
- package/dist/loader/config.d.ts.map +1 -0
- package/dist/loader/config.js +80 -0
- package/dist/loader/config.js.map +1 -0
- package/dist/loader/domain.d.ts +19 -0
- package/dist/loader/domain.d.ts.map +1 -0
- package/dist/loader/domain.js +152 -0
- package/dist/loader/domain.js.map +1 -0
- package/dist/loader/paths.d.ts +4 -0
- package/dist/loader/paths.d.ts.map +1 -0
- package/dist/loader/paths.js +29 -0
- package/dist/loader/paths.js.map +1 -0
- package/dist/loader/scene.d.ts +16 -0
- package/dist/loader/scene.d.ts.map +1 -0
- package/dist/loader/scene.js +266 -0
- package/dist/loader/scene.js.map +1 -0
- package/dist/loader.d.ts +2 -2
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +11 -506
- package/dist/loader.js.map +1 -1
- package/dist/schemas.d.ts +14 -11
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -1
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/markdown-scanner.d.ts +20 -0
- package/dist/utils/markdown-scanner.d.ts.map +1 -0
- package/dist/utils/markdown-scanner.js +303 -0
- package/dist/utils/markdown-scanner.js.map +1 -0
- package/dist/utils/markdown.d.ts +48 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.js +370 -0
- package/dist/utils/markdown.js.map +1 -0
- package/dist/utils/paths.d.ts +38 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +257 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/regexp.d.ts +2 -0
- package/dist/utils/regexp.d.ts.map +1 -0
- package/dist/utils/regexp.js +4 -0
- package/dist/utils/regexp.js.map +1 -0
- package/dist/utils/symbols.d.ts +9 -0
- package/dist/utils/symbols.d.ts.map +1 -0
- package/dist/utils/symbols.js +324 -0
- package/dist/utils/symbols.js.map +1 -0
- package/dist/utils.d.ts +4 -96
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +3 -1250
- package/dist/utils.js.map +1 -1
- package/dist/validator/anchor-checker.d.ts +26 -0
- package/dist/validator/anchor-checker.d.ts.map +1 -0
- package/dist/validator/anchor-checker.js +299 -0
- package/dist/validator/anchor-checker.js.map +1 -0
- package/dist/validator/git-remotes.d.ts +12 -0
- package/dist/validator/git-remotes.d.ts.map +1 -0
- package/dist/validator/git-remotes.js +223 -0
- package/dist/validator/git-remotes.js.map +1 -0
- package/dist/validator/source-resolver.d.ts +29 -0
- package/dist/validator/source-resolver.d.ts.map +1 -0
- package/dist/validator/source-resolver.js +315 -0
- package/dist/validator/source-resolver.js.map +1 -0
- package/dist/validator.d.ts +3 -45
- package/dist/validator.d.ts.map +1 -1
- package/dist/validator.js +6 -823
- package/dist/validator.js.map +1 -1
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -1,97 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export declare const SHA256_HEX_REGEX: RegExp;
|
|
6
|
-
/**
|
|
7
|
-
* Normalizes filesystem path separators (`\`) to POSIX forward slashes (`/`).
|
|
8
|
-
*/
|
|
9
|
-
export declare function toPosixPath(p: string): string;
|
|
10
|
-
/**
|
|
11
|
-
* Returns `true` iff `rawPath` is a non-empty relative path strictly contained inside a root
|
|
12
|
-
* directory (rejects POSIX/Windows absolute paths, UNC paths, NUL/control chars, `.` root alias,
|
|
13
|
-
* and `..` traversal segments). Browser-safe (zero `node:*` imports).
|
|
14
|
-
*/
|
|
15
|
-
export declare function isSafeContainedRelativePath(rawPath: string): boolean;
|
|
16
|
-
export interface MarkdownHeading {
|
|
17
|
-
level: number;
|
|
18
|
-
text: string;
|
|
19
|
-
line: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Extracts ATX Markdown headings (`#` .. `######`), ignoring fenced code blocks,
|
|
23
|
-
* HTML comments (`<!-- ... -->`), and indented code blocks (4+ spaces / `\t`).
|
|
24
|
-
*/
|
|
25
|
-
export declare function extractMarkdownHeadings(markdown: string): MarkdownHeading[];
|
|
26
|
-
/**
|
|
27
|
-
* Checks whether Section 3 (`3. 链路详解` / `3. Chain Details`) contains at least one explicit
|
|
28
|
-
* chain subheading (`###` under `## 3.`, or `##`/`###` under `# 3.`), ignoring fenced code blocks,
|
|
29
|
-
* HTML comments, and indented code blocks.
|
|
30
|
-
*/
|
|
31
|
-
export declare function hasExplicitChainSubheadings(markdown: string): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Extracts core interface chains from Section 3 (`3. 链路详解` / `3. Chain Details`).
|
|
34
|
-
* Supports `# 3. 链路详解` or `## 3. 链路详解` with `##` or `###` chain headings (as in `img-10.png`),
|
|
35
|
-
* ignoring headings inside fenced code blocks, HTML comments, or indented code blocks.
|
|
36
|
-
* Falls back to named `- **Chain Name**: ...` bullets or a single Section 3 overview chain when
|
|
37
|
-
* Section 3 contains non-empty prose without explicit `###` chain subheadings.
|
|
38
|
-
*/
|
|
39
|
-
export declare function extractSceneChains(markdown: string): ChainSummary[];
|
|
40
|
-
/**
|
|
41
|
-
* Parses Section 4 (`4. 待确认项` / `4. Pending Confirmations`) and determines whether
|
|
42
|
-
* active unresolved confirmation items remain. Ignores headings and body lines inside
|
|
43
|
-
* HTML comments (`<!-- ... -->`), fenced code blocks, and indented code blocks (4+ spaces / `\t`).
|
|
44
|
-
*/
|
|
45
|
-
export declare function extractPendingConfirmations(markdown: string): {
|
|
46
|
-
sectionFound: boolean;
|
|
47
|
-
items: string[];
|
|
48
|
-
hasActiveItems: boolean;
|
|
49
|
-
isEmptyBody?: boolean;
|
|
50
|
-
};
|
|
51
|
-
export declare function parseSceneMarkdownStructure(markdown: string): {
|
|
52
|
-
headings: string[];
|
|
53
|
-
chains: ChainSummary[];
|
|
54
|
-
pending: {
|
|
55
|
-
sectionFound: boolean;
|
|
56
|
-
items: string[];
|
|
57
|
-
hasActiveItems: boolean;
|
|
58
|
-
isEmptyBody?: boolean;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Checks whether `symbol` exists in live source `content`.
|
|
63
|
-
* - Strips `//...` line comments, `/*...*\/` block comments, and string literals first so dead code
|
|
64
|
-
* or log strings never pass anchor verification.
|
|
65
|
-
* - For `Owner#member` or `Owner.member`, extracts `Owner`'s balanced `{ ... }` declaration block
|
|
66
|
-
* (`class` / `interface` / `type` / `const` / etc.) and verifies `member` is declared inside `Owner`.
|
|
67
|
-
*/
|
|
68
|
-
export declare function containsSymbol(content: string, symbol: string): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Matches a POSIX-normalized changed file path against optional `RepositoryRef.paths`
|
|
71
|
-
* entries, supporting both directory/file prefixes (`src/checkin`) and globs (`src/checkin/**`, `*.yaml`).
|
|
72
|
-
*/
|
|
73
|
-
export declare function matchesWatchPaths(changedFile: string, watchPaths?: string[]): boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Detects unedited scaffold placeholder tokens (`<API / Handler>`, `<Service / Coordinator>`)
|
|
76
|
-
* in visible Markdown headings/prose while ignoring fenced code blocks and HTML comments.
|
|
77
|
-
*/
|
|
78
|
-
export declare function detectSceneContentPlaceholders(markdown: string): string[];
|
|
79
|
-
/**
|
|
80
|
-
* Strips embedded credentials (`username` / `password` / PAT tokens) from Git remote URLs
|
|
81
|
-
* so sanitized URLs are safe to persist in `wiki.config.yaml`, frontmatter, JSON, and logs.
|
|
82
|
-
* Browser-safe (zero `node:*` imports).
|
|
83
|
-
*
|
|
84
|
-
* - For `http://`, `https://`, `ssh://`, `git://` (and `git+...://`) URLs: parses via `new URL(...)`,
|
|
85
|
-
* clears `username` and `password`, and returns the clean URL string.
|
|
86
|
-
* - For SCP-style SSH URLs (`user@host:path` or `user:secret@host:path`): preserves `user@host:path`
|
|
87
|
-
* (e.g. `git@github.com:org/repo.git`) while stripping `:secret`!
|
|
88
|
-
*/
|
|
89
|
-
export declare function sanitizeGitRemoteUrl(rawUrl: string): string;
|
|
90
|
-
/**
|
|
91
|
-
* Normalizes a Git remote URL or `<org>/<repo>` identifier into a canonical lowercase key
|
|
92
|
-
* so SSH (`git@host:group/sub/repo.git`), HTTPS (`https://host/group/sub/repo.git`), and `ssh://`
|
|
93
|
-
* URLs compare identically (`host/group/sub/repo`), while preserving explicit non-default ports
|
|
94
|
-
* (`host:port/group/sub/repo`) and full multi-segment namespace paths.
|
|
95
|
-
*/
|
|
96
|
-
export declare function normalizeGitUrlKey(url: string): string;
|
|
1
|
+
export { detectSceneContentPlaceholders, extractMarkdownHeadings, extractPendingConfirmations, extractSceneChains, hasExplicitChainSubheadings, parseSceneMarkdownStructure, } from "./utils/markdown.js";
|
|
2
|
+
export type { MarkdownHeading } from "./utils/markdown-scanner.js";
|
|
3
|
+
export { COMMIT_SHA_REGEX, isSafeContainedRelativePath, KEBAB_CASE_REGEX, matchesWatchPaths, normalizeGitUrlKey, SCENE_REF_REGEX, SHA256_HEX_REGEX, sanitizeGitRemoteUrl, toPosixPath, } from "./utils/paths.js";
|
|
4
|
+
export { containsSymbol } from "./utils/symbols.js";
|
|
97
5
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|