@pecot/workflow-mcp 0.0.0-stage → 5.0.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/.claude-plugin/plugin.json +8 -0
- package/LICENSE +21 -0
- package/README.md +126 -2
- package/bin/pecot-workflow-mcp.mjs +10 -0
- package/cli/dist/cli.d.ts +26 -0
- package/cli/dist/cli.js +222 -0
- package/cli/dist/commands/cell-table.d.ts +3 -0
- package/cli/dist/commands/cell-table.js +495 -0
- package/cli/dist/commands/command-binding.d.ts +26 -0
- package/cli/dist/commands/command-binding.js +266 -0
- package/cli/dist/commands/command-definition.d.ts +136 -0
- package/cli/dist/commands/command-definition.js +101 -0
- package/cli/dist/commands/command-help.d.ts +8 -0
- package/cli/dist/commands/command-help.js +173 -0
- package/cli/dist/commands/command-stop.d.ts +19 -0
- package/cli/dist/commands/command-stop.js +30 -0
- package/cli/dist/commands/dependabot.d.ts +3 -0
- package/cli/dist/commands/dependabot.js +165 -0
- package/cli/dist/commands/directory-option.d.ts +7 -0
- package/cli/dist/commands/directory-option.js +48 -0
- package/cli/dist/commands/failure.d.ts +13 -0
- package/cli/dist/commands/failure.js +33 -0
- package/cli/dist/commands/fuzzy.d.ts +7 -0
- package/cli/dist/commands/fuzzy.js +79 -0
- package/cli/dist/commands/github-client.d.ts +12 -0
- package/cli/dist/commands/github-client.js +23 -0
- package/cli/dist/commands/global-options.d.ts +25 -0
- package/cli/dist/commands/global-options.js +83 -0
- package/cli/dist/commands/help-layout.d.ts +40 -0
- package/cli/dist/commands/help-layout.js +117 -0
- package/cli/dist/commands/help.d.ts +8 -0
- package/cli/dist/commands/help.js +55 -0
- package/cli/dist/commands/input-schema.d.ts +14 -0
- package/cli/dist/commands/input-schema.js +56 -0
- package/cli/dist/commands/issue-board.d.ts +38 -0
- package/cli/dist/commands/issue-board.js +62 -0
- package/cli/dist/commands/issue-comment.d.ts +3 -0
- package/cli/dist/commands/issue-comment.js +196 -0
- package/cli/dist/commands/issue-create.d.ts +3 -0
- package/cli/dist/commands/issue-create.js +329 -0
- package/cli/dist/commands/issue-project.d.ts +3 -0
- package/cli/dist/commands/issue-project.js +176 -0
- package/cli/dist/commands/issue-quick.d.ts +3 -0
- package/cli/dist/commands/issue-quick.js +126 -0
- package/cli/dist/commands/issue-read.d.ts +3 -0
- package/cli/dist/commands/issue-read.js +80 -0
- package/cli/dist/commands/issue-shared.d.ts +159 -0
- package/cli/dist/commands/issue-shared.js +419 -0
- package/cli/dist/commands/issue.d.ts +4 -0
- package/cli/dist/commands/issue.js +15 -0
- package/cli/dist/commands/names.d.ts +9 -0
- package/cli/dist/commands/names.js +16 -0
- package/cli/dist/commands/output.d.ts +78 -0
- package/cli/dist/commands/output.js +187 -0
- package/cli/dist/commands/pr.d.ts +3 -0
- package/cli/dist/commands/pr.js +933 -0
- package/cli/dist/commands/project-info.d.ts +48 -0
- package/cli/dist/commands/project-info.js +181 -0
- package/cli/dist/commands/project-sync.d.ts +91 -0
- package/cli/dist/commands/project-sync.js +273 -0
- package/cli/dist/commands/project.d.ts +5 -0
- package/cli/dist/commands/project.js +677 -0
- package/cli/dist/commands/registry.d.ts +6 -0
- package/cli/dist/commands/registry.js +27 -0
- package/cli/dist/commands/release.d.ts +10 -0
- package/cli/dist/commands/release.js +414 -0
- package/cli/dist/commands/repository-display.d.ts +3 -0
- package/cli/dist/commands/repository-display.js +7 -0
- package/cli/dist/commands/repository-match.d.ts +14 -0
- package/cli/dist/commands/repository-match.js +33 -0
- package/cli/dist/commands/repository.d.ts +5 -0
- package/cli/dist/commands/repository.js +265 -0
- package/cli/dist/commands/rich-panel.d.ts +22 -0
- package/cli/dist/commands/rich-panel.js +295 -0
- package/cli/dist/commands/security.d.ts +3 -0
- package/cli/dist/commands/security.js +164 -0
- package/cli/dist/commands/session.d.ts +3 -0
- package/cli/dist/commands/session.js +161 -0
- package/cli/dist/commands/tracker-sync.d.ts +58 -0
- package/cli/dist/commands/tracker-sync.js +53 -0
- package/cli/dist/commands/usage-error.d.ts +47 -0
- package/cli/dist/commands/usage-error.js +72 -0
- package/cli/dist/commands/value-types.d.ts +46 -0
- package/cli/dist/commands/value-types.js +94 -0
- package/cli/dist/commands/work-target.d.ts +13 -0
- package/cli/dist/commands/work-target.js +41 -0
- package/cli/dist/commands/worktree.d.ts +3 -0
- package/cli/dist/commands/worktree.js +335 -0
- package/cli/dist/domain/api-error-detail.d.ts +10 -0
- package/cli/dist/domain/api-error-detail.js +25 -0
- package/cli/dist/domain/branch-name.d.ts +5 -0
- package/cli/dist/domain/branch-name.js +10 -0
- package/cli/dist/domain/changelog.d.ts +43 -0
- package/cli/dist/domain/changelog.js +107 -0
- package/cli/dist/domain/config.d.ts +215 -0
- package/cli/dist/domain/config.js +300 -0
- package/cli/dist/domain/dependabot-pull-requests.d.ts +82 -0
- package/cli/dist/domain/dependabot-pull-requests.js +338 -0
- package/cli/dist/domain/dependabot-source.d.ts +51 -0
- package/cli/dist/domain/dependabot-source.js +4 -0
- package/cli/dist/domain/dependabot.d.ts +47 -0
- package/cli/dist/domain/dependabot.js +88 -0
- package/cli/dist/domain/errors.d.ts +19 -0
- package/cli/dist/domain/errors.js +31 -0
- package/cli/dist/domain/field-options.d.ts +31 -0
- package/cli/dist/domain/field-options.js +44 -0
- package/cli/dist/domain/format.d.ts +47 -0
- package/cli/dist/domain/format.js +168 -0
- package/cli/dist/domain/frontmatter.d.ts +122 -0
- package/cli/dist/domain/frontmatter.js +264 -0
- package/cli/dist/domain/git-runner.d.ts +10 -0
- package/cli/dist/domain/git-runner.js +4 -0
- package/cli/dist/domain/git-url.d.ts +17 -0
- package/cli/dist/domain/git-url.js +30 -0
- package/cli/dist/domain/issue-kind.d.ts +16 -0
- package/cli/dist/domain/issue-kind.js +16 -0
- package/cli/dist/domain/issue-readout.d.ts +107 -0
- package/cli/dist/domain/issue-readout.js +4 -0
- package/cli/dist/domain/json-null.d.ts +2 -0
- package/cli/dist/domain/json-null.js +5 -0
- package/cli/dist/domain/json.d.ts +21 -0
- package/cli/dist/domain/json.js +47 -0
- package/cli/dist/domain/prerequisites.d.ts +32 -0
- package/cli/dist/domain/prerequisites.js +192 -0
- package/cli/dist/domain/pull-request.d.ts +134 -0
- package/cli/dist/domain/pull-request.js +232 -0
- package/cli/dist/domain/python-format.d.ts +105 -0
- package/cli/dist/domain/python-format.js +304 -0
- package/cli/dist/domain/readiness.d.ts +172 -0
- package/cli/dist/domain/readiness.js +280 -0
- package/cli/dist/domain/reference-parser.d.ts +49 -0
- package/cli/dist/domain/reference-parser.js +119 -0
- package/cli/dist/domain/release.d.ts +49 -0
- package/cli/dist/domain/release.js +72 -0
- package/cli/dist/domain/repository-policy.d.ts +32 -0
- package/cli/dist/domain/repository-policy.js +65 -0
- package/cli/dist/domain/repository-resolver.d.ts +57 -0
- package/cli/dist/domain/repository-resolver.js +119 -0
- package/cli/dist/domain/sections.d.ts +69 -0
- package/cli/dist/domain/sections.js +514 -0
- package/cli/dist/domain/security-alerts-source.d.ts +29 -0
- package/cli/dist/domain/security-alerts-source.js +4 -0
- package/cli/dist/domain/security-alerts.d.ts +52 -0
- package/cli/dist/domain/security-alerts.js +107 -0
- package/cli/dist/domain/security-tracker.d.ts +115 -0
- package/cli/dist/domain/security-tracker.js +353 -0
- package/cli/dist/domain/state.d.ts +29 -0
- package/cli/dist/domain/state.js +56 -0
- package/cli/dist/domain/tracker-body.d.ts +70 -0
- package/cli/dist/domain/tracker-body.js +65 -0
- package/cli/dist/domain/yaml-document.d.ts +5 -0
- package/cli/dist/domain/yaml-document.js +206 -0
- package/cli/dist/infra/authored-notes.d.ts +37 -0
- package/cli/dist/infra/authored-notes.js +66 -0
- package/cli/dist/infra/changelog-file.d.ts +19 -0
- package/cli/dist/infra/changelog-file.js +43 -0
- package/cli/dist/infra/child-stdin.d.ts +4 -0
- package/cli/dist/infra/child-stdin.js +8 -0
- package/cli/dist/infra/config-store.d.ts +49 -0
- package/cli/dist/infra/config-store.js +121 -0
- package/cli/dist/infra/diagnostics.d.ts +9 -0
- package/cli/dist/infra/diagnostics.js +2 -0
- package/cli/dist/infra/file-kind.d.ts +9 -0
- package/cli/dist/infra/file-kind.js +26 -0
- package/cli/dist/infra/frontmatter-file.d.ts +14 -0
- package/cli/dist/infra/frontmatter-file.js +30 -0
- package/cli/dist/infra/git.d.ts +74 -0
- package/cli/dist/infra/git.js +133 -0
- package/cli/dist/infra/github/auth.d.ts +60 -0
- package/cli/dist/infra/github/auth.js +158 -0
- package/cli/dist/infra/github/client.d.ts +173 -0
- package/cli/dist/infra/github/client.js +576 -0
- package/cli/dist/infra/github/dependabot-source.d.ts +13 -0
- package/cli/dist/infra/github/dependabot-source.js +33 -0
- package/cli/dist/infra/github/errors.d.ts +47 -0
- package/cli/dist/infra/github/errors.js +42 -0
- package/cli/dist/infra/github/index.d.ts +13 -0
- package/cli/dist/infra/github/index.js +19 -0
- package/cli/dist/infra/github/issues.d.ts +129 -0
- package/cli/dist/infra/github/issues.js +273 -0
- package/cli/dist/infra/github/payload.d.ts +44 -0
- package/cli/dist/infra/github/payload.js +80 -0
- package/cli/dist/infra/github/projects.d.ts +108 -0
- package/cli/dist/infra/github/projects.js +303 -0
- package/cli/dist/infra/github/pulls.d.ts +80 -0
- package/cli/dist/infra/github/pulls.js +161 -0
- package/cli/dist/infra/github/queries.d.ts +36 -0
- package/cli/dist/infra/github/queries.js +883 -0
- package/cli/dist/infra/github/readout.d.ts +18 -0
- package/cli/dist/infra/github/readout.js +156 -0
- package/cli/dist/infra/github/repos.d.ts +68 -0
- package/cli/dist/infra/github/repos.js +137 -0
- package/cli/dist/infra/github/rest-path.d.ts +14 -0
- package/cli/dist/infra/github/rest-path.js +31 -0
- package/cli/dist/infra/github/security-alerts-source.d.ts +15 -0
- package/cli/dist/infra/github/security-alerts-source.js +73 -0
- package/cli/dist/infra/gitignore-spec.d.ts +36 -0
- package/cli/dist/infra/gitignore-spec.js +235 -0
- package/cli/dist/infra/nx-scope.d.ts +51 -0
- package/cli/dist/infra/nx-scope.js +182 -0
- package/cli/dist/infra/os-error.d.ts +24 -0
- package/cli/dist/infra/os-error.js +38 -0
- package/cli/dist/infra/paths.d.ts +88 -0
- package/cli/dist/infra/paths.js +234 -0
- package/cli/dist/infra/state-store.d.ts +45 -0
- package/cli/dist/infra/state-store.js +118 -0
- package/cli/dist/infra/template-store.d.ts +15 -0
- package/cli/dist/infra/template-store.js +34 -0
- package/cli/dist/infra/text-file.d.ts +12 -0
- package/cli/dist/infra/text-file.js +33 -0
- package/cli/dist/infra/worktree-copy.d.ts +24 -0
- package/cli/dist/infra/worktree-copy.js +95 -0
- package/cli/dist/infra/worktree-links.d.ts +139 -0
- package/cli/dist/infra/worktree-links.js +433 -0
- package/cli/dist/infra/worktree-setup.d.ts +21 -0
- package/cli/dist/infra/worktree-setup.js +41 -0
- package/cli/dist/infra/worktree.d.ts +174 -0
- package/cli/dist/infra/worktree.js +567 -0
- package/cli/dist/mcp/result.d.ts +33 -0
- package/cli/dist/mcp/result.js +52 -0
- package/cli/dist/mcp/serve.d.ts +51 -0
- package/cli/dist/mcp/serve.js +183 -0
- package/cli/dist/mcp/server.d.ts +21 -0
- package/cli/dist/mcp/server.js +128 -0
- package/cli/dist/mcp/session-directory.d.ts +26 -0
- package/cli/dist/mcp/session-directory.js +84 -0
- package/cli/dist/package.json +1 -0
- package/cli/dist/version.d.ts +17 -0
- package/cli/dist/version.js +42 -0
- package/cli/templates/comment/merge-diff.md +34 -0
- package/cli/templates/comment/plan.md +181 -0
- package/cli/templates/comment/precede-notify.md +33 -0
- package/cli/templates/comment/review-findings.md +42 -0
- package/cli/templates/comment/review-resolution.md +48 -0
- package/cli/templates/issue/bug.md +63 -0
- package/cli/templates/issue/epic.md +54 -0
- package/cli/templates/issue/task-implement.md +67 -0
- package/cli/templates/issue/task.md +48 -0
- package/cli/templates/issue/tracker.md +48 -0
- package/cli/templates/pr/create.md +123 -0
- package/cli/templates/pr/release.md +56 -0
- package/hooks/lib/core/pecot-gitignore-ensure.sh +48 -0
- package/npm-shrinkwrap.json +83 -0
- package/package.json +22 -4
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { BaseError } from '../domain/errors.js';
|
|
2
|
+
import type { Diagnostics } from './diagnostics.js';
|
|
3
|
+
import type { GitIgnoreSpec } from './gitignore-spec.js';
|
|
4
|
+
import type { SymlinkResult } from './worktree-links.js';
|
|
5
|
+
import type { CopyResult } from './worktree-copy.js';
|
|
6
|
+
import type { SetupResult } from './worktree-setup.js';
|
|
7
|
+
/**
|
|
8
|
+
ワークツリー操作に失敗した(Python の RuntimeError に当たる)。メッセージは利用者に見せる文
|
|
9
|
+
*/
|
|
10
|
+
export declare class WorktreeRuntimeError extends BaseError {
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
pecot worktree 系コマンドが devcontainer 内で実行されていることを確認する。
|
|
14
|
+
|
|
15
|
+
devcontainer 外(host 直接)での実行はサポート外。プロジェクトの devcontainer が整えるマウント構造
|
|
16
|
+
(/workspaces/<project>/base/<repo>)に依存するため、外で動かしても動作は保証しない。
|
|
17
|
+
|
|
18
|
+
検出方法(いずれかでヒットすれば通過)は次のとおり。
|
|
19
|
+
- `/.dockerenv` ファイルの存在。パスは dockerEnvironmentFile で差し替えられる。
|
|
20
|
+
- 環境変数 REMOTE_CONTAINERS・CODESPACES・DEVCONTAINER のいずれかが設定されている。
|
|
21
|
+
|
|
22
|
+
いずれも満たさなければ WorktreeRuntimeError
|
|
23
|
+
*/
|
|
24
|
+
export declare function ensureDevcontainerEnvironment(dockerEnvironmentFile?: string): void;
|
|
25
|
+
export interface WorktreeCreateResult {
|
|
26
|
+
/**
|
|
27
|
+
WT 名
|
|
28
|
+
*/
|
|
29
|
+
readonly name: string;
|
|
30
|
+
/**
|
|
31
|
+
WT パス
|
|
32
|
+
*/
|
|
33
|
+
readonly path: string;
|
|
34
|
+
readonly branch: string;
|
|
35
|
+
readonly baseBranch: string;
|
|
36
|
+
readonly copiedFiles: readonly CopyResult[];
|
|
37
|
+
readonly linkedFiles: readonly SymlinkResult[];
|
|
38
|
+
/**
|
|
39
|
+
setup_command の実行結果。実行しなかったときは undefined
|
|
40
|
+
*/
|
|
41
|
+
readonly setupResult: SetupResult | undefined;
|
|
42
|
+
}
|
|
43
|
+
export interface WorktreeInfo {
|
|
44
|
+
readonly path: string;
|
|
45
|
+
readonly commit: string;
|
|
46
|
+
/**
|
|
47
|
+
ブランチ名。detached HEAD なら undefined
|
|
48
|
+
*/
|
|
49
|
+
readonly branch: string | undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
git worktree list --porcelain の結果を分ける。実行に失敗したら空
|
|
53
|
+
*/
|
|
54
|
+
export declare function getWorktreeList(cwd?: string): readonly WorktreeInfo[];
|
|
55
|
+
/**
|
|
56
|
+
メインワークツリーのパスを取得する。git worktree list の最初のエントリがメイン WT。
|
|
57
|
+
任意の WT 内から呼べる。一覧を取得できなければ WorktreeRuntimeError
|
|
58
|
+
*/
|
|
59
|
+
export declare function findMainWorktree(cwd: string): string;
|
|
60
|
+
/**
|
|
61
|
+
メインワークツリーの設定ファイルを探す。無ければ undefined
|
|
62
|
+
*/
|
|
63
|
+
export declare function findWorktreeConfigFile(cwd?: string): string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
サブワークツリー環境かどうかを判定する。git rev-parse --git-dir と --git-common-dir を比較し、
|
|
66
|
+
サブ WT では git-dir がメインの .git を指すため、両者が異なる。
|
|
67
|
+
Git リポジトリ外、または git コマンドの失敗なら WorktreeRuntimeError
|
|
68
|
+
*/
|
|
69
|
+
export declare function isWorktreeEnvironment(cwd: string): boolean;
|
|
70
|
+
/**
|
|
71
|
+
サブワークツリーのパス一覧を取得する。get_worktree_list の最初のエントリ(メイン WT)を除く。
|
|
72
|
+
一覧を取得できなければ WorktreeRuntimeError
|
|
73
|
+
*/
|
|
74
|
+
export declare function getWorktreeDirectories(cwd: string): readonly string[];
|
|
75
|
+
/**
|
|
76
|
+
使用中の wtN の名前を返す。全 worktree の記録と、wtN のブランチを checkout している worktree の和
|
|
77
|
+
*/
|
|
78
|
+
export declare function claimedSetNames(mainWorktree: string): ReadonlySet<string>;
|
|
79
|
+
/**
|
|
80
|
+
現在のサブワークツリー名を取得する。
|
|
81
|
+
サブ WT でなければ undefined。記録(`pecot-worktree-name`)があればそれを返す。
|
|
82
|
+
無ければ toplevel の親ディレクトリ名を、`wt\d+` か `base` のときだけ返し、それ以外は undefined。
|
|
83
|
+
Git リポジトリ外なら WorktreeRuntimeError
|
|
84
|
+
*/
|
|
85
|
+
export declare function getCurrentWorktreeName(cwd: string): string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
プロジェクトルートを検出する。呼び出し側リポジトリの main WT を正規化し、`<root>/base/<repo>` の形になっているか確認する。
|
|
88
|
+
`<root>` の絶対パスを返す。その形でなければ WorktreeRuntimeError
|
|
89
|
+
*/
|
|
90
|
+
export declare function detectProjectRoot(cwd: string): string;
|
|
91
|
+
export interface NextSetNameOptions {
|
|
92
|
+
/**
|
|
93
|
+
プレフィクス。既定は `wt`
|
|
94
|
+
*/
|
|
95
|
+
readonly prefix?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
最大番号。既定は 9
|
|
98
|
+
*/
|
|
99
|
+
readonly maxNumber?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
使用中の名前(claimedSetNames の結果)。ディレクトリが無くても、参加せず max にも数える
|
|
102
|
+
*/
|
|
103
|
+
readonly claimed?: Iterable<string> | undefined;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
プロジェクトルート基準で、対象リポの参加先セット名を決める(プロジェクトセット = 同じ wtN 配下の複数リポ WT)。
|
|
107
|
+
|
|
108
|
+
1. `<projectRoot>/wt\d+/` と `options.claimed` の番号を列挙する。claimed の番号は参加せず、max にも数える。
|
|
109
|
+
2. 各 wtN について `wtN/<repositoryDirectoryName>` が存在しないものを先頭から探す。見つかったら既存セットに参加させる形でその名前を返す。
|
|
110
|
+
3. 全ての既存 wtN に該当リポが既にあるなら、max(N)+1 で新セット `wt<N+1>` を返す。
|
|
111
|
+
4. 既存セットが無ければ `wt1` を返す。
|
|
112
|
+
|
|
113
|
+
全セットに参加済みで maxNumber を超えるなら WorktreeRuntimeError
|
|
114
|
+
*/
|
|
115
|
+
export declare function getNextSetName(projectRoot: string, repositoryDirectoryName: string, options?: Readonly<NextSetNameOptions>): string;
|
|
116
|
+
/**
|
|
117
|
+
git 管理外(gitignored)ファイルの一覧を取得する。cwd はメイン WT のルート。相対パスを返す
|
|
118
|
+
*/
|
|
119
|
+
export declare function getUntrackedFiles(cwd: string): readonly string[];
|
|
120
|
+
/**
|
|
121
|
+
コピー対象外のファイルを除く。spec は .worktreeignore から読んだ判定
|
|
122
|
+
*/
|
|
123
|
+
export declare function filterCopyableFiles(files: readonly string[], spec: Readonly<GitIgnoreSpec>): readonly string[];
|
|
124
|
+
export interface CreateWorktreeOptions {
|
|
125
|
+
/**
|
|
126
|
+
WT 名。省略時はプロジェクトルート基準で自動決定する。
|
|
127
|
+
CLI(pecot worktree add)は NAME 位置引数を廃止しているため、常に省略で呼ばれる。
|
|
128
|
+
明示するとセット整合性が呼び出し側の責務になる
|
|
129
|
+
*/
|
|
130
|
+
readonly name?: string | undefined;
|
|
131
|
+
/**
|
|
132
|
+
ベースブランチ。省略時はプロジェクト設定の develop_branch
|
|
133
|
+
*/
|
|
134
|
+
readonly baseBranch?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
WT 作成先パス。省略時は `<project_root>/<name>/<repo_dir_name>`
|
|
137
|
+
*/
|
|
138
|
+
readonly path?: string | undefined;
|
|
139
|
+
/**
|
|
140
|
+
未追跡ファイルをコピーするか。既定は true
|
|
141
|
+
*/
|
|
142
|
+
readonly shouldCopy?: boolean | undefined;
|
|
143
|
+
/**
|
|
144
|
+
シンボリックリンクを作成するか。既定は true
|
|
145
|
+
*/
|
|
146
|
+
readonly shouldLink?: boolean | undefined;
|
|
147
|
+
/**
|
|
148
|
+
作成後に実行するコマンド。設定の setup_command より優先する
|
|
149
|
+
*/
|
|
150
|
+
readonly setupCommand?: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
プレビューのみ。既定は false
|
|
153
|
+
*/
|
|
154
|
+
readonly isDryRun?: boolean | undefined;
|
|
155
|
+
/**
|
|
156
|
+
既存ブランチの upstream が develop_branch と異なる場合でも再利用を許可するか。既定は false
|
|
157
|
+
*/
|
|
158
|
+
readonly isExistingBranchAllowed?: boolean | undefined;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
ワークツリーを作成する。cwd は対象 Git リポジトリのパス。
|
|
162
|
+
作成に失敗した場合、プロジェクトルート・既存ブランチ衝突・設定の不備は WorktreeRuntimeError
|
|
163
|
+
*/
|
|
164
|
+
export declare function createWorktree(cwd: string, diagnostics: Diagnostics, options?: Readonly<CreateWorktreeOptions>): WorktreeCreateResult;
|
|
165
|
+
/**
|
|
166
|
+
ワークツリーを削除する。name は worktree add が付けた名前(wtN)か、checkout しているブランチ名。
|
|
167
|
+
WT が見つからない・削除に失敗した場合は WorktreeRuntimeError。
|
|
168
|
+
ローカルブランチを消せなかったときは、その理由を返す。成功時と shouldKeepBranch は undefined
|
|
169
|
+
*/
|
|
170
|
+
export declare function removeWorktree(cwd: string, name: string, diagnostics: Diagnostics, options?: Readonly<{
|
|
171
|
+
readonly isForced?: boolean | undefined;
|
|
172
|
+
readonly shouldKeepBranch?: boolean | undefined;
|
|
173
|
+
}>): string | undefined;
|
|
174
|
+
//# sourceMappingURL=worktree.d.ts.map
|