@intra-mart/accel 2.0.0 → 3.0.0-rc.202611260721

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 (71) hide show
  1. package/README.md +10 -4
  2. package/assets/githooks/.githooks/pre-commit/pre-commit_en +71 -32
  3. package/assets/githooks/.githooks/pre-commit/pre-commit_ja +67 -33
  4. package/assets/githooks/.githooks/pre-commit/pre-commit_zh_CN +66 -32
  5. package/assets/runtime/ensure.mjs +27 -16
  6. package/dist/asset/deployer.d.ts +0 -2
  7. package/dist/asset/deployer.js +1 -6
  8. package/dist/asset/installer.d.ts +18 -2
  9. package/dist/asset/installer.js +94 -17
  10. package/dist/commands/attach-existing-files.d.ts +7 -0
  11. package/dist/commands/attach-existing-files.js +47 -1
  12. package/dist/commands/attach.d.ts +3 -1
  13. package/dist/commands/attach.js +21 -5
  14. package/dist/commands/deploy.d.ts +5 -1
  15. package/dist/commands/deploy.js +10 -3
  16. package/dist/commands/detach.d.ts +3 -1
  17. package/dist/commands/detach.js +16 -4
  18. package/dist/commands/init.d.ts +3 -1
  19. package/dist/commands/init.js +9 -4
  20. package/dist/commands/login.d.ts +8 -0
  21. package/dist/commands/login.js +13 -1
  22. package/dist/commands/mobile/attach.js +2 -3
  23. package/dist/commands/mobile/init.js +5 -2
  24. package/dist/commands/mobile/shared.d.ts +1 -1
  25. package/dist/commands/mobile/shared.js +5 -2
  26. package/dist/commands/switch.d.ts +2 -0
  27. package/dist/commands/switch.js +2 -2
  28. package/dist/commands/update.d.ts +2 -0
  29. package/dist/commands/update.js +1 -1
  30. package/dist/core/constants.d.ts +1 -1
  31. package/dist/core/constants.js +1 -1
  32. package/dist/git/config-file.d.ts +10 -2
  33. package/dist/git/config-file.js +177 -94
  34. package/dist/git/config-scopes.d.ts +17 -0
  35. package/dist/git/config-scopes.js +33 -0
  36. package/dist/git/index-file.js +23 -4
  37. package/dist/git/read-capped.d.ts +1 -0
  38. package/dist/git/read-capped.js +6 -3
  39. package/dist/git/repo-discovery.d.ts +26 -0
  40. package/dist/git/repo-discovery.js +213 -0
  41. package/dist/git/untracked.d.ts +1 -0
  42. package/dist/git/untracked.js +23 -1
  43. package/dist/git/worktree-status.js +26 -21
  44. package/dist/i18n/en.js +72 -6
  45. package/dist/i18n/ja.js +72 -6
  46. package/dist/i18n/zh_CN.js +72 -6
  47. package/dist/interactive/credentials-prompts.d.ts +4 -1
  48. package/dist/interactive/credentials-prompts.js +2 -1
  49. package/dist/interactive/hook-confirm.d.ts +2 -0
  50. package/dist/interactive/hook-confirm.js +16 -0
  51. package/dist/lib.d.ts +1 -0
  52. package/dist/utils/command-exists.d.ts +5 -0
  53. package/dist/utils/command-exists.js +7 -6
  54. package/dist/utils/external-command.d.ts +0 -1
  55. package/dist/utils/external-command.js +1 -29
  56. package/dist/utils/githooks-remove.d.ts +27 -0
  57. package/dist/utils/githooks-remove.js +196 -0
  58. package/dist/utils/githooks-state.d.ts +80 -0
  59. package/dist/utils/githooks-state.js +364 -0
  60. package/dist/utils/githooks-sync.d.ts +11 -2
  61. package/dist/utils/githooks-sync.js +360 -68
  62. package/dist/utils/managed-marker.d.ts +1 -0
  63. package/dist/utils/managed-marker.js +1 -0
  64. package/dist/utils/mcp-generate.d.ts +5 -1
  65. package/dist/utils/mcp-generate.js +13 -4
  66. package/dist/utils/output-tail.d.ts +11 -0
  67. package/dist/utils/output-tail.js +29 -0
  68. package/dist/utils/runtime-ensure.js +10 -4
  69. package/package.json +1 -1
  70. package/dist/git/repo-layout.d.ts +0 -5
  71. package/dist/git/repo-layout.js +0 -44
@@ -0,0 +1,26 @@
1
+ export type RepoLayout = {
2
+ gitDir: string;
3
+ commonDir: string;
4
+ worktreeRoot: string;
5
+ projectRel: string;
6
+ linkedWorktree: boolean;
7
+ };
8
+ export type RepoDiscovery = {
9
+ kind: "none";
10
+ } | {
11
+ kind: "unverified";
12
+ gitPath: string;
13
+ worktreeRoot: string;
14
+ layout?: RepoLayout;
15
+ } | {
16
+ kind: "found";
17
+ layout: RepoLayout;
18
+ };
19
+ export type DiscoverOptions = {
20
+ env?: NodeJS.ProcessEnv;
21
+ };
22
+ export declare const comparablePath: (path: string) => string;
23
+ export declare const isOutsideRelative: (rel: string) => boolean;
24
+ export declare const parseEnvBool: (value: string | undefined) => boolean;
25
+ export declare const parseCeilingDirectories: (value: string | undefined, start: string) => Promise<Set<string>>;
26
+ export declare const discoverRepository: (projectDir: string, opts?: DiscoverOptions) => Promise<RepoDiscovery>;
@@ -0,0 +1,213 @@
1
+ import { lstat, realpath, stat } from "node:fs/promises";
2
+ import { delimiter, dirname, isAbsolute, join, relative, resolve, sep, } from "node:path";
3
+ import { parseGitBool, readConfigValue } from "./config-file.js";
4
+ import { readTextFileCapped } from "./read-capped.js";
5
+ const MAX_REF_FILE_BYTES = 64 * 1024;
6
+ const isWindows = process.platform === "win32";
7
+ export const comparablePath = (path) => {
8
+ const normalized = resolve(path);
9
+ return isWindows ? normalized.toLowerCase() : normalized;
10
+ };
11
+ export const isOutsideRelative = (rel) => rel === ".." || rel.startsWith(`..${sep}`) || isAbsolute(rel);
12
+ const sameRealPath = async (a, b) => {
13
+ try {
14
+ const [ra, rb] = await Promise.all([realpath(a), realpath(b)]);
15
+ return comparablePath(ra) === comparablePath(rb);
16
+ }
17
+ catch {
18
+ return false;
19
+ }
20
+ };
21
+ const isStrictlyInsideReal = async (parent, child) => {
22
+ try {
23
+ const [rp, rc] = await Promise.all([realpath(parent), realpath(child)]);
24
+ const rel = relative(comparablePath(rp), comparablePath(rc));
25
+ return rel !== "" && !isOutsideRelative(rel);
26
+ }
27
+ catch {
28
+ return false;
29
+ }
30
+ };
31
+ const exists = async (path) => lstat(path).then(() => true, () => false);
32
+ const isDirectory = async (path) => stat(path).then((s) => s.isDirectory(), () => false);
33
+ export const parseEnvBool = (value) => value !== undefined && parseGitBool(value) === true;
34
+ export const parseCeilingDirectories = async (value, start) => {
35
+ const ceilings = new Set();
36
+ if (value === undefined || value === "")
37
+ return ceilings;
38
+ const startComparable = comparablePath(start);
39
+ let resolveReal = true;
40
+ for (const entry of value.split(delimiter)) {
41
+ if (entry === "") {
42
+ resolveReal = false;
43
+ continue;
44
+ }
45
+ if (!isAbsolute(entry))
46
+ continue;
47
+ let normalized;
48
+ if (resolveReal) {
49
+ try {
50
+ normalized = comparablePath(await realpath(entry));
51
+ }
52
+ catch {
53
+ continue;
54
+ }
55
+ }
56
+ else {
57
+ normalized = comparablePath(entry);
58
+ }
59
+ const rel = relative(normalized, startComparable);
60
+ if (rel === "" || isOutsideRelative(rel))
61
+ continue;
62
+ ceilings.add(normalized);
63
+ }
64
+ return ceilings;
65
+ };
66
+ const toPosix = (path) => sep === "/" ? path : path.split(sep).join("/");
67
+ const inspectGitfile = async (dotGit, worktreeRoot, projectRel) => {
68
+ const unverified = (layout) => ({
69
+ kind: "unverified",
70
+ gitPath: dotGit,
71
+ worktreeRoot,
72
+ ...(layout !== undefined ? { layout } : {}),
73
+ });
74
+ const content = await readTextFileCapped(dotGit, MAX_REF_FILE_BYTES);
75
+ if (content === null || !content.startsWith("gitdir: "))
76
+ return unverified();
77
+ const ref = content.slice("gitdir: ".length).replace(/[\r\n]+$/, "");
78
+ if (ref.length === 0 || /[\r\n]/.test(ref))
79
+ return unverified();
80
+ const gitDir = isAbsolute(ref) ? ref : resolve(worktreeRoot, ref);
81
+ if (!(await isDirectory(gitDir)))
82
+ return unverified();
83
+ const commonRef = await readTextFileCapped(join(gitDir, "commondir"), MAX_REF_FILE_BYTES);
84
+ if (commonRef !== null) {
85
+ const target = commonRef.trim();
86
+ if (target.length === 0)
87
+ return unverified();
88
+ const commonDir = isAbsolute(target) ? target : resolve(gitDir, target);
89
+ const layout = {
90
+ gitDir,
91
+ commonDir,
92
+ worktreeRoot,
93
+ projectRel,
94
+ linkedWorktree: true,
95
+ };
96
+ if (!(await isDirectory(commonDir)))
97
+ return unverified();
98
+ const structural = await isStrictlyInsideReal(join(commonDir, "worktrees"), gitDir);
99
+ const backRef = await readTextFileCapped(join(gitDir, "gitdir"), MAX_REF_FILE_BYTES);
100
+ const back = backRef?.trim() ?? "";
101
+ const backMatches = back.length > 0 &&
102
+ (await sameRealPath(isAbsolute(back) ? back : resolve(gitDir, back), dotGit));
103
+ return structural && backMatches
104
+ ? { kind: "found", layout }
105
+ : unverified(layout);
106
+ }
107
+ const layout = {
108
+ gitDir,
109
+ commonDir: gitDir,
110
+ worktreeRoot,
111
+ projectRel,
112
+ linkedWorktree: false,
113
+ };
114
+ const coreWorktree = await readConfigValue(join(gitDir, "config"), "core", "worktree");
115
+ const matches = coreWorktree !== undefined &&
116
+ coreWorktree !== "" &&
117
+ (await sameRealPath(isAbsolute(coreWorktree) ? coreWorktree : resolve(gitDir, coreWorktree), worktreeRoot));
118
+ return matches ? { kind: "found", layout } : unverified(layout);
119
+ };
120
+ const inspectDotGit = async (dir, start) => {
121
+ const dotGit = join(dir, ".git");
122
+ let stats;
123
+ try {
124
+ stats = await lstat(dotGit);
125
+ }
126
+ catch {
127
+ return null;
128
+ }
129
+ const projectRel = toPosix(relative(dir, start));
130
+ if (stats.isDirectory()) {
131
+ if (!(await exists(join(dotGit, "HEAD"))))
132
+ return "continue";
133
+ const commonRef = await readTextFileCapped(join(dotGit, "commondir"), MAX_REF_FILE_BYTES);
134
+ if (commonRef !== null) {
135
+ const target = commonRef.trim();
136
+ const commonDir = target.length === 0
137
+ ? undefined
138
+ : isAbsolute(target)
139
+ ? target
140
+ : resolve(dotGit, target);
141
+ return {
142
+ kind: "unverified",
143
+ gitPath: dotGit,
144
+ worktreeRoot: dir,
145
+ ...(commonDir !== undefined && (await isDirectory(commonDir))
146
+ ? {
147
+ layout: {
148
+ gitDir: dotGit,
149
+ commonDir,
150
+ worktreeRoot: dir,
151
+ projectRel,
152
+ linkedWorktree: false,
153
+ },
154
+ }
155
+ : {}),
156
+ };
157
+ }
158
+ if (!(await isDirectory(join(dotGit, "objects"))) ||
159
+ !(await isDirectory(join(dotGit, "refs")))) {
160
+ return "continue";
161
+ }
162
+ return {
163
+ kind: "found",
164
+ layout: {
165
+ gitDir: dotGit,
166
+ commonDir: dotGit,
167
+ worktreeRoot: dir,
168
+ projectRel,
169
+ linkedWorktree: false,
170
+ },
171
+ };
172
+ }
173
+ if (stats.isFile())
174
+ return inspectGitfile(dotGit, dir, projectRel);
175
+ return { kind: "unverified", gitPath: dotGit, worktreeRoot: dir };
176
+ };
177
+ export const discoverRepository = async (projectDir, opts = {}) => {
178
+ const env = opts.env ?? process.env;
179
+ let start;
180
+ try {
181
+ start = await realpath(projectDir);
182
+ }
183
+ catch {
184
+ return { kind: "none" };
185
+ }
186
+ const ceilings = await parseCeilingDirectories(env["GIT_CEILING_DIRECTORIES"], start);
187
+ const acrossFs = parseEnvBool(env["GIT_DISCOVERY_ACROSS_FILESYSTEM"]);
188
+ let startDev;
189
+ try {
190
+ startDev = (await stat(start)).dev;
191
+ }
192
+ catch {
193
+ return { kind: "none" };
194
+ }
195
+ let dir = start;
196
+ for (;;) {
197
+ const result = await inspectDotGit(dir, start);
198
+ if (result !== null && result !== "continue")
199
+ return result;
200
+ const parent = dirname(dir);
201
+ if (parent === dir)
202
+ return { kind: "none" };
203
+ if (ceilings.has(comparablePath(parent)))
204
+ return { kind: "none" };
205
+ if (!acrossFs) {
206
+ const parentStats = await stat(parent).catch(() => null);
207
+ if (parentStats === null || parentStats.dev !== startDev) {
208
+ return { kind: "none" };
209
+ }
210
+ }
211
+ dir = parent;
212
+ }
213
+ };
@@ -1,6 +1,7 @@
1
1
  export declare const asciiFold: (path: string) => string;
2
2
  export type UntrackedScanOptions = {
3
3
  worktreeDir: string;
4
+ startPrefix?: string;
4
5
  trackedFiles: ReadonlySet<string>;
5
6
  trackedDirs: ReadonlySet<string>;
6
7
  ignorecase: boolean;
@@ -86,7 +86,29 @@ const scan = async (opts, stopAtFirst) => {
86
86
  }
87
87
  return found.length > 0;
88
88
  };
89
- await walk(opts.worktreeDir, "", baseLevels, 0);
89
+ let levels = baseLevels;
90
+ let startAbs = opts.worktreeDir;
91
+ let startRel = "";
92
+ let depth = 0;
93
+ const prefix = (opts.startPrefix ?? "").replace(/\/+$/, "");
94
+ if (prefix !== "") {
95
+ for (const segment of prefix.split("/")) {
96
+ const gitignore = await readTextFileCapped(join(startAbs, ".gitignore"), MAX_IGNORE_FILE_BYTES);
97
+ if (gitignore !== null) {
98
+ levels = [...levels, { base: startRel, matcher: matcherOf(gitignore) }];
99
+ }
100
+ const rel = startRel + segment;
101
+ const key = opts.ignorecase ? asciiFold(rel) : rel;
102
+ if (opts.trackedDirs.has(key))
103
+ return found;
104
+ if (isIgnored(levels, rel, true))
105
+ return found;
106
+ startAbs = join(startAbs, segment);
107
+ startRel = `${rel}/`;
108
+ depth++;
109
+ }
110
+ }
111
+ await walk(startAbs, startRel, levels, depth);
90
112
  return found;
91
113
  };
92
114
  export const hasUntrackedFile = async (opts) => (await scan(opts, true)).length > 0;
@@ -1,12 +1,12 @@
1
1
  import { lstat, readFile, readlink } from "node:fs/promises";
2
- import { homedir } from "node:os";
3
2
  import { join } from "node:path";
4
3
  import { isSafeRelPath } from "../utils/safe-rel-path.js";
5
- import { parseConfigBool, readConfigValue } from "./config-file.js";
4
+ import { readConfigBool, readConfigValue } from "./config-file.js";
5
+ import { expandTilde, resolveUserConfigPaths } from "./config-scopes.js";
6
6
  import { hashObject, isGitlinkMode, isSymlinkMode } from "./git-objects.js";
7
7
  import { readGitIndex } from "./index-file.js";
8
8
  import { readTextFileCapped } from "./read-capped.js";
9
- import { resolveRepoLayout } from "./repo-layout.js";
9
+ import { discoverRepository } from "./repo-discovery.js";
10
10
  import { asciiFold, hasUntrackedFile } from "./untracked.js";
11
11
  const MAX_HASH_SIZE = 64 * 1024 * 1024;
12
12
  const blobSha1 = (content) => hashObject("blob", content);
@@ -61,16 +61,8 @@ const isEntryModified = async (worktreeDir, entry, indexMtimeSec) => {
61
61
  return true;
62
62
  return !(await contentMatches(absPath, entry));
63
63
  };
64
- const expandTilde = (path, home) => path === "~" ? home : path.startsWith("~/") ? join(home, path.slice(2)) : path;
65
64
  const resolveExcludesFilePath = async (localConfigPath, env) => {
66
- const home = env["HOME"] !== undefined && env["HOME"] !== "" ? env["HOME"] : homedir();
67
- const xdgConfig = env["XDG_CONFIG_HOME"] !== undefined && env["XDG_CONFIG_HOME"] !== ""
68
- ? env["XDG_CONFIG_HOME"]
69
- : join(home, ".config");
70
- const globalOverride = env["GIT_CONFIG_GLOBAL"];
71
- const userConfigPaths = globalOverride !== undefined && globalOverride !== ""
72
- ? [globalOverride]
73
- : [join(xdgConfig, "git", "config"), join(home, ".gitconfig")];
65
+ const { home, xdgConfig, paths: userConfigPaths } = resolveUserConfigPaths(env);
74
66
  let value;
75
67
  for (const configPath of [...userConfigPaths, localConfigPath]) {
76
68
  const found = await readConfigValue(configPath, "core", "excludesFile");
@@ -86,27 +78,39 @@ export const isWorktreeDirty = async (projectDir, opts = {}) => {
86
78
  try {
87
79
  const env = opts.env ?? process.env;
88
80
  const deadline = Date.now() + (opts.deadlineMs ?? 10_000);
89
- const layout = await resolveRepoLayout(projectDir);
90
- if (layout === null)
81
+ const discovery = await discoverRepository(projectDir, { env });
82
+ const layout = discovery.kind === "found"
83
+ ? discovery.layout
84
+ : discovery.kind === "unverified"
85
+ ? discovery.layout
86
+ : undefined;
87
+ if (layout === undefined)
91
88
  return false;
92
89
  const index = await readGitIndex(layout.gitDir);
93
90
  if (index === null)
94
91
  return false;
95
92
  const localConfigPath = join(layout.commonDir, "config");
96
- const ignorecase = parseConfigBool(await readConfigValue(localConfigPath, "core", "ignoreCase"), false);
93
+ const ignorecase = await readConfigBool(localConfigPath, "core", "ignoreCase");
94
+ const prefix = layout.projectRel === "" ? "" : `${layout.projectRel}/`;
95
+ const prefixKey = ignorecase ? asciiFold(prefix) : prefix;
97
96
  const trackedFiles = new Set();
98
97
  const trackedDirs = new Set();
99
98
  for (const entry of index.entries) {
100
- if (entry.stage !== 0)
101
- return true;
102
- if (!isSafeRelPath(entry.path))
103
- return true;
104
99
  const key = ignorecase ? asciiFold(entry.path) : entry.path;
100
+ const inProject = key.startsWith(prefixKey);
101
+ if (inProject) {
102
+ if (entry.stage !== 0)
103
+ return true;
104
+ if (!isSafeRelPath(entry.path))
105
+ return true;
106
+ }
105
107
  if (isGitlinkMode(entry.mode)) {
106
108
  trackedDirs.add(key);
107
109
  continue;
108
110
  }
109
111
  trackedFiles.add(key);
112
+ if (!inProject)
113
+ continue;
110
114
  if (entry.assumeValid || entry.skipWorktree)
111
115
  continue;
112
116
  if (entry.intentToAdd)
@@ -114,7 +118,7 @@ export const isWorktreeDirty = async (projectDir, opts = {}) => {
114
118
  if (Date.now() > deadline) {
115
119
  throw new Error("dirty check deadline exceeded");
116
120
  }
117
- if (await isEntryModified(projectDir, entry, index.indexMtimeSec)) {
121
+ if (await isEntryModified(layout.worktreeRoot, entry, index.indexMtimeSec)) {
118
122
  return true;
119
123
  }
120
124
  }
@@ -126,7 +130,8 @@ export const isWorktreeDirty = async (projectDir, opts = {}) => {
126
130
  if (infoExclude !== null)
127
131
  baselinePatterns.push(infoExclude);
128
132
  return await hasUntrackedFile({
129
- worktreeDir: projectDir,
133
+ worktreeDir: layout.worktreeRoot,
134
+ startPrefix: prefix,
130
135
  trackedFiles,
131
136
  trackedDirs,
132
137
  ignorecase,
package/dist/i18n/en.js CHANGED
@@ -38,12 +38,72 @@ export const messages = {
38
38
  "warning.fileExists": "File already exists, skipping: {path}",
39
39
  "warning.pathRejected.project": "Excluded an asset whose deploy path points outside the project: {path}",
40
40
  "warning.pathRejected.assetRepo": "Excluded an asset whose source path points outside the asset repository: {path}",
41
- "warning.gitHooksUserFile": "Skipped placing the pre-commit hook because {path} is not managed by the CLI. To keep the token-leak check, integrate it into your existing hook manually.",
42
- "warning.gitHooksPathConflict": "Skipped enabling the pre-commit hook because git core.hooksPath is set to {current}. Integrate the token-leak check (.githooks/pre-commit) into your existing hook setup manually.",
43
- "warning.gitHooksForeignFiles": "Skipped setting core.hooksPath because .githooks contains files not managed by the CLI ({files}). After confirming they are safe, run git config core.hooksPath .githooks manually.",
44
- "warning.gitHooksLayoutSuspicious": "Skipped setting core.hooksPath because the .git reference points to an unexpected location outside the project ({path}). Run git config core.hooksPath .githooks manually if needed.",
41
+ "gitHooks.placed": "Placed the pre-commit hook: {path}",
42
+ "gitHooks.integrationScriptKept": "The integration script {path} has been kept. If no other pre-commit hook runs it, you can delete it.",
43
+ "gitHooks.confirmParentRepo": "This project is in a subfolder of the git repository ({repositoryRoot}). Place a pre-commit hook at {path}? It will check every commit in the repository.",
44
+ "gitHooks.reason.foreignHook": "Did not place the pre-commit hook because {path} is a pre-commit hook not managed by the CLI.",
45
+ "gitHooks.reason.hooksPathSet": "Did not place the pre-commit hook because git core.hooksPath is set to \"{value}\".",
46
+ "gitHooks.reason.parentRepoDeclined": "Did not place the pre-commit hook. You will be asked again the next time the connection info is saved.",
47
+ "gitHooks.reason.parentRepoNoConfirm": "Did not place the pre-commit hook because the project is in a subfolder of the git repository ({repositoryRoot}) and placing it was not confirmed. To place it, run accel login --allow-parent-repo-hook.",
48
+ "gitHooks.reason.unverified": "Did not place the pre-commit hook because the reference in {path} could not be verified (if you moved a worktree, run git worktree repair to fix the references).",
49
+ "gitHooks.reason.hooksDirUnsupported": "Did not place the pre-commit hook because {path} is not a regular directory.",
50
+ "gitHooks.reason.writeFailed": "Could not place the pre-commit hook at {path}: {message}",
51
+ "gitHooks.guidance.runScript": "To enable the API key check, run {script} from your pre-commit hook (e.g. bash {script} || exit 1).",
52
+ "gitHooks.guidance.copyOrRun": "To place it manually, copy {source} to {hookPath} and make it executable. If you already have a pre-commit hook, run it from there instead (e.g. bash {script} || exit 1).",
53
+ "gitHooks.guidance.noScript": "The integration script could not be placed either ({dir} contains files not managed by the CLI, or is not a regular directory).",
54
+ "gitHooks.guidance.scriptWriteFailed": "The integration script could not be written to {path} either: {message}",
55
+ "gitHooks.updateFailed": "Could not update {path} to the latest content: {message} (the previous content remains)",
56
+ "gitHooks.migrated": "Migrated the legacy pre-commit hook setting (core.hooksPath=.githooks) to the new method.",
57
+ "gitHooks.migrated.removedDir": "- Deleted .githooks/. Please commit this deletion.",
58
+ "gitHooks.migrated.reenabled": "- Hooks in .git/hooks/ that this setting had disabled now run again: {hooks}",
59
+ "gitHooks.migrated.teamNotice": "- In other environments still on the legacy setting (such as other people's clones or another computer), the API key check (pre-commit hook) will not run after pulling the deletion of .githooks/ until accel login is run there.",
60
+ "gitHooks.migrated.removeCall": "- If another pre-commit hook runs {path}, remove that call as well.",
61
+ "gitHooks.migrated.checkDisabled": "- The accel CLI API key check (.githooks/pre-commit) no longer runs after this change. Follow the steps in the warning that follows to enable it.",
62
+ "gitHooks.migrationStopped": "Stopped migrating the legacy pre-commit hook setting (core.hooksPath=.githooks): {message}.",
63
+ "gitHooks.migrationStopped.unprotected": "Because core.hooksPath still points to .githooks, no API key check runs.",
64
+ "gitHooks.hooksPathRemains": "core.hooksPath is still set in the local config after the attempt to remove it",
65
+ "gitHooks.legacySettingRemoved": "Removed the legacy pre-commit hook setting (core.hooksPath=.githooks).",
66
+ "gitHooks.migrationStopped.active": "The legacy hook keeps working.",
67
+ "gitHooks.migrationStopped.retry": "The migration will be retried the next time the connection info is saved.",
68
+ "gitHooks.configNotEditable.symlink": "{path} is a symbolic link, so the CLI does not edit it (editing it would change the linked file)",
69
+ "gitHooks.configNotEditable.notRegularFile": "{path} is not a regular file, so the CLI does not edit it",
70
+ "gitHooks.configNotEditable.tooLarge": "{path} is too large (over 1 MB), so the CLI does not edit it",
71
+ "gitHooks.configNotEditable.unreadable": "{path} cannot be read, so the CLI cannot edit it",
72
+ "gitHooks.configNotEditable.invalidEncoding": "{path} contains characters not encoded in UTF-8 (such as a user name), so the CLI does not edit it (editing it would corrupt them)",
73
+ "gitHooks.configNotEditable.keyOnHeaderLine": "{path} has core.hooksPath on the same line as its section header (like [core] hooksPath = …), so the CLI cannot edit it",
74
+ "gitHooks.manualUnset.introPlaced": "Running the following command removes core.hooksPath from this repository's settings ({config}). git then runs the hooks in the default .git/hooks/, and the placed {hookPath} takes effect:",
75
+ "gitHooks.manualUnset.intro": "Running the following command removes core.hooksPath from this repository's settings ({config}). git then runs the hooks in the default .git/hooks/:",
76
+ "gitHooks.manualUnset.introOtherHooksPath": "Running the following command removes core.hooksPath from this repository's settings ({config}). git then runs the hooks in \"{hooksPath}\", set by core.hooksPath in the global settings (such as ~/.gitconfig):",
77
+ "gitHooks.manualUnset.introWorktreeHooksPath": "Running the following command removes core.hooksPath from this repository's settings ({config}). In this worktree, git still runs the hooks in \"{hooksPath}\", set by core.hooksPath in the per-worktree settings (config.worktree):",
78
+ "gitHooks.manualUnset.reenabled": "- These hooks will run again: {hooks}",
79
+ "gitHooks.manualUnset.worktrees": "- This command affects all worktrees of this repository.",
80
+ "gitHooks.manualUnset.thenLogin": "- After removing the setting, run accel login. It places the pre-commit hook, or shows why it cannot be placed and what to do.",
81
+ "gitHooks.manualUnset.undo": "- This command does not change other repositories or the global settings. To undo it, run:",
82
+ "gitHooks.manualUnset.noCommand": "Remove core.hooksPath from this repository's settings ({config}). The command is not shown because the repository path contains characters that are special to the shell.",
83
+ "gitHooks.manualUnset.symlinkPlaced": "Removing core.hooksPath from the linked file ({target}) makes the placed {hookPath} take effect. If the linked file is shared with other repositories, their settings change too.",
84
+ "gitHooks.manualUnset.symlink": "Remove core.hooksPath from the linked file ({target}), then run accel login. If the linked file is shared with other repositories, their settings change too.",
85
+ "gitHooks.manualUnset.keepDir": "- After the setting is removed, .githooks/ is no longer used. The CLI does not delete it; if you delete it, commit the deletion.",
86
+ "gitHooks.detach.legacyKeepDir": "- .githooks/ is kept. After removing the setting, delete .githooks/ as well.",
87
+ "gitHooks.detach.legacyManual": "Remove core.hooksPath from this repository's settings ({config}).",
88
+ "gitHooks.detach.legacySymlink": "Remove core.hooksPath from the linked file ({target}). If the linked file is shared with other repositories, their settings change too.",
89
+ "gitHooks.unexpectedError": "An error occurred while handling the pre-commit hook: {message}",
90
+ "gitHooks.detach.legacyFailed": "Could not remove the legacy pre-commit hook setting (core.hooksPath=.githooks): {message}.",
91
+ "gitHooks.detach.confirmList": "The following pre-commit hook files will also be deleted:",
92
+ "gitHooks.detach.confirmLegacy": "The legacy pre-commit hook setting (core.hooksPath=.githooks) will also be removed.",
93
+ "gitHooks.detach.removed": "Deleted the pre-commit hook: {path}",
94
+ "gitHooks.detach.integrationRemoved": "Deleted the integration pre-commit script: {path}",
95
+ "gitHooks.detach.sharedNotice": "Other projects using accel in the same repository will not have the API key check (pre-commit hook) until they run accel login.",
96
+ "gitHooks.detach.removeCall": "If another pre-commit hook runs {path}, remove that call as well.",
97
+ "gitHooks.detach.legacyRemoved": "Removed the legacy pre-commit hook setting (core.hooksPath=.githooks) and deleted .githooks/.",
98
+ "gitHooks.detach.reenabled": "Hooks in .git/hooks/ that this setting had disabled now run again: {hooks}",
45
99
  "warning.ensureScriptUserFile": "Skipped placing the skill dependency install script because {path} is not managed by the CLI. Remove or move the file and rerun the command to enable automatic installation.",
46
100
  "warning.ensureLaunchFailed": "Could not run {command}. Check the runtime (Node.js or Bun) and run it manually.",
101
+ "warning.installBuild.failed": "{command} failed ({status}). Last lines of output:\n{output}",
102
+ "warning.installBuild.failedNoOutput": "{command} failed ({status}).",
103
+ "warning.installBuild.exitCode": "exit code {code}",
104
+ "warning.installBuild.signal": "signal {signal}",
105
+ "warning.installBuild.buildNotRun": "{command} was not run because install failed.",
106
+ "warning.installBuild.commandNotFound": "install / build were not run because {command} was not found. Install {command}, then run the following in the project:\n {installCommand} && {buildCommand}",
47
107
  "attach.skipSummary": "{count} file(s) were skipped because they already exist.",
48
108
  "attach.overwritePrompt": "{path} already exists. Overwrite?",
49
109
  "attach.overwritePrompt.yes": "Yes (overwrite this file)",
@@ -52,6 +112,11 @@ export const messages = {
52
112
  "attach.overwritePrompt.skipAll": "Skip-all (skip all remaining)",
53
113
  "attach.overwritten": "Overwritten: {path}",
54
114
  "attach.overwriteSummary": "{count} file(s) overwritten.",
115
+ "attach.installStopped": "install / build were not run because existing files were skipped. Review the skipped files, then run:\n {installCommand} && {buildCommand}",
116
+ "attach.lockfileHint": "Only one of package.json and the lockfile ({lockfile}) was skipped, so they may not match. Review package.json, then run {updateCommand} instead of {installCommand} to update the lockfile.",
117
+ "attach.pomCreated": "Created a new pom.xml. It does not include the existing project's dependencies (JARs, references to other projects, or intra-mart modules not in the catalog). Review the dependencies in pom.xml.",
118
+ "attach.pomOverwritten": "Overwrote pom.xml with the asset version. The dependencies in the original pom.xml were not carried over. Compare it with the original and add the dependencies you need.",
119
+ "attach.updateHint": "Skipped {count} existing file(s). To compare them with the assets, run accel update (files that differ from the assets get both versions, separated by conflict markers). If the project is under version control such as git, commit the attach result first.",
55
120
  "detach.confirm": "Detach Accel CLI from this project. Are you sure?",
56
121
  "detach.deleted": "Deleted: {path}",
57
122
  "detach.skipped": "Skipped: {path} (modifications detected)",
@@ -112,7 +177,7 @@ export const messages = {
112
177
  "switch.upToDate": "Nothing to change.",
113
178
  "switch.complete": "Switch completed. Updated {updated}, added {added}, deleted {deleted} file(s).",
114
179
  "switch.skippedSummary": "Skipped {count} edited file(s). The switch has not been applied to them:",
115
- "switch.installFailedHint": "install / build failed. The skipped edited files may be incompatible with the new configuration.",
180
+ "switch.installFailedHint": "The failure above may have been caused by the following skipped edited files not matching the new configuration:",
116
181
  "cache.info.dir": "Cache directory: {path}",
117
182
  "cache.info.overridden": "(overridden by the ACCEL_CACHE_DIR environment variable)",
118
183
  "cache.info.total": "Total size: {size}",
@@ -231,7 +296,7 @@ export const messages = {
231
296
  "login.intro": "Accel CLI - login",
232
297
  "login.complete": "Connection information saved.",
233
298
  "mcp.generated": "Generated or updated the MCP configuration: {path}",
234
- "mcp.hint.loginRequired": "Run accel login to generate the MCP configuration for connecting to iAP.",
299
+ "mcp.hint.loginRequired": "The MCP server settings for connecting to iAP will be added when you run accel login.",
235
300
  "mcp.detach.removed": "Removed CLI-managed entries from the MCP configuration: {path} ({count})",
236
301
  "mcp.warning.unknownOutput": "Skipped MCP templates for an unsupported output path: {path}",
237
302
  "mcp.warning.fragmentParse": "Skipped an MCP template that could not be read or parsed: {path}",
@@ -341,6 +406,7 @@ export const messages = {
341
406
  "progress.createExpo": "Running create-expo...",
342
407
  "progress.expoSkills": "Installing the official Expo skills...",
343
408
  "error.externalRunnerNotFound": "{command} was not found. Install it and run again.",
409
+ "error.createExpoNpmNotFound": "npm was not found. create-expo requires npm regardless of the package manager you choose (--package-manager). Install npm (bundled with Node.js) and run again.",
344
410
  "hint.packageManagerOption": "You can also choose another package manager with --package-manager (e.g. --package-manager npm).",
345
411
  "error.createExpoFailed": "create-expo failed: {command}\nIf {dir} was created, check its contents, remove it, and run again.\n{output}",
346
412
  "warning.createExpoInstallIncomplete": "Installing dependencies may not have completed. Run {command} in the project.",
package/dist/i18n/ja.js CHANGED
@@ -38,12 +38,72 @@ export const messages = {
38
38
  "warning.fileExists": "既存ファイルのためスキップ: {path}",
39
39
  "warning.pathRejected.project": "配備先がプロジェクトの外を指しているため除外しました: {path}",
40
40
  "warning.pathRejected.assetRepo": "取得元が資材リポジトリの外を指しているため除外しました: {path}",
41
- "warning.gitHooksUserFile": "{path} はCLI管理外のファイルのため、pre-commitフックの配置をスキップしました。トークン漏洩防止のチェックが必要な場合は、既存のフックへ手動で組み込んでください。",
42
- "warning.gitHooksPathConflict": "gitのcore.hooksPathが {current} に設定されているため、pre-commitフックの有効化をスキップしました。トークン漏洩防止のチェック (.githooks/pre-commit) を既存のフック機構へ手動で組み込んでください。",
43
- "warning.gitHooksForeignFiles": ".githooks 配下にCLI管理外のファイル ({files}) が存在するため、core.hooksPathの自動設定をスキップしました。内容に問題がないことを確認した上で、git config core.hooksPath .githooks を手動で実行してください。",
44
- "warning.gitHooksLayoutSuspicious": ".git の参照先 ({path}) がプロジェクトの外を指しているため、core.hooksPathの自動設定をスキップしました。必要な場合は git config core.hooksPath .githooks を手動で実行してください。",
41
+ "gitHooks.placed": "pre-commit フックを配置しました: {path}",
42
+ "gitHooks.integrationScriptKept": "組み込み用の {path} は残しています。ほかの pre-commit フックから実行していなければ、削除できます。",
43
+ "gitHooks.confirmParentRepo": "このプロジェクトは git リポジトリ({repositoryRoot})のサブフォルダーにあります。リポジトリ全体のコミットを検査する pre-commit フックを {path} に配置しますか?",
44
+ "gitHooks.reason.foreignHook": "{path} に CLI 管理外の pre-commit フックがあるため、pre-commit フックを配置しませんでした。",
45
+ "gitHooks.reason.hooksPathSet": "git の core.hooksPath が \"{value}\" に設定されているため、pre-commit フックを配置しませんでした。",
46
+ "gitHooks.reason.parentRepoDeclined": "pre-commit フックを配置しませんでした。次に接続情報を保存するときに、もう一度確認します。",
47
+ "gitHooks.reason.parentRepoNoConfirm": "プロジェクトが git リポジトリ({repositoryRoot})のサブフォルダーにあるため、確認なしでは pre-commit フックを配置しませんでした。配置するには accel login --allow-parent-repo-hook を実行してください。",
48
+ "gitHooks.reason.unverified": "{path} の参照先を確かめられなかったため、pre-commit フックを配置しませんでした(worktree を移動した場合は git worktree repair で参照を直せます)。",
49
+ "gitHooks.reason.hooksDirUnsupported": "{path} が通常のディレクトリではないため、pre-commit フックを配置しませんでした。",
50
+ "gitHooks.reason.writeFailed": "pre-commit フックを {path} に配置できませんでした: {message}",
51
+ "gitHooks.guidance.runScript": "API キーの検査を有効にするには、pre-commit フックから {script} を実行してください(例: bash {script} || exit 1)。",
52
+ "gitHooks.guidance.copyOrRun": "手動で配置する場合は、{source} を {hookPath} にコピーして実行権限を付けてください。既存の pre-commit フックがある場合は、そこから実行してください(例: bash {script} || exit 1)。",
53
+ "gitHooks.guidance.noScript": "組み込み用のスクリプトも置けませんでした({dir} に CLI 管理外のファイルがあるか、通常のディレクトリではありません)。",
54
+ "gitHooks.guidance.scriptWriteFailed": "組み込み用のスクリプトも {path} に書き込めませんでした: {message}",
55
+ "gitHooks.updateFailed": "{path} を最新の内容に更新できませんでした: {message}(以前の内容のまま残っています)",
56
+ "gitHooks.migrated": "旧方式の pre-commit フック設定(core.hooksPath=.githooks)を新方式に移行しました。",
57
+ "gitHooks.migrated.removedDir": "- .githooks/ を削除しました。この削除をコミットしてください。",
58
+ "gitHooks.migrated.reenabled": "- この設定で止まっていた .git/hooks/ のフックが、再び実行されるようになりました: {hooks}",
59
+ "gitHooks.migrated.teamNotice": "- 旧方式のままのほかの環境(ほかの人の clone や、別の PC など)では、.githooks/ の削除を取り込むと、その環境で accel login を実行するまで API キーの検査(pre-commit フック)が動きません。",
60
+ "gitHooks.migrated.removeCall": "- ほかの pre-commit フックから {path} を実行している場合は、その呼び出しも削除してください。",
61
+ "gitHooks.migrated.checkDisabled": "- accel CLI の API キーの検査(.githooks/pre-commit)は、この変更で行われなくなりました。続けて表示する警告の手順で有効にしてください。",
62
+ "gitHooks.migrationStopped": "旧方式の pre-commit フック設定(core.hooksPath=.githooks)の移行を途中で止めました: {message}。",
63
+ "gitHooks.migrationStopped.unprotected": "core.hooksPath が .githooks を指したままのため、API キーの検査は行われていません。",
64
+ "gitHooks.hooksPathRemains": "削除を試みた後も、ローカル設定に core.hooksPath が残っています",
65
+ "gitHooks.legacySettingRemoved": "旧方式の pre-commit フック設定(core.hooksPath=.githooks)を外しました。",
66
+ "gitHooks.migrationStopped.active": "旧方式のフックはそのまま動いています。",
67
+ "gitHooks.migrationStopped.retry": "次に接続情報を保存するときに、もう一度移行します。",
68
+ "gitHooks.configNotEditable.symlink": "{path} はシンボリックリンクで、書き換えるとリンク先のファイルを変えてしまうため、CLI では書き換えません",
69
+ "gitHooks.configNotEditable.notRegularFile": "{path} が通常のファイルではないため、CLI では書き換えません",
70
+ "gitHooks.configNotEditable.tooLarge": "{path} が大きすぎる(1MB を超える)ため、CLI では書き換えません",
71
+ "gitHooks.configNotEditable.unreadable": "{path} を読み取れないため、CLI では書き換えられません",
72
+ "gitHooks.configNotEditable.invalidEncoding": "{path} に UTF-8 以外の文字コードの文字(ユーザー名など)が含まれ、書き換えると文字が壊れるため、CLI では書き換えません",
73
+ "gitHooks.configNotEditable.keyOnHeaderLine": "{path} に、[core] hooksPath = … のように 1 行にまとめた書き方があるため、CLI では書き換えられません",
74
+ "gitHooks.manualUnset.introPlaced": "次のコマンドで、このリポジトリの設定({config})から core.hooksPath を削除すると、git は既定の .git/hooks/ のフックを実行するようになり、配置済みの {hookPath} が有効になります:",
75
+ "gitHooks.manualUnset.intro": "次のコマンドで、このリポジトリの設定({config})から core.hooksPath を削除すると、git は既定の .git/hooks/ のフックを実行するようになります:",
76
+ "gitHooks.manualUnset.introOtherHooksPath": "次のコマンドで、このリポジトリの設定({config})から core.hooksPath を削除すると、git はグローバル設定(~/.gitconfig など)の core.hooksPath が指す \"{hooksPath}\" のフックを実行するようになります:",
77
+ "gitHooks.manualUnset.introWorktreeHooksPath": "次のコマンドで、このリポジトリの設定({config})から core.hooksPath を削除できます。この worktree では、削除した後も、worktree ごとの設定(config.worktree)の core.hooksPath が指す \"{hooksPath}\" のフックが実行されます:",
78
+ "gitHooks.manualUnset.reenabled": "- 次のフックが再び実行されるようになります: {hooks}",
79
+ "gitHooks.manualUnset.worktrees": "- このコマンドは、このリポジトリのすべての worktree に効きます。",
80
+ "gitHooks.manualUnset.thenLogin": "- core.hooksPath を削除した後に、accel login を実行してください。pre-commit フックを配置するか、配置できない理由と対処を表示します。",
81
+ "gitHooks.manualUnset.undo": "- このコマンドは、ほかのリポジトリとグローバル設定を変えません。元に戻すには次を実行します:",
82
+ "gitHooks.manualUnset.noCommand": "このリポジトリの設定({config})から core.hooksPath を削除してください。リポジトリのパスに、シェルで特別な意味を持つ文字が含まれるため、コマンドは表示しません。",
83
+ "gitHooks.manualUnset.symlinkPlaced": "リンク先のファイル({target})から core.hooksPath を削除すると、配置済みの {hookPath} が有効になります。リンク先をほかのリポジトリと共有している場合は、そちらの設定も変わります。",
84
+ "gitHooks.manualUnset.symlink": "リンク先のファイル({target})から core.hooksPath を削除してから、accel login を実行してください。リンク先をほかのリポジトリと共有している場合は、そちらの設定も変わります。",
85
+ "gitHooks.manualUnset.keepDir": "- core.hooksPath を削除すると、.githooks/ は使われなくなります。CLI では .githooks/ を削除しないので、削除する場合は、その削除をコミットしてください。",
86
+ "gitHooks.detach.legacyKeepDir": "- .githooks/ は残しています。core.hooksPath を削除してから、.githooks/ も削除してください。",
87
+ "gitHooks.detach.legacyManual": "このリポジトリの設定({config})から core.hooksPath を削除してください。",
88
+ "gitHooks.detach.legacySymlink": "リンク先のファイル({target})から core.hooksPath を削除してください。リンク先をほかのリポジトリと共有している場合は、そちらの設定も変わります。",
89
+ "gitHooks.unexpectedError": "pre-commit フックの処理中にエラーが発生しました: {message}",
90
+ "gitHooks.detach.legacyFailed": "旧方式の pre-commit フック設定(core.hooksPath=.githooks)を外せませんでした: {message}。",
91
+ "gitHooks.detach.confirmList": "次の pre-commit フックのファイルも削除します:",
92
+ "gitHooks.detach.confirmLegacy": "旧方式の pre-commit フック設定(core.hooksPath=.githooks)も外します。",
93
+ "gitHooks.detach.removed": "pre-commit フックを削除しました: {path}",
94
+ "gitHooks.detach.integrationRemoved": "組み込み用の pre-commit スクリプトを削除しました: {path}",
95
+ "gitHooks.detach.sharedNotice": "同じリポジトリで accel を使っているほかのプロジェクトでは、次に accel login を実行するまで API キーの検査(pre-commit フック)が動きません。",
96
+ "gitHooks.detach.removeCall": "ほかの pre-commit フックから {path} を実行している場合は、その呼び出しも削除してください。",
97
+ "gitHooks.detach.legacyRemoved": "旧方式の pre-commit フック設定(core.hooksPath=.githooks)を外し、.githooks/ を削除しました。",
98
+ "gitHooks.detach.reenabled": "この設定で止まっていた .git/hooks/ のフックが、再び実行されるようになりました: {hooks}",
45
99
  "warning.ensureScriptUserFile": "{path} はCLI管理外のファイルのため、skill の依存を install するスクリプトの配置をスキップしました。自動 install を有効にするには、このファイルを削除または退避してからコマンドを再実行してください。",
46
100
  "warning.ensureLaunchFailed": "{command} を起動できませんでした。実行環境(Node.js または Bun)を確認した上で、手動で実行してください。",
101
+ "warning.installBuild.failed": "{command} が失敗しました({status})。出力の末尾:\n{output}",
102
+ "warning.installBuild.failedNoOutput": "{command} が失敗しました({status})。",
103
+ "warning.installBuild.exitCode": "終了コード {code}",
104
+ "warning.installBuild.signal": "シグナル {signal}",
105
+ "warning.installBuild.buildNotRun": "install に失敗したため、{command} は実行しませんでした。",
106
+ "warning.installBuild.commandNotFound": "{command} が見つからないため、install / build を実行しませんでした。{command} をインストールしてから、プロジェクトで次のコマンドを実行してください:\n {installCommand} && {buildCommand}",
47
107
  "attach.skipSummary": "{count}件のファイルは既に存在したためスキップしました。",
48
108
  "attach.overwritePrompt": "{path} は既に存在します。上書きしますか?",
49
109
  "attach.overwritePrompt.yes": "Yes (このファイルを上書き)",
@@ -52,6 +112,11 @@ export const messages = {
52
112
  "attach.overwritePrompt.skipAll": "Skip-all (以降全てスキップ)",
53
113
  "attach.overwritten": "上書き: {path}",
54
114
  "attach.overwriteSummary": "{count}件のファイルを上書きしました。",
115
+ "attach.installStopped": "既存のファイルをスキップしたため、install / build を実行しませんでした。スキップしたファイルを確認してから、次のコマンドを実行してください:\n {installCommand} && {buildCommand}",
116
+ "attach.lockfileHint": "package.json とロックファイル({lockfile})の一方だけをスキップしたため、両者が合っていない可能性があります。package.json を確認してから、{installCommand} の代わりに {updateCommand} を実行して、ロックファイルを更新してください。",
117
+ "attach.pomCreated": "pom.xml を新しく作成しました。既存プロジェクトの依存(jar、他のプロジェクトへの参照、カタログに無い intra-mart のモジュール)は含まれていません。pom.xml の依存を確認してください。",
118
+ "attach.pomOverwritten": "pom.xml を資材の内容で上書きしました。元の pom.xml にあった依存は引き継いでいません。元の内容と比べて、必要な依存を追加してください。",
119
+ "attach.updateHint": "既存のファイル {count} 件をスキップしました。資材の内容と比べるには、accel update を実行してください(資材と内容が違うファイルには、コンフリクトマーカーで区切って両方の内容が入ります)。git などで管理している場合は、先に attach の結果をコミットしてください。",
55
120
  "detach.confirm": "このプロジェクトからAccel CLIを解除します。よろしいですか?",
56
121
  "detach.deleted": "削除: {path}",
57
122
  "detach.skipped": "スキップ: {path} (変更が検出されました)",
@@ -112,7 +177,7 @@ export const messages = {
112
177
  "switch.upToDate": "変更はありません。",
113
178
  "switch.complete": "switchが完了しました。{updated}件を更新、{added}件を追加、{deleted}件を削除しました。",
114
179
  "switch.skippedSummary": "{count}件の編集済みファイルをスキップしました。切り替えは適用されていません:",
115
- "switch.installFailedHint": "install / build が失敗しました。スキップされた編集済みファイルが新しい構成と互換でない可能性があります。",
180
+ "switch.installFailedHint": "上記の失敗は、スキップした次の編集済みファイルが新しい構成と合っていないために起きた可能性があります:",
116
181
  "cache.info.dir": "キャッシュディレクトリ: {path}",
117
182
  "cache.info.overridden": "(環境変数 ACCEL_CACHE_DIR で上書きされています)",
118
183
  "cache.info.total": "合計サイズ: {size}",
@@ -231,7 +296,7 @@ export const messages = {
231
296
  "login.intro": "Accel CLI - login",
232
297
  "login.complete": "接続情報を保存しました。",
233
298
  "mcp.generated": "MCP 設定を生成/更新しました: {path}",
234
- "mcp.hint.loginRequired": "accel login を実行すると iAP 接続用の MCP 設定が生成されます。",
299
+ "mcp.hint.loginRequired": "iAP に接続する MCP サーバーの設定は、accel login を実行すると追加されます。",
235
300
  "mcp.detach.removed": "MCP 設定から CLI 管理のエントリを除去しました: {path}({count}件)",
236
301
  "mcp.warning.unknownOutput": "生成対象外の出力先のため、MCP 設定テンプレートをスキップしました: {path}",
237
302
  "mcp.warning.fragmentParse": "MCP 設定テンプレートを読み込めないか解析できないためスキップしました: {path}",
@@ -341,6 +406,7 @@ export const messages = {
341
406
  "progress.createExpo": "create-expo を実行しています...",
342
407
  "progress.expoSkills": "Expo 公式 skills を導入しています...",
343
408
  "error.externalRunnerNotFound": "{command} が見つかりません。インストールしてから再実行してください。",
409
+ "error.createExpoNpmNotFound": "npm が見つかりません。create-expo の実行には、パッケージマネージャの選択(--package-manager)にかかわらず npm が必要です。npm(Node.js に同梱)をインストールしてから再実行してください。",
344
410
  "hint.packageManagerOption": "--package-manager で別のパッケージマネージャを指定することもできます(例: --package-manager npm)。",
345
411
  "error.createExpoFailed": "create-expo の実行に失敗しました: {command}\n{dir} が作成されている場合は、内容を確認して削除してから再実行してください。\n{output}",
346
412
  "warning.createExpoInstallIncomplete": "依存のインストールが完了していない可能性があります。プロジェクトで {command} を実行してください。",