create-agentic-starter 0.1.19 → 0.1.21

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/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  #!/usr/bin/env node
2
- import{mkdir as D,rm as G,writeFile as v}from"fs/promises";import g from"path";import{readFile as R,writeFile as f}from"fs/promises";import h from"path";function w(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(t,r,a,s){let m=new RegExp(`${w(a)}[\\s\\S]*?${w(s)}\\n?`,"m");if(m.test(t))return t.replace(m,`${r}
3
- `);let o=t.endsWith(`
2
+ import{mkdir as G,rm as v,writeFile as I}from"fs/promises";import u from"path";import{readFile as A,writeFile as w}from"fs/promises";import M from"path";function E(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function N(e,r,s,a){let n=new RegExp(`${E(s)}[\\s\\S]*?${E(a)}\\n?`,"m");if(n.test(e))return e.replace(n,`${r}
3
+ `);let c=e.endsWith(`
4
4
  `)?`
5
5
  `:`
6
6
 
7
- `;return`${t}${o}${r}
8
- `}async function u(t,r,a,s,m){let o=h.join(t,r);try{let c=await R(o,"utf8"),F=A(c,a,s,m);await f(o,F,"utf8")}catch(c){if(c.code!=="ENOENT")throw c;await f(o,`${a}
9
- `,"utf8")}}import{existsSync as M,readFileSync as $,realpathSync as E}from"fs";import n from"path";import{fileURLToPath as N}from"url";function e(t){let r=[n.dirname(E(N(import.meta.url))),process.argv[1]?n.dirname(E(process.argv[1])):null,process.argv[1]?n.dirname(n.resolve(process.argv[1])):null].filter(a=>!!a);for(let a of r){let s=n.join(a,t);if(M(s))return $(s,"utf8")}throw new Error(`Template not found: ${t}. Checked: ${r.join(", ")}`)}var j="AGENTS.md",i="<!-- from create-agentic-starter:agents:start -->",p="<!-- from create-agentic-starter:agents:end -->",P=e("./templates/meta/agents.md").trimEnd(),x=`${i}
10
- ${P}
11
- ${p}
12
- `;var T={".agentic/commands/project-requirements.md":e("./templates/commands/project-requirements.md"),".agentic/commands/architecture.md":e("./templates/commands/architecture.md"),".agentic/commands/create-brd.md":e("./templates/commands/create-brd.md"),".agentic/commands/create-frd.md":e("./templates/commands/create-frd.md"),".agentic/commands/create-estimate.md":e("./templates/commands/create-estimate.md"),".agentic/commands/create-proposal.md":e("./templates/commands/create-proposal.md"),".agentic/commands/create-plan.md":e("./templates/commands/create-plan.md"),".agentic/commands/create-tasks.md":e("./templates/commands/create-tasks.md"),".agentic/commands/implementation.md":e("./templates/commands/implementation.md")};var k={".agentic/init.md":e("./templates/core/init.md"),".agentic/context.md":e("./templates/core/context.md")};var d=[".agentic"],l=[".agentic",".agentic/commands",".agentic/workspace",".agentic/workspace/project",".agentic/workspace/memory",".agentic/workspace/memory/features",".agentic/workspace/documents",".agentic/workspace/scripts",".docs",".docs/brd",".docs/frd",".docs/estimate",".docs/proposal",".docs/plan",".docs/tasks"];var y={".agentic/workspace/memory/project-state.md":e("./templates/memory/project-state.md"),".agentic/workspace/memory/decisions.md":e("./templates/memory/decisions.md"),".agentic/workspace/memory/next-actions.md":e("./templates/memory/next-actions.md"),".agentic/workspace/memory/handoff.md":e("./templates/memory/handoff.md")};var _={".agentic/workspace/scripts/README.md":e("./templates/scripts/README.md"),".agentic/workspace/scripts/_shared.js":e("./templates/scripts/_shared.js"),".agentic/workspace/scripts/generate_brd.js":e("./templates/scripts/generate_brd.js"),".agentic/workspace/scripts/generate_frd.js":e("./templates/scripts/generate_frd.js"),".agentic/workspace/scripts/generate_estimate.js":e("./templates/scripts/generate_estimate.js"),".agentic/workspace/scripts/generate_proposal.js":e("./templates/scripts/generate_proposal.js"),".agentic/workspace/scripts/generate_plan.js":e("./templates/scripts/generate_plan.js"),".agentic/workspace/scripts/generate_tasks.js":e("./templates/scripts/generate_tasks.js")};var S=()=>({...k,...T,...y,..._});async function O(t){await Promise.all(d.map(r=>G(g.join(t,r),{recursive:!0,force:!0})))}async function I(t){await Promise.all(l.map(r=>D(g.join(t,r),{recursive:!0})))}async function b(t){let r=S();await Promise.all(Object.entries(r).map(([a,s])=>v(g.join(t,a),s,"utf8")))}async function C(){let t=process.cwd();await O(t),await I(t),await b(t),await u(t,j,x,i,p),console.log("create-agentic-starter: ready"),console.log("Next: Start a new chat with @.agentic/init.md")}C().catch(t=>{let r=t instanceof Error?t.message:String(t);console.error(`create-agentic-starter: failed to scaffold project. ${r}`),process.exitCode=1});
7
+ `;return`${e}${c}${r}
8
+ `}async function T(e,r,s,a,n){let c=M.join(e,r);try{let o=await A(c,"utf8"),h=N(o,s,a,n);await w(c,h,"utf8")}catch(o){if(o.code!=="ENOENT")throw o;await w(c,`${s}
9
+ `,"utf8")}}import{existsSync as b,readFileSync as P,realpathSync as j}from"fs";import i from"path";import{fileURLToPath as B}from"url";function t(e){let r=[i.dirname(j(B(import.meta.url))),process.argv[1]?i.dirname(j(process.argv[1])):null,process.argv[1]?i.dirname(i.resolve(process.argv[1])):null].filter(s=>!!s);for(let s of r){let a=i.join(s,e);if(b(a))return P(a,"utf8")}throw new Error(`Template not found: ${e}. Checked: ${r.join(", ")}`)}var x="AGENTS.md",p="<!-- from create-agentic-starter:agents:start -->",d="<!-- from create-agentic-starter:agents:end -->",D=t("./templates/meta/agents.md").trimEnd(),y=`${p}
10
+ ${D}
11
+ ${d}
12
+ `;var k={".agentic/commands/project-requirements.md":t("./templates/commands/project-requirements.md"),".agentic/commands/architecture.md":t("./templates/commands/architecture.md"),".agentic/commands/create-brd.md":t("./templates/commands/create-brd.md"),".agentic/commands/create-frd.md":t("./templates/commands/create-frd.md"),".agentic/commands/create-estimate.md":t("./templates/commands/create-estimate.md"),".agentic/commands/create-proposal.md":t("./templates/commands/create-proposal.md"),".agentic/commands/create-plan.md":t("./templates/commands/create-plan.md"),".agentic/commands/create-tasks.md":t("./templates/commands/create-tasks.md"),".agentic/commands/implementation.md":t("./templates/commands/implementation.md")};var _={".agentic/init.md":t("./templates/core/init.md"),".agentic/context.md":t("./templates/core/context.md")};var l=[".agentic"],g=[".agentic",".agentic/commands",".agentic/workspace",".agentic/workspace/project",".agentic/workspace/memory",".agentic/workspace/memory/features",".agentic/workspace/documents",".agentic/workspace/scripts",".docs",".docs/brd",".docs/frd",".docs/estimate",".docs/proposal",".docs/plan",".docs/tasks"];var $={".agentic/workspace/memory/project-state.md":t("./templates/memory/project-state.md"),".agentic/workspace/memory/decisions.md":t("./templates/memory/decisions.md"),".agentic/workspace/memory/next-actions.md":t("./templates/memory/next-actions.md"),".agentic/workspace/memory/handoff.md":t("./templates/memory/handoff.md")};var F={".agentic/workspace/scripts/README.md":t("./templates/scripts/README.md"),".agentic/workspace/scripts/_shared.js":t("./templates/scripts/_shared.js"),".agentic/workspace/scripts/generate_brd.js":t("./templates/scripts/generate_brd.js"),".agentic/workspace/scripts/generate_frd.js":t("./templates/scripts/generate_frd.js"),".agentic/workspace/scripts/generate_estimate.js":t("./templates/scripts/generate_estimate.js"),".agentic/workspace/scripts/generate_proposal.js":t("./templates/scripts/generate_proposal.js"),".agentic/workspace/scripts/generate_plan.js":t("./templates/scripts/generate_plan.js"),".agentic/workspace/scripts/generate_tasks.js":t("./templates/scripts/generate_tasks.js")};var S=()=>({..._,...k,...$,...F});var m={reset:"\x1B[0m",bold:"\x1B[1m",red:"\x1B[31m",green:"\x1B[32m",cyan:"\x1B[36m"};function f(e,r){return process.stdout.isTTY?`${r}${e}${m.reset}`:e}function R(e,r){let s=[e,...r],a=Math.max(...s.map(o=>o.length)),n=`+${"-".repeat(a+2)}+`,c=s.map(o=>`| ${o.padEnd(a)} |`);return[n,...c,n].join(`
13
+ `)}async function O(e){await Promise.all(l.map(r=>v(u.join(e,r),{recursive:!0,force:!0})))}async function C(e){await Promise.all(g.map(r=>G(u.join(e,r),{recursive:!0})))}async function H(e){let r=S();await Promise.all(Object.entries(r).map(([s,a])=>I(u.join(e,s),a,"utf8")))}async function K(){let e=process.cwd();await O(e),await C(e),await H(e),await T(e,x,y,p,d);let r=R(f("create-agentic-starter ready",`${m.bold}${m.green}`),[`Folder: ${e}`,`Next: ${f("@.agentic/init.md",`${m.bold}${m.cyan}`)}`]);console.log(r)}K().catch(e=>{let r=e instanceof Error?e.message:String(e),s=R(f("create-agentic-starter failed",`${m.bold}${m.red}`),[r]);console.error(s),process.exitCode=1});
@@ -23,15 +23,21 @@ Read:
23
23
  - `.agentic/workspace/memory/project-state.md`
24
24
  - `.agentic/workspace/memory/handoff.md`
25
25
  - `.agentic/workspace/memory/features/<feature>.md`
26
- 7. Update `.agentic/workspace/memory/decisions.md` only if the work creates a meaningful product or technical decision.
27
- 8. Update `.agentic/workspace/memory/requirements.md` only if the request changes product scope or behavior expectations.
28
- 9. Update `.agentic/workspace/memory/architecture.md` only if the work changes architecture or important technical direction.
29
- 10. Keep `project-state.md` and `handoff.md` short.
30
- 11. Use one file per feature under `.agentic/workspace/memory/features/` with kebab-case naming such as:
26
+ 7. Always update the feature status after the work. Use clear states such as:
27
+ - `planned`
28
+ - `in-progress`
29
+ - `completed`
30
+ - `blocked`
31
+ 8. If implementation work is finished in this session, mark the feature as `completed` or `partially completed` clearly in the feature file and reflect that in `project-state.md`.
32
+ 9. Update `.agentic/workspace/memory/decisions.md` only if the work creates a meaningful product or technical decision.
33
+ 10. Update `.agentic/workspace/memory/requirements.md` only if the request changes product scope or behavior expectations.
34
+ 11. Update `.agentic/workspace/memory/architecture.md` only if the work changes architecture or important technical direction.
35
+ 12. Keep `project-state.md` and `handoff.md` short.
36
+ 13. Use one file per feature under `.agentic/workspace/memory/features/` with kebab-case naming such as:
31
37
  - `landing-page.md`
32
38
  - `about-page.md`
33
39
  - `checkout.md`
34
- 12. Use this feature file structure:
40
+ 14. Use this feature file structure:
35
41
  - Feature Name
36
42
  - Current Status
37
43
  - Summary
@@ -42,6 +48,8 @@ Read:
42
48
  - Decisions Affecting This Feature
43
49
  - Related Outputs or Docs
44
50
  - Next Steps
51
+ 15. `project-state.md` must also be updated so the feature appears under the correct section such as current priorities, in progress, blockers, or completed work.
52
+ 16. `handoff.md` must mention whether the implementation was completed, partially completed, or left blocked, and what should happen next.
45
53
 
46
54
  When the implementation work is complete enough, tell the user the available next options and make it clear they can also say what they want to do next.
47
55
 
@@ -105,10 +105,11 @@ Use `.docs/` for user-facing deliverables:
105
105
  - the relevant feature file under `.agentic/workspace/memory/features/`
106
106
  - `.agentic/workspace/memory/project-state.md`
107
107
  - `.agentic/workspace/memory/handoff.md`
108
- 14. Update `.agentic/workspace/memory/decisions.md` only when the work creates a meaningful product or technical decision.
109
- 15. Update `.agentic/workspace/memory/requirements.md` or `.agentic/workspace/memory/architecture.md` only when the current work actually changes them.
110
- 16. Prefer the target project root for Node-based export dependencies when a usable Node setup already exists there.
111
- 17. If root is not suitable, ask the user which path should be used for dependency installation.
112
- 18. Ask the user before running any install command.
113
- 19. Ask only the minimum blocking questions required to continue.
114
- 20. Always end by telling the user the exact next command to run or listing the available next options.
108
+ 14. When implementation work changes feature progress, always update the feature status and reflect that same status in `project-state.md` and `handoff.md`.
109
+ 15. Update `.agentic/workspace/memory/decisions.md` only when the work creates a meaningful product or technical decision.
110
+ 16. Update `.agentic/workspace/memory/requirements.md` or `.agentic/workspace/memory/architecture.md` only when the current work actually changes them.
111
+ 17. Prefer the target project root for Node-based export dependencies when a usable Node setup already exists there.
112
+ 18. If root is not suitable, ask the user which path should be used for dependency installation.
113
+ 19. Ask the user before running any install command.
114
+ 20. Ask only the minimum blocking questions required to continue.
115
+ 21. Always end by telling the user the exact next command to run or listing the available next options.
@@ -10,7 +10,7 @@
10
10
 
11
11
  ## In Progress
12
12
 
13
- - Add active workstreams or features here
13
+ - Add active workstreams or features here with status
14
14
 
15
15
  ## Completed Outputs
16
16
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  ## Active Features
20
20
 
21
- - Add links or references to feature files under `features/`
21
+ - Add links or references to feature files under `features/` with current status
22
22
 
23
23
  ## Blockers
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-agentic-starter",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Scaffold a minimal AI-powered project delivery workflow inside the current folder.",
5
5
  "license": "MIT",
6
6
  "type": "module",