@vitaliysimkin/create-t-platform-app 1.0.0-next.0 → 1.0.0-next.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.
Files changed (2) hide show
  1. package/index.js +9 -7
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -74,13 +74,15 @@ if (!o['no-install']) {
74
74
  })
75
75
  if (r.status !== 0) fail('npm install failed.')
76
76
  // agent material ships with the core: AGENTS.md and `.claude/skills/t-platform-*`
77
- const agents = join(target, 'node_modules/@vitaliysimkin/t-platform-ui/agents')
78
- if (!existsSync(agents)) fail(`${agents}: not found.`)
79
- cpSync(join(agents, 'AGENTS.section.md'), join(target, 'AGENTS.md'))
80
- for (const s of readdirSync(join(agents, 'skills')))
81
- cpSync(join(agents, 'skills', s), join(target, '.claude/skills', `t-platform-${s}`), {
82
- recursive: true,
83
- })
77
+ const core = join(target, 'node_modules/@vitaliysimkin/t-platform-ui')
78
+ if (!existsSync(core)) fail(`${core}: not found.`)
79
+ cpSync(join(core, 'agents/AGENTS.section.md'), join(target, 'AGENTS.md'))
80
+ const agents = spawnSync(
81
+ process.execPath,
82
+ [join(core, 'cli/t-platform.js'), 'agents', 'install'],
83
+ { cwd: target, stdio: 'inherit' },
84
+ )
85
+ if (agents.status !== 0) fail('agents install failed.')
84
86
  }
85
87
  console.log(`Next:\n cd ${relative(process.cwd(), target) || '.'}\n npm run dev:mock`)
86
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitaliysimkin/create-t-platform-app",
3
- "version": "1.0.0-next.0",
3
+ "version": "1.0.0-next.2",
4
4
  "description": "Create a t-platform service: FE app + small BE glue (`npm create @vitaliysimkin/t-platform-app`).",
5
5
  "type": "module",
6
6
  "repository": {
@@ -21,4 +21,4 @@
21
21
  "engines": {
22
22
  "node": ">=22"
23
23
  }
24
- }
24
+ }