create-next-pro-cli 0.1.30 → 0.1.31
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 +8 -0
- package/dist/bin.bun.js +19 -0
- package/dist/bin.node.js +21 -0
- package/dist/bin.node.js.map +1 -1
- package/package.json +1 -1
- package/templates/Projects/default/.agents/skills/create-next-pro-addapi/SKILL.md +61 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-addcomponent/SKILL.md +67 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-addlanguage/SKILL.md +68 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-addlib/SKILL.md +65 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-addpage/SKILL.md +84 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-addtext/SKILL.md +63 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-create-project/SKILL.md +76 -0
- package/templates/Projects/default/.agents/skills/create-next-pro-rmpage/SKILL.md +66 -0
- package/templates/Projects/default/AGENTS.md +83 -0
- package/templates/Projects/default/README.md +23 -9
- package/templates/Projects/default/tests/consumer/validate-template.ts +2 -0
- package/templates/Projects/default/tests/unit/template-baseline.test.ts +9 -0
package/README.md
CHANGED
|
@@ -132,9 +132,15 @@ The Next.js route and its interface are separate: `src/app` owns routing while `
|
|
|
132
132
|
|
|
133
133
|
```text
|
|
134
134
|
my-app/
|
|
135
|
+
├── .agents/
|
|
136
|
+
│ └── skills/
|
|
137
|
+
│ ├── create-next-pro-create-project/
|
|
138
|
+
│ ├── create-next-pro-addpage/
|
|
139
|
+
│ └── ...
|
|
135
140
|
├── .env.example
|
|
136
141
|
├── .gitignore
|
|
137
142
|
├── .prettierignore
|
|
143
|
+
├── AGENTS.md
|
|
138
144
|
├── bun.lock
|
|
139
145
|
├── cnp.config.json
|
|
140
146
|
├── messages/
|
|
@@ -202,6 +208,8 @@ my-app/
|
|
|
202
208
|
|
|
203
209
|
Template working files (`.env`, the nested Git repository, caches, screenshots, and test results) are not copied into generated projects. The CLI creates `cnp.config.json` with the project name and selected alias.
|
|
204
210
|
|
|
211
|
+
Generated projects also include concise root guidance in `AGENTS.md` and eight instruction-only command skills under `.agents/skills`. Agents should prefer the deterministic `--json` contract and read the matching skill before invoking a project mutation.
|
|
212
|
+
|
|
205
213
|
## CLI architecture
|
|
206
214
|
|
|
207
215
|
```text
|
package/dist/bin.bun.js
CHANGED
|
@@ -6846,6 +6846,24 @@ import { fileURLToPath } from "url";
|
|
|
6846
6846
|
|
|
6847
6847
|
// src/core/template-manifest.ts
|
|
6848
6848
|
import path8 from "path";
|
|
6849
|
+
|
|
6850
|
+
// src/core/agent-guidance.ts
|
|
6851
|
+
var PROJECT_SKILL_NAMES = [
|
|
6852
|
+
"create-next-pro-create-project",
|
|
6853
|
+
"create-next-pro-addcomponent",
|
|
6854
|
+
"create-next-pro-addpage",
|
|
6855
|
+
"create-next-pro-addlib",
|
|
6856
|
+
"create-next-pro-addapi",
|
|
6857
|
+
"create-next-pro-addlanguage",
|
|
6858
|
+
"create-next-pro-addtext",
|
|
6859
|
+
"create-next-pro-rmpage"
|
|
6860
|
+
];
|
|
6861
|
+
var PROJECT_AGENT_GUIDANCE_FILES = [
|
|
6862
|
+
"AGENTS.md",
|
|
6863
|
+
...PROJECT_SKILL_NAMES.map((name) => `.agents/skills/${name}/SKILL.md`)
|
|
6864
|
+
];
|
|
6865
|
+
|
|
6866
|
+
// src/core/template-manifest.ts
|
|
6849
6867
|
var TEMPLATE_DENY_NAMES = new Set([
|
|
6850
6868
|
".env",
|
|
6851
6869
|
".git",
|
|
@@ -6893,6 +6911,7 @@ async function templateManifest(root, fs) {
|
|
|
6893
6911
|
async function validateScaffoldTemplate(root, fs) {
|
|
6894
6912
|
const manifest = await templateManifest(root, fs);
|
|
6895
6913
|
for (const required of [
|
|
6914
|
+
...PROJECT_AGENT_GUIDANCE_FILES.map((relative) => relative.split("/").join(path8.sep)),
|
|
6896
6915
|
"package.json",
|
|
6897
6916
|
"tsconfig.json",
|
|
6898
6917
|
".env.example",
|
package/dist/bin.node.js
CHANGED
|
@@ -2067,6 +2067,24 @@ import { fileURLToPath } from "url";
|
|
|
2067
2067
|
|
|
2068
2068
|
// src/core/template-manifest.ts
|
|
2069
2069
|
import path8 from "path";
|
|
2070
|
+
|
|
2071
|
+
// src/core/agent-guidance.ts
|
|
2072
|
+
var PROJECT_SKILL_NAMES = [
|
|
2073
|
+
"create-next-pro-create-project",
|
|
2074
|
+
"create-next-pro-addcomponent",
|
|
2075
|
+
"create-next-pro-addpage",
|
|
2076
|
+
"create-next-pro-addlib",
|
|
2077
|
+
"create-next-pro-addapi",
|
|
2078
|
+
"create-next-pro-addlanguage",
|
|
2079
|
+
"create-next-pro-addtext",
|
|
2080
|
+
"create-next-pro-rmpage"
|
|
2081
|
+
];
|
|
2082
|
+
var PROJECT_AGENT_GUIDANCE_FILES = [
|
|
2083
|
+
"AGENTS.md",
|
|
2084
|
+
...PROJECT_SKILL_NAMES.map((name) => `.agents/skills/${name}/SKILL.md`)
|
|
2085
|
+
];
|
|
2086
|
+
|
|
2087
|
+
// src/core/template-manifest.ts
|
|
2070
2088
|
var TEMPLATE_DENY_NAMES = /* @__PURE__ */ new Set([
|
|
2071
2089
|
".env",
|
|
2072
2090
|
".git",
|
|
@@ -2116,6 +2134,9 @@ async function templateManifest(root, fs) {
|
|
|
2116
2134
|
async function validateScaffoldTemplate(root, fs) {
|
|
2117
2135
|
const manifest = await templateManifest(root, fs);
|
|
2118
2136
|
for (const required of [
|
|
2137
|
+
...PROJECT_AGENT_GUIDANCE_FILES.map(
|
|
2138
|
+
(relative) => relative.split("/").join(path8.sep)
|
|
2139
|
+
),
|
|
2119
2140
|
"package.json",
|
|
2120
2141
|
"tsconfig.json",
|
|
2121
2142
|
".env.example",
|