llm-wiki-kit 0.1.10 → 0.1.12
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/package.json +1 -1
- package/src/project-state.js +41 -0
- package/src/redaction.js +1 -1
package/package.json
CHANGED
package/src/project-state.js
CHANGED
|
@@ -69,6 +69,47 @@ These rules supersede older OMX/OMC/\`omx_wiki/\` LLM Wiki rules for this projec
|
|
|
69
69
|
- \`outputs/\`: live Q&A summaries, reports, and generated briefs.
|
|
70
70
|
- \`procedures/\`: detailed operating rules for ingest, query, lint, and security.
|
|
71
71
|
|
|
72
|
+
## Core Rules
|
|
73
|
+
- Never modify \`raw/\` source material except to append redacted session envelopes generated by hooks.
|
|
74
|
+
- Do not state unsupported claims as facts.
|
|
75
|
+
- Mark inference explicitly.
|
|
76
|
+
- Add \`source_ids\` or file references for important claims.
|
|
77
|
+
- Update \`wiki/index.md\` and \`wiki/log.md\` whenever new durable knowledge is created.
|
|
78
|
+
- Preserve contradictions in \`Contradictions\` or \`Open Questions\` instead of overwriting them.
|
|
79
|
+
- Ask before reading private or secret-looking files.
|
|
80
|
+
|
|
81
|
+
## Page Format
|
|
82
|
+
Use YAML frontmatter when creating wiki pages:
|
|
83
|
+
|
|
84
|
+
\`\`\`yaml
|
|
85
|
+
---
|
|
86
|
+
title: ""
|
|
87
|
+
type: "source | concept | entity | decision | architecture | debugging | context | query | session-log | convention"
|
|
88
|
+
source_ids: []
|
|
89
|
+
status: "draft | reviewed | stale"
|
|
90
|
+
last_updated: "YYYY-MM-DD"
|
|
91
|
+
confidence: "high | medium | low"
|
|
92
|
+
---
|
|
93
|
+
\`\`\`
|
|
94
|
+
|
|
95
|
+
## Operations
|
|
96
|
+
- ingest: read new raw files, create or update wiki pages, then update \`wiki/index.md\` and \`wiki/log.md\`.
|
|
97
|
+
- query: start from \`wiki/index.md\`, read relevant wiki pages, answer with source references, and save reusable answers.
|
|
98
|
+
- lint: find stale pages, orphan pages, broken wiki links, missing sources, duplicate concepts, contradictions, and missing links.`,
|
|
99
|
+
`# LLM Wiki Agent Rules
|
|
100
|
+
|
|
101
|
+
Generated by llm-wiki-kit <version>.
|
|
102
|
+
|
|
103
|
+
## Purpose
|
|
104
|
+
Maintain a living Markdown LLM Wiki from immutable source files and redacted Codex/Claude Code session events.
|
|
105
|
+
These rules supersede older OMX/OMC/\`omx_wiki/\` LLM Wiki rules for this project.
|
|
106
|
+
|
|
107
|
+
## Directories
|
|
108
|
+
- \`raw/\`: immutable or redacted source material. Never edit original source captures.
|
|
109
|
+
- \`wiki/\`: AI-maintained knowledge pages.
|
|
110
|
+
- \`outputs/\`: live Q&A summaries, reports, and generated briefs.
|
|
111
|
+
- \`procedures/\`: detailed operating rules for ingest, query, lint, and security.
|
|
112
|
+
|
|
72
113
|
## Core Rules
|
|
73
114
|
- Never modify \`raw/\` source material except to append redacted session envelopes generated by hooks.
|
|
74
115
|
- Do not state unsupported claims as facts.
|
package/src/redaction.js
CHANGED
|
@@ -15,7 +15,7 @@ const AUTH_PATTERNS = [
|
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
name: 'generic-token',
|
|
18
|
-
pattern: /\b(?:sk|pk|ghp|gho|github_pat|npm_|xoxb|xoxp|AKIA)[A-Za-z0-9._-]{16,}\b/g,
|
|
18
|
+
pattern: /\b(?:(?:sk|pk)-[A-Za-z0-9._-]{16,}|(?:sk|pk)_(?:live|test)_[A-Za-z0-9._-]{16,}|(?:ghp|gho|github_pat|npm_|xoxb|xoxp|AKIA)[A-Za-z0-9._-]{16,})\b/g,
|
|
19
19
|
},
|
|
20
20
|
];
|
|
21
21
|
|