agent-sandbox
{
无中文版
docs/design/fixtures/tree-digest-vectors.json
{
"schema_version": 1,
"algorithm": "sha256 over sorted(path utf-8 bytes): path \\0 (x|-) \\0 sha256(file) \\n",
"vectors": [
{
"name": "empty tree",
"files": [],
"tree_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
{
"name": "single file",
"files": [
{
"path": "abx-provider.toml",
"executable": false,
"content_b64": "bWFuaWZlc3RfdmVyc2lvbiA9IDEK"
}
],
"tree_sha256": "3bd81e030457de347cb9e760ae1c301813b2fe9bfca6a616c22116cdf40dc30b"
},
{
"name": "executable flag matters",
"files": [
{
"path": "run.sh",
"executable": true,
"content_b64": "IyEvYmluL3NoCg=="
}
],
"tree_sha256": "66672001165c604b4fda182212da8231e6c6dfc79e4daeb8f08fd06ef091ba9e"
},
{
"name": "not executable",
"files": [
{
"path": "run.sh",
"executable": false,
"content_b64": "IyEvYmluL3NoCg=="
}
],
"tree_sha256": "9fe1a44885afddf3c0b0137f53f0f3f89c856102fa0ea3a0e31618bc4b3f5fac"
},
{
"name": "sorted by utf-8 path bytes, not insertion order",
"files": [
{
"path": "b.txt",
"executable": false,
"content_b64": "Yg=="
},
{
"path": "a/z.txt",
"executable": false,
"content_b64": "eg=="
},
{
"path": "a.txt",
"executable": false,
"content_b64": "YQ=="
},
{
"path": "B.txt",
"executable": false,
"content_b64": "Qg=="
}
],
"tree_sha256": "276bb2662b610f0154855098ea739f4a597377eff95438b2b3e7ac73207ba383"
},
{
"name": "nested and unicode paths",
"files": [
{
"path": "lib/依赖/模块.py",
"executable": false,
"content_b64": "cHJpbnQoJ+S9oOWlvScpCg=="
},
{
"path": "lib/x.py",
"executable": true,
"content_b64": ""
}
],
"tree_sha256": "074384aa73b14ee31149b1337b280040e8cfa2f1a0528bec233b4e69f83f3b47"
},
{
"name": "binary content",
"files": [
{
"path": "blob.bin",
"executable": false,
"content_b64": "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn+AgYKDhIWGh4iJiouMjY6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+/w=="
}
],
"tree_sha256": "9e2e20b0279d546be97ae02460720bc0512656079eeb34d4fe0ec10be3e09fb0"
},
{
"name": "empty file",
"files": [
{
"path": "empty",
"executable": false,
"content_b64": ""
}
],
"tree_sha256": "44f668212e6c5d4867e441fd191ecc289d929ed4725907da151b5ed1a584792b"
},
{
"name": "file whose name looks like the receipt, nested",
"files": [
{
"path": "sub/.abx-install.json",
"executable": false,
"content_b64": "e30="
}
],
"tree_sha256": "acd07209434e4196e1a4fc1347a5f64ebff026e55c65416731d1f59341fde0e2"
}
]
}