@intra-mart/accel 0.3.0-dev.202606250146 → 0.3.0-dev.202606282300
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 +6 -8
- package/dist/interactive/prompts.js +12 -15
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -45,8 +45,6 @@ accel init my-project
|
|
|
45
45
|
accel init my-project \
|
|
46
46
|
--non-interactive \
|
|
47
47
|
--accelplatform-version 2026-spring \
|
|
48
|
-
--module im_workflow \
|
|
49
|
-
--feature jssp,e2e \
|
|
50
48
|
--agent claude-code \
|
|
51
49
|
--locale ja
|
|
52
50
|
```
|
|
@@ -57,8 +55,8 @@ accel init my-project \
|
|
|
57
55
|
|---|---|---|---|
|
|
58
56
|
| `[project-name]` (位置引数) | string | プロジェクト名(ディレクトリ名と一致) | `my-accel-project`(対話で変更可) |
|
|
59
57
|
| `--accelplatform-version` | string | iAPバージョン。カタログのリリースID形式(例: `2026-spring`) | 対話で選択 |
|
|
60
|
-
| `--module` | string | 使用モジュール。カタログの `artifactId`(カンマ区切り。例: `im_workflow,im_activiti
|
|
61
|
-
| `--feature` | string | 使用機能。カタログの機能ID(カンマ区切り。例: `jssp,e2e
|
|
58
|
+
| `--module` | string | 使用モジュール。カタログの `artifactId`(カンマ区切り。例: `im_workflow,im_activiti`) | 選択リリースの全モジュール(`--juggling-project` 指定時は Juggling から抽出したモジュール) |
|
|
59
|
+
| `--feature` | string | 使用機能。カタログの機能ID(カンマ区切り。例: `jssp,e2e`) | 選択リリースの全機能 |
|
|
62
60
|
| `--agent` | string | エージェント種別(`claude-code`, `codex`, `github-copilot`、カンマ区切り) | 自動検出 |
|
|
63
61
|
| `--locale` | string | ロケール(`ja`, `en`, `zh_CN`) | OS設定から自動検出 |
|
|
64
62
|
| `--artifact-id` | string | アーティファクトID(pomの `artifactId` に相当) | プロジェクト名と同値 |
|
|
@@ -83,7 +81,7 @@ accel init my-project \
|
|
|
83
81
|
|
|
84
82
|
```bash
|
|
85
83
|
cd my-existing-project
|
|
86
|
-
accel attach --non-interactive --accelplatform-version 2026-spring
|
|
84
|
+
accel attach --non-interactive --accelplatform-version 2026-spring
|
|
87
85
|
```
|
|
88
86
|
|
|
89
87
|
`init` との違い:
|
|
@@ -100,8 +98,8 @@ accel attach --non-interactive --accelplatform-version 2026-spring --module im_w
|
|
|
100
98
|
|---|---|---|---|
|
|
101
99
|
| `--name` | string | プロジェクト名 | カレントディレクトリ名 |
|
|
102
100
|
| `--accelplatform-version` | string | iAPバージョン。カタログのリリースID形式(例: `2026-spring`) | 対話で選択 |
|
|
103
|
-
| `--module` | string | 使用モジュール。カタログの `artifactId`(カンマ区切り。例: `im_workflow,im_activiti
|
|
104
|
-
| `--feature` | string | 使用機能。カタログの機能ID(カンマ区切り。例: `jssp,e2e
|
|
101
|
+
| `--module` | string | 使用モジュール。カタログの `artifactId`(カンマ区切り。例: `im_workflow,im_activiti`) | 選択リリースの全モジュール(`--juggling-project` 指定時は Juggling から抽出したモジュール) |
|
|
102
|
+
| `--feature` | string | 使用機能。カタログの機能ID(カンマ区切り。例: `jssp,e2e`) | 選択リリースの全機能 |
|
|
105
103
|
| `--agent` | string | エージェント種別(`claude-code`, `codex`, `github-copilot`、カンマ区切り) | 自動検出 |
|
|
106
104
|
| `--locale` | string | ロケール(`ja`, `en`, `zh_CN`) | OS設定から自動検出 |
|
|
107
105
|
| `--artifact-id` | string | アーティファクトID(pomの `artifactId` に相当) | プロジェクト名と同値 |
|
|
@@ -339,7 +337,7 @@ CLIに渡された値および対話で入力された値は、以下のルー
|
|
|
339
337
|
| `--project-version` | Maven version 規約: `^[A-Za-z0-9][A-Za-z0-9._-]*$` |
|
|
340
338
|
| `--accelplatform-version` | カタログのリリースID(`2025-spring` 以降)に含まれる値 |
|
|
341
339
|
| `--module` | 選択したiAPリリースのカタログに含まれるモジュールの `artifactId`(例: `im_workflow`, `im_activiti`)のいずれか(各要素) |
|
|
342
|
-
| `--feature` | 選択したiAPリリースのカタログに含まれる機能ID(例: `jssp`, `imds`, `i18n`, `e2e
|
|
340
|
+
| `--feature` | 選択したiAPリリースのカタログに含まれる機能ID(例: `jssp`, `imds`, `i18n`, `e2e`)のいずれか(各要素) |
|
|
343
341
|
| `--database` | `postgresql`, `oracle`, `sqlserver` のいずれか |
|
|
344
342
|
| `--agent` | `claude-code`, `codex`, `github-copilot` のいずれか(各要素) |
|
|
345
343
|
| `--package-manager` | `bun`, `npm`, `yarn`, `pnpm` のいずれか |
|
|
@@ -26,11 +26,8 @@ export const validateNonInteractive = (opts) => {
|
|
|
26
26
|
const missing = [];
|
|
27
27
|
if (!opts.name)
|
|
28
28
|
missing.push("--name");
|
|
29
|
-
if (!opts.jugglingProject) {
|
|
30
|
-
|
|
31
|
-
missing.push("--accelplatform-version");
|
|
32
|
-
if (!opts.module || opts.module.length === 0)
|
|
33
|
-
missing.push("--module");
|
|
29
|
+
if (!opts.jugglingProject && !opts.accelplatformVersion) {
|
|
30
|
+
missing.push("--accelplatform-version");
|
|
34
31
|
}
|
|
35
32
|
return missing;
|
|
36
33
|
};
|
|
@@ -127,16 +124,12 @@ export const runPrompts = async (opts) => {
|
|
|
127
124
|
throw new Error(getMessage("error.invalidVersion", locale, { version: releaseId }));
|
|
128
125
|
}
|
|
129
126
|
validateCatalogValues(opts, release, locale);
|
|
130
|
-
if (release.functions.length > 0 &&
|
|
131
|
-
(!opts.feature || opts.feature.length === 0)) {
|
|
132
|
-
throw new Error(getMessage("error.missingRequiredOptions", locale, {
|
|
133
|
-
options: "--feature",
|
|
134
|
-
}));
|
|
135
|
-
}
|
|
136
127
|
const releaseArtifactIds = release.modules.map((m) => m.artifactId);
|
|
137
128
|
const modules = opts.module && opts.module.length > 0
|
|
138
129
|
? opts.module
|
|
139
|
-
:
|
|
130
|
+
: opts.jugglingProject
|
|
131
|
+
? jugglingModules.filter((m) => releaseArtifactIds.includes(m))
|
|
132
|
+
: releaseArtifactIds;
|
|
140
133
|
return {
|
|
141
134
|
name: resolvedName,
|
|
142
135
|
artifactId: opts.artifactId ?? resolvedName,
|
|
@@ -145,7 +138,7 @@ export const runPrompts = async (opts) => {
|
|
|
145
138
|
description: opts.description ?? DEFAULT_SETTINGS.description,
|
|
146
139
|
accelplatformVersion: { label: release.id, semver: release.version },
|
|
147
140
|
modules,
|
|
148
|
-
features: opts.feature ??
|
|
141
|
+
features: opts.feature ?? release.functions.map((f) => f.id),
|
|
149
142
|
database: (opts.database ?? DEFAULT_SETTINGS.database),
|
|
150
143
|
agents: opts.agent ?? detectDefaultAgents(),
|
|
151
144
|
javascript: opts.javascript ?? DEFAULT_SETTINGS.javascript,
|
|
@@ -233,7 +226,11 @@ export const runPrompts = async (opts) => {
|
|
|
233
226
|
}
|
|
234
227
|
validateCatalogValues(opts, release, locale);
|
|
235
228
|
const releaseArtifactIds = release.modules.map((m) => m.artifactId);
|
|
236
|
-
const moduleDefault =
|
|
229
|
+
const moduleDefault = opts.module && opts.module.length > 0
|
|
230
|
+
? opts.module.filter((m) => releaseArtifactIds.includes(m))
|
|
231
|
+
: jugglingProject
|
|
232
|
+
? jugglingModules.filter((m) => releaseArtifactIds.includes(m))
|
|
233
|
+
: releaseArtifactIds;
|
|
237
234
|
if (opts.module && opts.module.length > 0 && jugglingModules.length > 0) {
|
|
238
235
|
const diff = opts.module.some((m) => !jugglingModules.includes(m)) ||
|
|
239
236
|
jugglingModules.some((m) => !opts.module.includes(m));
|
|
@@ -263,7 +260,7 @@ export const runPrompts = async (opts) => {
|
|
|
263
260
|
value: f.id,
|
|
264
261
|
label: resolveLabel(f.labels, locale),
|
|
265
262
|
})),
|
|
266
|
-
initialValues: opts.feature ??
|
|
263
|
+
initialValues: opts.feature ?? release.functions.map((f) => f.id),
|
|
267
264
|
required: true,
|
|
268
265
|
}));
|
|
269
266
|
if (p.isCancel(selected))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intra-mart/accel",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.202606282300",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI tool for intra-mart Accel Platform development",
|
|
6
6
|
"author": "NTT DATA INTRAMART",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@clack/prompts": "^1.4.0",
|
|
42
|
-
"@intra-mart/catalog": "0.1.0-dev.
|
|
42
|
+
"@intra-mart/catalog": "0.1.0-dev.202606250213",
|
|
43
43
|
"citty": "^0.1.6",
|
|
44
44
|
"fast-xml-parser": "^5.2.0",
|
|
45
45
|
"remark": "^15.0.1",
|