@oondemand/create-central-oon 0.6.3 → 0.6.4
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
CHANGED
package/src/index.js
CHANGED
|
@@ -91,9 +91,20 @@ function copiedDocsHash(docsDir, files) {
|
|
|
91
91
|
return hash.digest("hex");
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
function rootAgentEntrypoint() {
|
|
95
|
+
return [
|
|
96
|
+
"# OonCore — entrada para IA/Agents",
|
|
97
|
+
"",
|
|
98
|
+
"Leia o contrato canônico completo em [docs/AGENTS.md](docs/AGENTS.md).",
|
|
99
|
+
"",
|
|
100
|
+
"Confira \`.ooncore/manifest.json\` e execute \`npm run ooncore:docs:check\` antes de alterar o App.",
|
|
101
|
+
"",
|
|
102
|
+
].join("\n");
|
|
103
|
+
}
|
|
104
|
+
|
|
94
105
|
function entrypointContents(files = listDocFiles()) {
|
|
95
106
|
return {
|
|
96
|
-
"AGENTS.md":
|
|
107
|
+
"AGENTS.md": rootAgentEntrypoint(),
|
|
97
108
|
"CODEX.md": fs.readFileSync(path.join(DOCS_DIR, "CODEX.md"), "utf8"),
|
|
98
109
|
"context.generated.md": buildContext(files),
|
|
99
110
|
};
|
|
@@ -219,10 +230,9 @@ function syncDocs(opts = {}) {
|
|
|
219
230
|
removeDir(docsOutDir);
|
|
220
231
|
copyDocs(DOCS_DIR, docsOutDir);
|
|
221
232
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
233
|
+
fs.writeFileSync(path.join(outDir, "AGENTS.md"), rootAgentEntrypoint());
|
|
234
|
+
const codexSource = path.join(DOCS_DIR, "CODEX.md");
|
|
235
|
+
if (fs.existsSync(codexSource)) fs.copyFileSync(codexSource, path.join(outDir, "CODEX.md"));
|
|
226
236
|
|
|
227
237
|
fs.writeFileSync(path.join(outDir, "context.generated.md"), buildContext(files));
|
|
228
238
|
fs.writeFileSync(path.join(outDir, "manifest.json"), `${JSON.stringify(buildManifest(files), null, 2)}\n`);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"sync:metadata": "oonCore-front sync:metadata"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@oondemand/oon-core-front": "^0.6.
|
|
14
|
+
"@oondemand/oon-core-front": "^0.6.4",
|
|
15
15
|
"@chakra-ui/react": "^3.13.0",
|
|
16
16
|
"@emotion/react": "^11.14.0",
|
|
17
17
|
"@tanstack/react-query": "^5.65.0",
|