create-takt-sdd 0.12.0 → 0.14.0

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.
@@ -1,2 +1,2 @@
1
1
  // Auto-generated by scripts/embed-takt-ref.js — do not edit
2
- export const TAKT_REF_HASH = "d2c4acd3de2bd383f753905bc7cb7efac3c92d4c";
2
+ export const TAKT_REF_HASH = "6a3c64a033be250c7a1a18eb52ed5d71f6b5eedc";
package/dist/i18n.js CHANGED
@@ -16,9 +16,9 @@ const en = {
16
16
  scriptsCreated: "Created package.json with npm scripts and devDependencies",
17
17
  depsAdded: (keys) => `Added devDependencies: ${keys.join(", ")}`,
18
18
  depsUpdated: (keys) => `Updated devDependencies: ${keys.join(", ")}`,
19
- installingSkills: "Installing takt skills to .agent/skills/...",
19
+ installingSkills: "Installing takt skills to .agents/skills/...",
20
20
  skillInstalled: (name) => `Installed skill: ${name}`,
21
- skillSymlinked: (name, target) => `Symlinked ${target}/${name} -> .agent/skills/${name}`,
21
+ skillSymlinked: (name, target) => `Symlinked ${target}/${name} -> .agents/skills/${name}`,
22
22
  downloadingTaktRefs: (refsPath) => `Downloading takt builtins to ${refsPath}/...`,
23
23
  taktRefsInstalled: "Installed takt references (builtins, docs)",
24
24
  taktRefsSkipped: "Takt references already exist, skipping",
@@ -35,7 +35,7 @@ Options:
35
35
  --lang <en|ja> Message language (default: en)
36
36
  --force Overwrite existing .takt/ directory (ignored if manifest exists)
37
37
  --dry-run Preview without writing files
38
- --without-skills Skip installing takt skills to .agent/skills/
38
+ --without-skills Skip installing takt skills to .agents/skills/
39
39
  --layout <mode> Directory layout: auto, modern, legacy (default: auto)
40
40
  --refs-path <path> Path for takt references (default: references/takt)
41
41
  -h, --help Show this help
@@ -79,9 +79,9 @@ const ja = {
79
79
  scriptsCreated: "npm scripts と devDependencies 付きの package.json を作成しました",
80
80
  depsAdded: (keys) => `devDependencies を追加しました: ${keys.join(", ")}`,
81
81
  depsUpdated: (keys) => `devDependencies を更新しました: ${keys.join(", ")}`,
82
- installingSkills: ".agent/skills/ に takt スキルをインストール中...",
82
+ installingSkills: ".agents/skills/ に takt スキルをインストール中...",
83
83
  skillInstalled: (name) => `スキルをインストールしました: ${name}`,
84
- skillSymlinked: (name, target) => `シンボリックリンク作成: ${target}/${name} -> .agent/skills/${name}`,
84
+ skillSymlinked: (name, target) => `シンボリックリンク作成: ${target}/${name} -> .agents/skills/${name}`,
85
85
  downloadingTaktRefs: (refsPath) => `${refsPath}/ に takt ビルトインをダウンロード中...`,
86
86
  taktRefsInstalled: "takt リファレンスをインストールしました(builtins, docs)",
87
87
  taktRefsSkipped: "takt リファレンスは既に存在するためスキップしました",
package/dist/install.js CHANGED
@@ -109,11 +109,13 @@ function fetchJson(url) {
109
109
  if (res.statusCode === 301 || res.statusCode === 302) {
110
110
  const location = res.headers.location;
111
111
  if (location) {
112
+ res.resume();
112
113
  request(location);
113
114
  return;
114
115
  }
115
116
  }
116
117
  if (res.statusCode !== 200) {
118
+ res.resume();
117
119
  reject(new Error(`Fetch failed: HTTP ${res.statusCode}`));
118
120
  return;
119
121
  }
@@ -154,11 +156,13 @@ function download(url, dest) {
154
156
  if (res.statusCode === 301 || res.statusCode === 302) {
155
157
  const location = res.headers.location;
156
158
  if (location) {
159
+ res.resume();
157
160
  request(location);
158
161
  return;
159
162
  }
160
163
  }
161
164
  if (res.statusCode !== 200) {
165
+ res.resume();
162
166
  reject(new Error(`Download failed: HTTP ${res.statusCode}`));
163
167
  return;
164
168
  }
@@ -303,16 +307,16 @@ export async function install(options) {
303
307
  }
304
308
  if (!options.withoutSkills) {
305
309
  for (const skill of TAKT_SKILLS) {
306
- const skillSrc = join(extractedDir, ".agent", "skills", skill);
310
+ const skillSrc = join(extractedDir, ".agents", "skills", skill);
307
311
  if (existsSync(skillSrc)) {
308
- for (const file of collectFiles(skillSrc, join(extractedDir, ".agent", "skills"))) {
312
+ for (const file of collectFiles(skillSrc, join(extractedDir, ".agents", "skills"))) {
309
313
  // Skip language-specific SKILL files (only SKILL.md is installed)
310
314
  if (file.endsWith("SKILL.ja.md") || file.endsWith("SKILL.en.md"))
311
315
  continue;
312
- console.log(msg.dryRunItem(join(".agent", "skills", file)));
316
+ console.log(msg.dryRunItem(join(".agents", "skills", file)));
313
317
  }
314
318
  for (const target of SKILL_SYMLINK_TARGETS) {
315
- console.log(msg.dryRunItem(`${target}/${skill} -> ../../.agent/skills/${skill}`));
319
+ console.log(msg.dryRunItem(`${target}/${skill} -> ../../.agents/skills/${skill}`));
316
320
  }
317
321
  }
318
322
  }
@@ -358,8 +362,8 @@ export async function install(options) {
358
362
  }
359
363
  // .gitignore は takt が初回実行時に自動配置するため、インストーラでは生成しない
360
364
  // takt スキルのインストール
361
- const agentSkillsDir = join(options.cwd, ".agent", "skills");
362
- const extractedSkillsDir = join(extractedDir, ".agent", "skills");
365
+ const agentSkillsDir = join(options.cwd, ".agents", "skills");
366
+ const extractedSkillsDir = join(extractedDir, ".agents", "skills");
363
367
  if (!options.withoutSkills && existsSync(extractedSkillsDir)) {
364
368
  info(msg.installingSkills);
365
369
  mkdirSync(agentSkillsDir, { recursive: true });
@@ -412,7 +416,7 @@ export async function install(options) {
412
416
  if (existsSync(linkPath)) {
413
417
  rmSync(linkPath, { recursive: true });
414
418
  }
415
- symlinkSync(`../../.agent/skills/${skill}`, linkPath);
419
+ symlinkSync(`../../.agents/skills/${skill}`, linkPath);
416
420
  info(msg.skillSymlinked(skill, target));
417
421
  }
418
422
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-takt-sdd",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "Installer for takt-sdd: Spec-Driven Development workflow for takt",
5
5
  "type": "module",
6
6
  "bin": {