🌿aidp-git
- ソース
- GitHub で見る ↗
説明
ワークスペース内のGitリポジトリに対して、ネイティブGitをAIDPワークスペース上で操作します。 対応機能: ブランチ管理、チェックアウト、コミット/プッシュ、プル、マージ、リベース、リセット、差分表示、コンフリクト解消。 次のような場合に使用: - ワークスペース上のノートブックやコードをGitでバージョン管理したい - ブランチの作成・切り替えを行いたい - 変更をコミット/プッシュしたい - AIDPの内部でコンフリクトを解消したい `oci raw-request` を使用してGitService APIをプレビューできます。実行前に必ず動作確認を行ってください。
原文を表示
Operate native Git in an AIDP workspace — branches, checkout, commit/push, pull, merge, rebase, reset, diff, and conflict resolution on workspace git repositories. Use when the user wants to version workspace notebooks/code in Git, manage branches, commit/push changes, or resolve conflicts inside AIDP. Preview GitService API via `oci raw-request`; verify live first.
ユースケース
- ✓ノートブックやコードをバージョン管理したい
- ✓ブランチの作成・切り替えを行いたい
- ✓変更をコミット・プッシュしたい
- ✓コンフリクトを解消するとき
本文(日本語訳)
aidp-git — ワークスペースのネイティブ Git 統合(プレビュー)
REST GitService API を通じて、AIDP のネイティブ Git 統合を操作します。
MCP 不要、ai-data-engineer-agent リポジトリも不要の完結型スキルです。
すべての呼び出しは、AIDP コントロールプレーンへの oci raw-request を使用します
(ベース URL および認証ラダーについては references/oci-raw-request.md を参照)。
CLI のギャップ(存在しないコマンドは使用しない): 公式
aidpCLI v1.0.0 はGitServiceグループを完全には公開していません。 存在するのはaidp workspace create-git-folderのみです。 ブランチ / チェックアウト / コミット・プッシュ / プル / マージ / リベース / リセット / 差分 / コンフリクト解消 はすべて REST API(プレビュー、未プロビジョニングの可能性あり) で行います。aidp gitコマンドが存在すると想定しないでください — references/aidp-cli-map.md を参照。
プレビュー + 事前検証(情報の捏造禁止):
GitServiceは プレビュー です。20240831テナンシーでactions/gitOperationStateへのライブ読み取りが404 NotAuthorizedOrNotFoundを返す場合、それは GitService がその環境でプロビジョニングされていない ことを意味します — パスが誤っているわけではありません。 変更を伴う操作を行う前に、ライブ読み取りで有効なAPI_VERSION/PATH_PREFIXを確認し、references/rest-endpoint-map.mdに記録してください。
次のような場合に使用
- 「ワークスペースのノートブックを Git でバージョン管理したい」
- 「ブランチを作成・チェックアウトしたい」
- 「コミットしてプッシュしたい」
- 「プル / マージ / リベースしたい」
- 「変更内容を確認したい(diff)」
- 「コンフリクトを解消したい」 — AIDP ワークスペース内での Git 操作全般。
エンドポイント(ワークスペース + リポジトリスコープ;プレビュー — デフォルト 20240831、プレフィックス dataLakes)
ベース:
https://aidp.<region>.oci.oraclecloud.com/20240831/dataLakes/<DATALAKE_OCID>/…
GET|PUT /workspaces/{ws}/gitRepositories/{repo}·POST|GET …/gitBranches- アクション:
POST …/actions/checkOutBranch|commitPush|merge|pull|rebase|reset|resetState|resolveConflicts - 状態読み取り:
GET …/actions/gitOperationState|gitDiff|gitDiffDetails
デフォルトは
20240831(このテナンシーで動作確認済みのバージョン)を使用してください。20260430は将来の GA ターゲットとして扱い、テナンシーのアップグレード後にのみ試みてください。想定ではなくプローブで確認すること。
エントリーポイント — リポジトリの登録 / クローン(CreateGitFolderDetails)
ブランチ操作やコミット操作を行う前に、git フォルダーが必要です。 これは実際の CLI コマンドが存在する 唯一 の Git 操作です (CLI README「workspace create-git-folder」参照):
aidp workspace create-git-folder <DATALAKE_OCID> <WORKSPACE-KEY> --body <JSON>
リクエストボディ(SDK create_git_folder_details.py:46-62):
| フィールド(ワイヤー名) | 必須 | 備考 |
|---|---|---|
folderPath |
✅ | 作成する git フォルダーの絶対パス |
gitRepositoryUrl |
✅ | クローンするリポジトリの URL |
branchName |
✅ | クローン / チェックアウトするブランチ |
credentialKey |
✅ | 保存済み git 認証情報のキー(GIT_ACCOUNT ユーザー設定 — aidp-user-settings 参照、または credentialStore エントリー — aidp-credentials 参照) |
gitProviderKey |
– | プロバイダーテーブル内の git プロバイダーキー |
description |
– | リポジトリの短い説明 |
例 — .aidp/payloads/create-<name>-git-folder.json に保存してから確認すること:
{
"folderPath": "/Workspace/repos/my-repo",
"gitRepositoryUrl": "https://github.com/org/my-repo.git",
"branchName": "main",
"credentialKey": "<CREDENTIAL_KEY>"
}
フィールド 名 は確認済みです(SDK
attribute_map+ CLI README)。 CLI コマンド自体はworkspaces/{ws}を対象とし、ここで文書化されているパスです。GitServiceのその他の操作(ブランチ / コミットなど)は引き続き 事前検証が必要なプレビュー扱いです (…/gitRepositoriesへの GET が 404 を返した場合 = この環境では未プロビジョニング —references/rest-endpoint-map.md参照)。
ワークフロー
- ベース URL + 認証ラダー(
references/oci-raw-request.md)を確認。GET …/actions/gitOperationStateで 疎通確認 を行う。 ここで404 NotAuthorizedOrNotFoundが返る場合 = この20240831環境で GitService プレビューが 未プロビジョニング → 処理を中断し、ユーザーに有効化を促すこと。成功を捏造しないこと。 - ブランチ:
gitBranches(一覧取得 / 作成)→actions/checkOutBranch。 - 検査: コミット前に
actions/gitDiff/gitDiffDetailsで差分を確認。 - コミット / プッシュ:
actions/commitPush(ボディにメッセージを含める)。 統合:pull/merge/rebase。 - コンフリクト:
actions/resolveConflictsで解消; 不正な状態からの回復にはreset/resetStateを使用(事前確認必須)。 - 長時間の操作は非同期(202)になる場合があります —
references/oci-raw-request.mdの共通規約に従ってポーリングしてください。
ガードレール
reset/resetState/ 強制系の操作は 破壊的 です — 失われるものを提示してからユーザーに確認を取ること。- シークレットや
.envファイルをコミットしないこと。 - 変更を伴う操作(commitPush / merge / rebase / reset / resolveConflicts)では、
リクエストボディを
.aidp/payloads/に保存してから実行すること — references/payloads.md 参照。
参考資料
- references/aidp-cli-map.md —
公式
aidpCLI v1.0.0 は GitService グループを完全には持たない(workspace create-git-folderのみ) - references/oci-raw-request.md · references/rest-endpoint-map.md
- references/payloads.md — 変更を伴う操作のリクエストボディの保存と確認
原文(English)を表示
aidp-git — native Git in the workspace (Preview)
Drive AIDP's native Git integration over the REST GitService API. Self-contained — no MCP and no
ai-data-engineer-agent repo required. All calls are oci raw-request against the AIDP control plane
(base URL + auth ladder in references/oci-raw-request.md).
CLI gap (no invented commands): the official
aidpCLI v1.0.0 does not expose a fullGitServicegroup — onlyaidp workspace create-git-folderexists. Branch / checkout / commit-push / pull / merge / rebase / reset / diff / conflict-resolution all stay on the REST API (Preview, may be unprovisioned). Do not assume anaidp gitcommand exists — see references/aidp-cli-map.md.
Preview + verify-first (no-fabrication):
GitServiceis Preview. A live read (actions/gitOperationState) returning404 NotAuthorizedOrNotFoundin a20240831tenancy means GitService is not provisioned for that env — not that the path is wrong. Confirm the workingAPI_VERSION/PATH_PREFIXwith a live read before any mutating op and record it inreferences/rest-endpoint-map.md.
When to use
- "Version my workspace notebooks in Git", "create/checkout a branch", "commit & push", "pull/merge/rebase", "what changed (diff)", "resolve conflicts" — inside the AIDP workspace.
Endpoints (workspace + repo scoped; Preview — default 20240831, prefix dataLakes)
Base: https://aidp.<region>.oci.oraclecloud.com/20240831/dataLakes/<DATALAKE_OCID>/…
GET|PUT /workspaces/{ws}/gitRepositories/{repo}·POST|GET …/gitBranches- Actions:
POST …/actions/checkOutBranch|commitPush|merge|pull|rebase|reset|resetState|resolveConflicts - Read state:
GET …/actions/gitOperationState|gitDiff|gitDiffDetails
Default to
20240831(the live-verified version for this tenancy). Treat20260430as a future GA target — only try it after a tenancy upgrade, and probe rather than assume.
Entry point — register/clone the repo (CreateGitFolderDetails)
Before any branch/commit op you need a git folder. This is the one git operation with a real CLI
command (CLI README "workspace create-git-folder"):
aidp workspace create-git-folder <DATALAKE_OCID> <WORKSPACE-KEY> --body <JSON>. Body
(SDK create_git_folder_details.py:46-62):
| Field (wire) | Req | Notes |
|---|---|---|
folderPath |
✅ | absolute path of the git folder to create |
gitRepositoryUrl |
✅ | repo URL to clone |
branchName |
✅ | branch to clone/check out |
credentialKey |
✅ | key of stored git credentials (a GIT_ACCOUNT user-setting — see aidp-user-settings — or a credentialStore entry — see aidp-credentials) |
gitProviderKey |
– | key of the git provider in the provider table |
description |
– | short repo description |
Example — persist to .aidp/payloads/create-<name>-git-folder.json and confirm first:
{
"folderPath": "/Workspace/repos/my-repo",
"gitRepositoryUrl": "https://github.com/org/my-repo.git",
"branchName": "main",
"credentialKey": "<CREDENTIAL_KEY>"
}
Field names are confirmed (SDK
attribute_map+ CLI README). The CLI command itself targetsworkspaces/{ws}and is the documented path here; the rest ofGitService(branch/commit/…) stays verify-first Preview (…/gitRepositoriesGET returned 404 = not provisioned in this env —references/rest-endpoint-map.md).
Workflow
- Base URL + auth ladder (
references/oci-raw-request.md). Verify withGET …/actions/gitOperationState. A404 NotAuthorizedOrNotFoundhere = GitService Preview not provisioned in this20240831env → stop and tell the user to enable it; do not fabricate success. - Branch:
gitBranches(list/create) →actions/checkOutBranch. - Inspect:
actions/gitDiff/gitDiffDetailsbefore committing. - Commit/push:
actions/commitPush(message in body). Integrate:pull/merge/rebase. - Conflicts:
actions/resolveConflicts; recover bad state withreset/resetState(confirm first). - Long ops may be async (202) — poll per the shared conventions in
references/oci-raw-request.md.
Guardrails
reset/resetState/force-style ops are destructive — show what will be lost and confirm.- Don't commit secrets/
.env. - For mutating ops (commitPush / merge / rebase / reset / resolveConflicts), persist the request body to
.aidp/payloads/and confirm first — see references/payloads.md.
References
- references/aidp-cli-map.md — official
aidpCLI v1.0.0 has no full GitService group (onlyworkspace create-git-folder) - references/oci-raw-request.md · references/rest-endpoint-map.md
- references/payloads.md — persist + confirm request bodies for mutating ops
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。