@leji-org/leji 1.0.0
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/README.md +36 -0
- package/assets-manifest.json +25 -0
- package/cli.json +82 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/conformance.d.ts +24 -0
- package/dist/commands/conformance.js +111 -0
- package/dist/commands/conformance.js.map +1 -0
- package/dist/commands/docs.d.ts +32 -0
- package/dist/commands/docs.js +196 -0
- package/dist/commands/docs.js.map +1 -0
- package/dist/commands/freshness.d.ts +21 -0
- package/dist/commands/freshness.js +41 -0
- package/dist/commands/freshness.js.map +1 -0
- package/dist/commands/indexgen.d.ts +55 -0
- package/dist/commands/indexgen.js +256 -0
- package/dist/commands/indexgen.js.map +1 -0
- package/dist/commands/init.d.ts +28 -0
- package/dist/commands/init.js +378 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/validate.d.ts +25 -0
- package/dist/commands/validate.js +359 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +324 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/findings.d.ts +17 -0
- package/dist/lib/findings.js +29 -0
- package/dist/lib/findings.js.map +1 -0
- package/dist/lib/frontmatter.d.ts +14 -0
- package/dist/lib/frontmatter.js +28 -0
- package/dist/lib/frontmatter.js.map +1 -0
- package/dist/lib/fsx.d.ts +21 -0
- package/dist/lib/fsx.js +100 -0
- package/dist/lib/fsx.js.map +1 -0
- package/dist/lib/git.d.ts +10 -0
- package/dist/lib/git.js +55 -0
- package/dist/lib/git.js.map +1 -0
- package/dist/lib/layer.d.ts +32 -0
- package/dist/lib/layer.js +138 -0
- package/dist/lib/layer.js.map +1 -0
- package/dist/lib/manifest.d.ts +62 -0
- package/dist/lib/manifest.js +54 -0
- package/dist/lib/manifest.js.map +1 -0
- package/dist/lib/schemas.d.ts +38 -0
- package/dist/lib/schemas.js +57 -0
- package/dist/lib/schemas.js.map +1 -0
- package/package.json +61 -0
- package/schemas/README.md +3 -0
- package/schemas/agent-profile.schema.json +129 -0
- package/schemas/context-changelog.schema.json +150 -0
- package/schemas/context-index.schema.json +137 -0
- package/schemas/context-manifest.schema.json +253 -0
- package/schemas/decision-record.schema.json +84 -0
- package/templates/README.md +5 -0
- package/templates/agent-profile.md +25 -0
- package/templates/agents/core.md +27 -0
- package/templates/boot-profile.md +39 -0
- package/templates/decision-record.md +28 -0
- package/templates/docs-viewer-assets/PROVENANCE.txt +18 -0
- package/templates/docs-viewer-assets/docsify-sidebar-collapse.min.css +24 -0
- package/templates/docs-viewer-assets/docsify-sidebar-collapse.min.js +149 -0
- package/templates/docs-viewer-assets/docsify.min.js +1 -0
- package/templates/docs-viewer-assets/search.min.js +314 -0
- package/templates/docs-viewer-assets/vue.css +1063 -0
- package/templates/docs-viewer.html +63 -0
- package/templates/leji.json +56 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<!--
|
|
3
|
+
Docsify viewer for a Leji context layer. Docsify (v4.13.1), its theme, and the
|
|
4
|
+
search + sidebar-collapse plugins are vendored locally under docs-viewer-assets/
|
|
5
|
+
and written alongside this file by `leji docs`; nothing is loaded from a remote
|
|
6
|
+
CDN. The layer name and homepage are injected by the SDK as a JSON config blob
|
|
7
|
+
(not interpolated into JS source), so a layer name can never break out of the
|
|
8
|
+
script context.
|
|
9
|
+
-->
|
|
10
|
+
<html lang="en">
|
|
11
|
+
<head>
|
|
12
|
+
<meta charset="UTF-8" />
|
|
13
|
+
<title>{{LEJI_NAME_HTML}}</title>
|
|
14
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
15
|
+
<link rel="stylesheet" href="docs-viewer-assets/vue.css" />
|
|
16
|
+
<link rel="stylesheet" href="docs-viewer-assets/docsify-sidebar-collapse.min.css" />
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="app">Loading the context layer…</div>
|
|
20
|
+
<script id="leji-docsify-config" type="application/json">
|
|
21
|
+
{{DOCSIFY_CONFIG}}
|
|
22
|
+
</script>
|
|
23
|
+
<script>
|
|
24
|
+
window.$docsify = Object.assign(JSON.parse(document.getElementById('leji-docsify-config').textContent), {
|
|
25
|
+
loadSidebar: true,
|
|
26
|
+
subMaxLevel: 3,
|
|
27
|
+
auto2top: true,
|
|
28
|
+
// Collapse sibling groups; auto-expand the active trail (sidebar-collapse plugin).
|
|
29
|
+
sidebarDisplayLevel: 1,
|
|
30
|
+
search: {
|
|
31
|
+
paths: 'auto',
|
|
32
|
+
placeholder: 'Search the context layer…',
|
|
33
|
+
noData: 'No matching documents.',
|
|
34
|
+
depth: 6,
|
|
35
|
+
namespace: 'leji-docs',
|
|
36
|
+
},
|
|
37
|
+
plugins: [
|
|
38
|
+
function stripFrontmatter(hook) {
|
|
39
|
+
// Context layer documents carry YAML frontmatter for tooling; readers shouldn't see it.
|
|
40
|
+
hook.beforeEach(function (content) {
|
|
41
|
+
return content.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '');
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
function poweredByLeji(hook) {
|
|
45
|
+
hook.mounted(function () {
|
|
46
|
+
var sidebar = document.querySelector('.sidebar');
|
|
47
|
+
if (!sidebar || sidebar.querySelector('.leji-powered')) return;
|
|
48
|
+
var f = document.createElement('div');
|
|
49
|
+
f.className = 'leji-powered';
|
|
50
|
+
f.innerHTML =
|
|
51
|
+
'Powered by <a href="https://leji.org" target="_blank" rel="noopener noreferrer">' +
|
|
52
|
+
'<span class="spark" aria-hidden="true">✦</span> <strong>Leji</strong></a>';
|
|
53
|
+
sidebar.appendChild(f);
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
});
|
|
58
|
+
</script>
|
|
59
|
+
<script src="docs-viewer-assets/docsify.min.js"></script>
|
|
60
|
+
<script src="docs-viewer-assets/search.min.js"></script>
|
|
61
|
+
<script src="docs-viewer-assets/docsify-sidebar-collapse.min.js"></script>
|
|
62
|
+
</body>
|
|
63
|
+
</html>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://leji.org/schemas/v1.0/context-manifest.schema.json",
|
|
3
|
+
"leji": "1.0",
|
|
4
|
+
"name": "your-team-context",
|
|
5
|
+
"description": "Shared context layer for <team/product>.",
|
|
6
|
+
"rootPath": "docs/",
|
|
7
|
+
"bootProfilePath": "docs/boot-profile.md",
|
|
8
|
+
"categories": {
|
|
9
|
+
"domain": {
|
|
10
|
+
"paths": [
|
|
11
|
+
"docs/domain/"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"system": {
|
|
15
|
+
"paths": [
|
|
16
|
+
"docs/system/"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"practice": {
|
|
20
|
+
"paths": [
|
|
21
|
+
"docs/practice/"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"governance": {
|
|
25
|
+
"paths": [
|
|
26
|
+
"docs/governance/"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"decisions": {
|
|
30
|
+
"paths": [
|
|
31
|
+
"docs/decisions/"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"machine": {
|
|
36
|
+
"indexPath": "docs/context-index.json",
|
|
37
|
+
"changelogPath": "docs/context-changelog.json",
|
|
38
|
+
"agentProfilesPath": "docs/agents/",
|
|
39
|
+
"decisionRecordsPath": "docs/decisions/"
|
|
40
|
+
},
|
|
41
|
+
"docs": {
|
|
42
|
+
"port": 5354
|
|
43
|
+
},
|
|
44
|
+
"agents": {
|
|
45
|
+
"thought-partner": "docs/agents/<profile>.md"
|
|
46
|
+
},
|
|
47
|
+
"owners": {
|
|
48
|
+
"primary": {
|
|
49
|
+
"name": "<named owner>",
|
|
50
|
+
"contact": "<email>"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"conformance": {
|
|
54
|
+
"claimedLevel": "core"
|
|
55
|
+
}
|
|
56
|
+
}
|