lism-cli 0.7.0 → 0.9.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.
package/dist/lib.d.ts CHANGED
@@ -9,7 +9,7 @@ interface RunCreateArgs {
9
9
  */
10
10
  lang?: string;
11
11
  }
12
- /** `lism create` / `create-lism` から共通で使える実体関数 */
12
+ /** `lism-cli create` / `create-lism` から共通で使える実体関数 */
13
13
  declare function runCreate({ template, targetDir, force, lang }: RunCreateArgs): Promise<void>;
14
14
 
15
15
  /**
@@ -17,9 +17,11 @@ declare function runCreate({ template, targetDir, force, lang }: RunCreateArgs):
17
17
  *
18
18
  * 命名規則:
19
19
  * - `cli.*` … commander の description / argument / option
20
- * - `create.*` … `lism create` サブコマンド
21
- * - `ui.*` … `lism ui` 配下
22
- * - `skill.*` … `lism skill` 配下
20
+ * - `create.*` … `lism-cli create` サブコマンド
21
+ * - `init.*` … `lism-cli init` サブコマンド
22
+ * - `ui.*` … `lism-cli ui` 配下
23
+ * - `skill.*` … `lism-cli skill` 配下
24
+ * - `mockup.*` … `lism-cli mockup` 配下
23
25
  * - `config.*` … lism.config.* まわりのエラー・警告
24
26
  * - `common.*` … 汎用
25
27
  *
@@ -50,29 +52,21 @@ declare const messages: {
50
52
  readonly ja: "既存ディレクトリを強制上書き";
51
53
  readonly en: "Overwrite existing directory";
52
54
  };
53
- readonly 'cli.ui.description': {
54
- readonly ja: "Lism UI コンポーネントの追加・管理";
55
- readonly en: "Manage Lism UI components";
56
- };
57
- readonly 'cli.ui.init.description': {
58
- readonly ja: "lism.config.js の cli セクションを生成する";
59
- readonly en: "Generate the cli section of lism.config.js";
60
- };
61
- readonly 'cli.ui.init.opt.framework': {
62
- readonly ja: "フレームワーク";
63
- readonly en: "Framework";
55
+ readonly 'cli.init.description': {
56
+ readonly ja: "lism.config ファイルを新規生成する";
57
+ readonly en: "Generate a new lism.config file";
64
58
  };
65
- readonly 'cli.ui.init.opt.componentsDir': {
66
- readonly ja: "コンポーネントの出力先ディレクトリ";
67
- readonly en: "Output directory for components";
59
+ readonly 'cli.init.opt.uiFramework': {
60
+ readonly ja: "UI コンポーネントのフレームワーク(ui.framework)";
61
+ readonly en: "Framework for UI components (ui.framework)";
68
62
  };
69
- readonly 'cli.ui.init.opt.helperDir': {
70
- readonly ja: "helper の出力先ディレクトリ";
71
- readonly en: "Output directory for helpers";
63
+ readonly 'cli.init.opt.uiDir': {
64
+ readonly ja: "UI コンポーネントの出力先ディレクトリ(ui.dir)";
65
+ readonly en: "Output directory for UI components (ui.dir)";
72
66
  };
73
- readonly 'cli.ui.init.opt.force': {
74
- readonly ja: "既存の cli セクションを上書き";
75
- readonly en: "Overwrite the existing cli section";
67
+ readonly 'cli.ui.description': {
68
+ readonly ja: "Lism UI コンポーネントの追加・管理";
69
+ readonly en: "Manage Lism UI components";
76
70
  };
77
71
  readonly 'cli.ui.add.description': {
78
72
  readonly ja: "コンポーネントを追加する";
@@ -98,6 +92,10 @@ declare const messages: {
98
92
  readonly ja: "取得元の Git ref(ブランチ / タグ / コミット)";
99
93
  readonly en: "Git ref to fetch from (branch / tag / commit)";
100
94
  };
95
+ readonly 'cli.mockup.description': {
96
+ readonly ja: "画面モックアップの案内を表示する(実体は @lism-css/mockup)";
97
+ readonly en: "Show guidance for mockups (provided by @lism-css/mockup)";
98
+ };
101
99
  readonly 'cli.skill.description': {
102
100
  readonly ja: "AI エージェント向けスキル(SKILL.md)の配置と管理";
103
101
  readonly en: "Manage SKILL.md files for AI agents";
@@ -106,6 +104,10 @@ declare const messages: {
106
104
  readonly ja: "スキルを配置する";
107
105
  readonly en: "Deploy skills";
108
106
  };
107
+ readonly 'cli.skill.add.arg.skill': {
108
+ readonly ja: "配置するスキル名(省略時は全スキル)";
109
+ readonly en: "Skill name to deploy (all skills if omitted)";
110
+ };
109
111
  readonly 'cli.skill.add.opt.overwrite': {
110
112
  readonly ja: "確認なしで上書き";
111
113
  readonly en: "Overwrite without confirmation";
@@ -222,13 +224,33 @@ declare const messages: {
222
224
  readonly ja: "package.json の書き換えに失敗しました: {reason}";
223
225
  readonly en: "Failed to rewrite package.json: {reason}";
224
226
  };
227
+ readonly 'init.alreadyExists': {
228
+ readonly ja: "{filename} は既に存在するため、何も変更しませんでした。";
229
+ readonly en: "{filename} already exists; nothing was changed.";
230
+ };
231
+ readonly 'init.promptUseUi': {
232
+ readonly ja: "Lism UI のコンポーネントも使いますか?(ui セクションを追加します)";
233
+ readonly en: "Will you also use Lism UI components? (adds a ui section)";
234
+ };
235
+ readonly 'init.created': {
236
+ readonly ja: "{path} を作成しました。";
237
+ readonly en: "Created {path}.";
238
+ };
239
+ readonly 'init.uiFrameworkRequired': {
240
+ readonly ja: "非対話環境では --ui-dir 単独で ui セクションを生成できません。--ui-framework を指定してください。";
241
+ readonly en: "Cannot generate the ui section from --ui-dir alone in a non-interactive environment. Specify --ui-framework.";
242
+ };
243
+ readonly 'ui.promptFramework': {
244
+ readonly ja: "フレームワークを選択してください:";
245
+ readonly en: "Select a framework:";
246
+ };
225
247
  readonly 'ui.catalogFailed': {
226
248
  readonly ja: "カタログの取得に失敗しました{refInfo}: {reason}";
227
249
  readonly en: "Failed to fetch catalog{refInfo}: {reason}";
228
250
  };
229
251
  readonly 'ui.add.noConfig': {
230
- readonly ja: "lism.config.js が見つかりません。セットアップを開始します...\n";
231
- readonly en: "lism.config.js not found. Starting setup...\n";
252
+ readonly ja: "ui セクションが見つかりません。いくつか質問します。";
253
+ readonly en: "No ui section found. A few questions to get you started.";
232
254
  };
233
255
  readonly 'ui.add.addingAll': {
234
256
  readonly ja: "全 {count} コンポーネントを追加します...";
@@ -294,45 +316,9 @@ declare const messages: {
294
316
  readonly ja: " スキップ: {path}";
295
317
  readonly en: " Skipped: {path}";
296
318
  };
297
- readonly 'ui.init.promptFramework': {
298
- readonly ja: "フレームワークを選択してください:";
299
- readonly en: "Select a framework:";
300
- };
301
- readonly 'ui.init.promptComponentsDir': {
302
- readonly ja: "コンポーネントの出力先ディレクトリ:";
303
- readonly en: "Output directory for components:";
304
- };
305
- readonly 'ui.init.promptHelperDir': {
306
- readonly ja: "helper の出力先ディレクトリ:";
307
- readonly en: "Output directory for helpers:";
308
- };
309
- readonly 'ui.init.patchedUpdate': {
310
- readonly ja: "{path} に cli セクションを更新しました。";
311
- readonly en: "Updated the cli section in {path}.";
312
- };
313
- readonly 'ui.init.patchedAdd': {
314
- readonly ja: "{path} に cli セクションを追記しました。";
315
- readonly en: "Added the cli section to {path}.";
316
- };
317
- readonly 'ui.init.notPatched': {
318
- readonly ja: "{path} に既に cli セクションが含まれているか、export default が検出できませんでした。手動で追記してください。";
319
- readonly en: "Either {path} already contains a cli section or no export default was detected. Please add it manually.";
320
- };
321
- readonly 'ui.init.created': {
322
- readonly ja: "{path} を作成しました。";
323
- readonly en: "Created {path}.";
324
- };
325
- readonly 'ui.init.legacyDetected': {
326
- readonly ja: "{filename} を検出しました。lism.config.js へ移行します。古いファイルは後で削除してください。";
327
- readonly en: "Detected {filename}. Migrating to lism.config.js. Please remove the old file afterwards.";
328
- };
329
- readonly 'ui.init.alreadyExists': {
330
- readonly ja: "{filename} には既に cli セクションが設定されています。上書きするには --force を指定してください。";
331
- readonly en: "{filename} already has a cli section. Use --force to overwrite.";
332
- };
333
- readonly 'ui.init.willOverwrite': {
334
- readonly ja: "{filename} の既存の cli セクションを上書きします。";
335
- readonly en: "Overwriting the existing cli section in {filename}.";
319
+ readonly 'ui.add.snippetGuide': {
320
+ readonly ja: "次回から同じ質問をされないために、{filename} の export default オブジェクト内に以下を貼り付けてください:\n\n{snippet}\n";
321
+ readonly en: "To avoid being asked these questions again, paste the following inside the exported config object in {filename}:\n\n{snippet}\n";
336
322
  };
337
323
  readonly 'ui.list.fetching': {
338
324
  readonly ja: "コンポーネント一覧を取得中...";
@@ -346,6 +332,10 @@ declare const messages: {
346
332
  readonly ja: "合計: {count} コンポーネント";
347
333
  readonly en: "Total: {count} components";
348
334
  };
335
+ readonly 'mockup.guide': {
336
+ readonly ja: string;
337
+ readonly en: string;
338
+ };
349
339
  readonly 'skill.add.detected': {
350
340
  readonly ja: "検出した AI ツール: {list}";
351
341
  readonly en: "Detected AI tools: {list}";
@@ -359,8 +349,12 @@ declare const messages: {
359
349
  readonly en: "No target tools were selected.";
360
350
  };
361
351
  readonly 'skill.add.fetching': {
362
- readonly ja: "スキルを取得中(ref: {ref})...";
363
- readonly en: "Fetching skills (ref: {ref})...";
352
+ readonly ja: "スキル {skill} を取得中(ref: {ref})...";
353
+ readonly en: "Fetching skill {skill} (ref: {ref})...";
354
+ };
355
+ readonly 'skill.unknownSkill': {
356
+ readonly ja: "スキル \"{name}\" は存在しません。利用可能: {list}";
357
+ readonly en: "Unknown skill \"{name}\". Available: {list}";
364
358
  };
365
359
  readonly 'skill.add.skippedSame': {
366
360
  readonly ja: " スキップ(差分なし): {label}";
@@ -399,8 +393,8 @@ declare const messages: {
399
393
  readonly en: "No installed skills found. Run `{invoke} skill add` to deploy them.";
400
394
  };
401
395
  readonly 'skill.check.fetching': {
402
- readonly ja: "リモートスキルを取得中(ref: {ref})...";
403
- readonly en: "Fetching remote skills (ref: {ref})...";
396
+ readonly ja: "リモートスキル {skill} を取得中(ref: {ref})...";
397
+ readonly en: "Fetching remote skill {skill} (ref: {ref})...";
404
398
  };
405
399
  readonly 'skill.check.upToDate': {
406
400
  readonly ja: " ✓ {label} (最新)";
@@ -411,8 +405,8 @@ declare const messages: {
411
405
  readonly en: "All skills are up to date.";
412
406
  };
413
407
  readonly 'skill.check.outdated': {
414
- readonly ja: "{count} 件のツールに差分があります。`{invoke} skill update` で最新に更新できます。";
415
- readonly en: "{count} tools have changes. Run `{invoke} skill update` to update them.";
408
+ readonly ja: "{count} 件の配置に差分があります。`{invoke} skill update` で最新に更新できます。";
409
+ readonly en: "{count} deployment(s) differ from the remote. Run `{invoke} skill update` to update them.";
416
410
  };
417
411
  readonly 'skill.check.diffModified': {
418
412
  readonly ja: "変更 {count}";
@@ -426,34 +420,26 @@ declare const messages: {
426
420
  readonly ja: "削除 {count}";
427
421
  readonly en: "deleted {count}";
428
422
  };
429
- readonly 'config.legacyWarning': {
430
- readonly ja: "[deprecated] {filename} は廃止予定です。\"{invoke} ui init\" で lism.config.js へ移行してください。";
431
- readonly en: "[deprecated] {filename} is deprecated. Run \"{invoke} ui init\" to migrate to lism.config.js.";
432
- };
433
- readonly 'config.notFound': {
434
- readonly ja: "lism.config.js / lism.config.mjs / lism-ui.json のいずれも見つかりません。";
435
- readonly en: "None of lism.config.js / lism.config.mjs / lism-ui.json were found.";
436
- };
437
- readonly 'config.cliSectionMissing': {
438
- readonly ja: "{filename} から CLI 設定(cli キー)を読み込めませんでした。";
439
- readonly en: "Failed to read the CLI config (cli key) from {filename}.";
440
- };
441
423
  readonly 'config.invalidFramework': {
442
- readonly ja: "cli.framework は \"react\" または \"astro\" を指定してください。";
443
- readonly en: "cli.framework must be \"react\" or \"astro\".";
424
+ readonly ja: "ui.framework は \"react\" または \"astro\" を指定してください。";
425
+ readonly en: "ui.framework must be \"react\" or \"astro\".";
444
426
  };
445
- readonly 'config.invalidComponentsDir': {
446
- readonly ja: "cli.componentsDir は文字列で指定してください。";
447
- readonly en: "cli.componentsDir must be a string.";
427
+ readonly 'config.invalidDir': {
428
+ readonly ja: "ui.dir は文字列で指定してください。";
429
+ readonly en: "ui.dir must be a string.";
448
430
  };
449
- readonly 'config.invalidHelperDir': {
450
- readonly ja: "cli.helperDir は文字列で指定してください。";
451
- readonly en: "cli.helperDir must be a string.";
431
+ readonly 'config.cliKeyDeprecated': {
432
+ readonly ja: "[deprecated] {filename} の \"cli:\" キーは \"ui:\" への変更が推奨されています。";
433
+ readonly en: "[deprecated] The \"cli:\" key in {filename} is recommended to be renamed to \"ui:\".";
452
434
  };
453
435
  readonly 'config.loadFailed': {
454
436
  readonly ja: "{path} を読み込めませんでした(構文エラー等)。修正してから再実行してください: {reason}";
455
437
  readonly en: "Failed to load {path} (syntax error, etc). Please fix it and retry: {reason}";
456
438
  };
439
+ readonly 'config.freshConfigExists': {
440
+ readonly ja: "{path} は既に存在するため新規作成できません。";
441
+ readonly en: "Cannot create {path} because it already exists.";
442
+ };
457
443
  readonly 'common.done': {
458
444
  readonly ja: "完了しました。";
459
445
  readonly en: "Done.";
package/dist/lib.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  setLang,
4
4
  t,
5
5
  tOf
6
- } from "./chunk-6E4LIZPL.js";
6
+ } from "./chunk-BEY36YDC.js";
7
7
  export {
8
8
  runCreate,
9
9
  setLang,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lism-cli",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "CLI for scaffolding projects and adding UI components for Lism CSS / Lism UI.",
5
5
  "author": {
6
6
  "name": "ddryo",
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "type": "module",
18
18
  "bin": {
19
- "lism": "./bin/lism.mjs"
19
+ "lism-cli": "./bin/lism-cli.mjs"
20
20
  },
21
21
  "main": "./dist/lib.js",
22
22
  "types": "./dist/lib.d.ts",
@@ -39,16 +39,16 @@
39
39
  "url": "https://github.com/lism-css/lism-css/issues"
40
40
  },
41
41
  "dependencies": {
42
- "@inquirer/prompts": "^7.0.0",
43
- "commander": "^13.0.0",
44
- "giget": "^3.2.0",
45
- "jiti": "^2.6.1",
46
- "picocolors": "^1.1.0"
42
+ "@inquirer/prompts": "^7.10.1",
43
+ "commander": "^13.1.0",
44
+ "giget": "^3.3.0",
45
+ "jiti": "^2.7.0",
46
+ "picocolors": "^1.1.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "^25.5.0",
50
- "tsup": "^8.0.0",
51
- "typescript": "^5.8.3"
49
+ "@types/node": "^25.9.4",
50
+ "tsup": "^8.5.1",
51
+ "typescript": "^5.9.3"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=18.0.0"
@@ -57,6 +57,7 @@
57
57
  "format": "prettier --write . --ignore-path ../../.prettierignore",
58
58
  "build": "tsup",
59
59
  "dev": "tsup --watch",
60
- "test": "vitest run"
60
+ "test": "vitest run",
61
+ "typecheck": "tsc --noEmit"
61
62
  }
62
63
  }
File without changes