AIDP ワークスペース内でネイティブGit(バージョン管理ツール)を操作します。ブランチの作成・切り替え、変更のコミット・プッシュ、プル、マージ、リベース(履歴の再整理)、リセット、差分確認、競合解決など、ワークスペースのGitリポジトリに関するすべての操作に対応しています。 **次のような場合に使用:** - ユーザーがワークスペースのノートブックやコードをGitで版管理したいとき - ブランチを管理したいとき - 変更をコミット・プッシュしたいとき - AIDP内で競合を解決したいとき GitService APIの動作を事前確認する場合は、`oci raw-request`コマンドで確認してから実行してください。
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に記録してください。
20240831、プレフィックス dataLakes)ベース:
https://aidp.<region>.oci.oraclecloud.com/20240831/dataLakes/<DATALAKE_OCID>/…
GET|PUT /workspaces/{ws}/gitRepositories/{repo} · POST|GET …/gitBranchesPOST …/actions/checkOutBranch|commitPush|merge|pull|rebase|reset|resetState|resolveConflictsGET …/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参照)。
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 を使用(事前確認必須)。references/oci-raw-request.md の共通規約に従ってポーリングしてください。reset / resetState / 強制系の操作は 破壊的 です —
失われるものを提示してからユーザーに確認を取ること。.env ファイルをコミットしないこと。.aidp/payloads/ に保存してから実行すること —
references/payloads.md 参照。aidp CLI v1.0.0 は GitService グループを完全には持たない(workspace create-git-folder のみ)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.
20240831, prefix dataLakes)Base: https://aidp.<region>.oci.oraclecloud.com/20240831/dataLakes/<DATALAKE_OCID>/…
GET|PUT /workspaces/{ws}/gitRepositories/{repo} · POST|GET …/gitBranchesPOST …/actions/checkOutBranch|commitPush|merge|pull|rebase|reset|resetState|resolveConflictsGET …/actions/gitOperationState|gitDiff|gitDiffDetailsDefault 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.
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).
references/oci-raw-request.md). Verify with GET …/actions/gitOperationState.
A 404 NotAuthorizedOrNotFound here = GitService Preview not provisioned in this 20240831 env → stop
and tell the user to enable it; do not fabricate success.gitBranches (list/create) → actions/checkOutBranch.actions/gitDiff / gitDiffDetails before committing.actions/commitPush (message in body). Integrate: pull/merge/rebase.actions/resolveConflicts; recover bad state with reset/resetState (confirm first).references/oci-raw-request.md.reset/resetState/force-style ops are destructive — show what will be lost and confirm..env..aidp/payloads/ and confirm first — see references/payloads.md.aidp CLI v1.0.0 has no full GitService group (only workspace create-git-folder)原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。