@creativeaitools/agent-wiki 2.0.0 → 2.0.1
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/ONBOARD.md +1 -1
- package/dist/src/lifecycle.js +1 -2
- package/dist/src/upgrade.js +10 -1
- package/package.json +1 -1
package/ONBOARD.md
CHANGED
|
@@ -30,7 +30,7 @@ agent-wiki --wiki MyProject workspace pending --workspace-root . --json
|
|
|
30
30
|
|
|
31
31
|
`agent-wiki init` owns folder creation, local config creation, and bundled template installation by default. `agent-wiki doctor` is the read-only lifecycle check. `agent-wiki onboard --check` is the deterministic first-run report for agents and automation. It emits structured JSON with wiki type, config state, doctor issues, required docs/skills, optional tool availability, import-link state, and next steps.
|
|
32
32
|
|
|
33
|
-
Use plain `agent-wiki init` for normal fresh wikis. It includes the bundled docs
|
|
33
|
+
Use plain `agent-wiki init` for normal fresh wikis. It includes the bundled docs and skills needed for a fresh agent to operate it immediately. Use `--no-config` or `--no-template` only for advanced bare-skeleton setup or tests.
|
|
34
34
|
|
|
35
35
|
Before editing wiki content, run the deterministic CLI onboarding sequence:
|
|
36
36
|
|
package/dist/src/lifecycle.js
CHANGED
|
@@ -10,11 +10,10 @@ export const REQUIRED_TEMPLATE_FILES = [
|
|
|
10
10
|
"AGENTS.md",
|
|
11
11
|
"WIKI.md",
|
|
12
12
|
"README.md",
|
|
13
|
-
"package.json",
|
|
14
13
|
"skills/compile-wiki/SKILL.md",
|
|
15
14
|
"skills/extract-knowledge-primitives/SKILL.md"
|
|
16
15
|
];
|
|
17
|
-
export const TEMPLATE_ROOT_FILES = ["AGENTS.md", "WIKI.md", "README.md", "ONBOARD.md", "INBOX.md", "AGENT-WIKI-SPEC-v2.md"
|
|
16
|
+
export const TEMPLATE_ROOT_FILES = ["AGENTS.md", "WIKI.md", "README.md", "ONBOARD.md", "INBOX.md", "AGENT-WIKI-SPEC-v2.md"];
|
|
18
17
|
export const TEMPLATE_DIRECTORIES = ["skills"];
|
|
19
18
|
export const TEMPLATE_OPTIONAL_FILES = ["_system/config.example.json"];
|
|
20
19
|
export function resolveInitPaths(options) {
|
package/dist/src/upgrade.js
CHANGED
|
@@ -30,7 +30,6 @@ const TEMPLATE_FILES = [
|
|
|
30
30
|
"ONBOARD.md",
|
|
31
31
|
"INBOX.md",
|
|
32
32
|
"AGENT-WIKI-SPEC-v2.md",
|
|
33
|
-
"package.json",
|
|
34
33
|
"_system/config.example.json"
|
|
35
34
|
];
|
|
36
35
|
const TEMPLATE_DIRS = ["skills"];
|
|
@@ -126,6 +125,9 @@ function planMigration(root, templateRoot) {
|
|
|
126
125
|
if (existsSync(join(root, path)))
|
|
127
126
|
actions.push({ action: "remove", path, message: `Remove obsolete Python-era path: ${path}` });
|
|
128
127
|
}
|
|
128
|
+
if (isCopiedAgentWikiPackage(join(root, "package.json"))) {
|
|
129
|
+
actions.push({ action: "remove", path: "package.json", message: "Remove copied Agent Wiki npm package metadata from wiki root" });
|
|
130
|
+
}
|
|
129
131
|
const wikiType = detectWikiType(readJsonObject(join(root, "_system/config.json")));
|
|
130
132
|
for (const path of requiredFoldersForDoctor(wikiType)) {
|
|
131
133
|
if (!existsSync(join(root, path)))
|
|
@@ -142,6 +144,13 @@ function planMigration(root, templateRoot) {
|
|
|
142
144
|
}
|
|
143
145
|
return actions.sort((a, b) => `${a.action}:${a.path ?? ""}`.localeCompare(`${b.action}:${b.path ?? ""}`));
|
|
144
146
|
}
|
|
147
|
+
function isCopiedAgentWikiPackage(path) {
|
|
148
|
+
const packageJson = readJsonObject(path);
|
|
149
|
+
if (!packageJson)
|
|
150
|
+
return false;
|
|
151
|
+
const name = String(packageJson.name ?? "");
|
|
152
|
+
return name === "@creativeaitools/agent-wiki" || name === "@jesse-lane-ai/agent-wiki" || name === "agent-wiki";
|
|
153
|
+
}
|
|
145
154
|
function rewriteCandidateFiles(root) {
|
|
146
155
|
const dirs = [".", "skills", "_system/skills"];
|
|
147
156
|
const files = [];
|