dreative 0.3.1 → 0.3.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/cli/index.js +6 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -98,10 +98,13 @@ async function main() {
|
|
|
98
98
|
// Codex may not auto-discover skills — leave a pointer in AGENTS.md (idempotent).
|
|
99
99
|
const agentsMd = path.join(process.cwd(), "AGENTS.md");
|
|
100
100
|
const marker = "<!-- dreative-skill -->";
|
|
101
|
-
const pointer = `\n${marker}\n## Dreative (frontend design skill)\nFor ANY frontend design work (redesign, restyle, build pages, animations, motion, 3D, micro-interactions) or when the user says "open dreative" / wants to edit the UI visually: read \`.codex/skills/dreative/SKILL.md\` first and follow it.\n`;
|
|
101
|
+
const pointer = `\n${marker}\n## Dreative (frontend design skill)\nFor ANY frontend design work (redesign, restyle, build pages, animations, motion, 3D, micro-interactions) or when the user says "open dreative" / wants to edit the UI visually: read \`.codex/skills/dreative/SKILL.md\` first and follow it.\nIf that file is missing (e.g. fresh clone — \`.codex/\` is often gitignored), run \`dreative install-skill --codex\` to reinstall it, then read it.\n`;
|
|
102
102
|
const existing = fs.existsSync(agentsMd) ? fs.readFileSync(agentsMd, "utf-8") : "";
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
// Replace any previous dreative block (marker through the end of its paragraph) so upgrades refresh the pointer text.
|
|
104
|
+
const stripped = existing.includes(marker)
|
|
105
|
+
? existing.replace(new RegExp(`\\n?${marker}[\\s\\S]*?(?=\\n{2,}(?!$)|$)`), "")
|
|
106
|
+
: existing;
|
|
107
|
+
fs.writeFileSync(agentsMd, stripped + pointer);
|
|
105
108
|
}
|
|
106
109
|
console.log(`installed skill to ${destDir}${forCodex ? " (Codex mode: AGENTS.md pointer added)" : ""}`);
|
|
107
110
|
console.log(` core: SKILL.md, DESIGN.md`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dreative",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Layout-first visual editor skill for coding CLIs: extract your app's UI into editable wireframes, tweak with drag-drop + ref images, then the agent applies the diff back to your code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|