Files
FreeCADWasmDev/docs/p6/material-translate-method-runtime.json
wangdequan 9a7c4f0335 Save FreeCAD Web workspace sources and user validation evidence
IFC native binding remains incomplete; preserve accurate test results.
2026-09-15 22:01:58 +08:00

449 lines
15 KiB
JSON

{
"schema": "freecad-web-p6-material-translate-method-runtime/v1",
"taskId": "FW-P6-FPA-Y",
"module": "Material",
"tier": "tier-2-pure",
"apiId": "py:Material:function:translate",
"status": "pass",
"route": {
"command": "material.pythonFamilyBatch",
"worker": "web/src/material.worker.ts",
"facade": "web/src/material-python-family-facade.ts",
"apiBridge": "web/src/api-method-bridge.ts",
"native": "freecad-source/src/WebAssembly/FreeCADCoreProbe/MaterialKernelProbe.cpp:fc_web_dispatch_json"
},
"source": {
"entry": "src/Mod/Material/MaterialEditor.py",
"line": 957,
"revision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"function": "translate",
"guiImportBoundary": "official pure function definition is extracted without executing MaterialEditor GUI imports"
},
"request": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "request",
"requestId": "material-translate-success",
"command": "material.pythonFamilyBatch",
"payload": {
"schema": "freecad-web-material/python-family-batch/v1",
"module": "Material",
"tier": "tier-2-pure",
"records": [
{
"apiId": "py:Material:function:translate",
"name": "translate",
"family": "pure-function",
"kind": "function",
"sourcePath": "src/Mod/Material/MaterialEditor.py",
"disposition": "not_implemented",
"args": {
"context": "Material",
"text": "FreeCAD Web"
}
}
]
},
"documentId": "material-python-family"
},
"requestSha256": "9af33cc0235b71099b03f0cec1934c376cbde78193aeae00790fe7f2dc268c09",
"trace": {
"success": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "result",
"requestId": "material-translate-success",
"result": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "FreeCAD Web",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
}
},
"repeat": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "result",
"requestId": "material-translate-repeat",
"result": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "FreeCAD Web",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
}
},
"malformed": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "error",
"requestId": "material-translate-malformed",
"error": {
"code": "invalid_request",
"message": "Material Python family envelope invalid"
}
},
"invalid": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "result",
"requestId": "material-translate-invalid",
"result": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "source_error",
"family": "pure-function",
"message": "Material translate source fixture failed",
"name": "translate",
"native": true,
"parameterSchema": "source-declared",
"resourcesReleased": true,
"returnSchema": "source-declared",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "not_implemented"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
}
},
"duplicate": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "error",
"requestId": "material-translate-duplicate",
"error": {
"code": "duplicate_request",
"message": "requestId has already been dispatched"
}
},
"duplicateResult": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "result",
"requestId": "material-translate-duplicate",
"result": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "duplicate",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
}
},
"cancelled": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "error",
"requestId": "material-translate-cancel",
"error": {
"code": "cancelled",
"message": "request was cancelled before execution"
}
},
"direct": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "FreeCAD Web",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
},
"directRepeat": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "FreeCAD Web",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
},
"crossModule": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Part:function:translate",
"code": "unmatched_source_record",
"family": "pure-function",
"message": "Material API record is not part of this module-scoped adapter",
"name": "translate",
"native": true,
"parameterSchema": "unmatched",
"resourcesReleased": true,
"returnSchema": "unmatched",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "not_implemented"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
},
"unsupported": {
"ok": false,
"code": "unsupported_command",
"error": "Material native dispatch command is not registered"
},
"bridgeSuccess": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "result",
"requestId": "api-method-1788326262436",
"result": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "FreeCAD Web",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
}
},
"bridgeInvalid": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "error",
"requestId": "api-method-1788326262436",
"error": {
"code": "invalid_arguments",
"message": "Material.translate requires [context, text] string arguments",
"diagnostic": {
"apiId": "py:Material:function:translate",
"args": [
"Material"
]
}
}
}
},
"traceSha256": "45caaf251008c909a65d377cad7f94a92c52650edfdca212295dcc8ea7fadf92",
"worker": {
"trace": {
"ready": {
"kind": "ready",
"action": "material.pythonFamilyBatch"
},
"success": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "result",
"requestId": "material-translate-success",
"result": {
"cmd": "material.pythonFamilyBatch",
"count": 1,
"module": "Material",
"ok": true,
"records": [
{
"apiId": "py:Material:function:translate",
"code": "native_python_method",
"family": "pure-function",
"message": "Material translate was executed from the official FreeCAD source",
"name": "translate",
"native": true,
"parameterSchema": "context:string,text:string",
"resourcesReleased": true,
"result": "FreeCAD Web",
"returnSchema": "string",
"sourceEntry": "src/Mod/Material/MaterialEditor.py",
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
"status": "exposed"
}
],
"resourcesReleased": true,
"schema": "freecad-web-material/python-family-batch/v1",
"source": "freecad-source",
"tier": "tier-2-pure"
}
},
"duplicate": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "error",
"requestId": "material-translate-success",
"error": {
"code": "duplicate_request",
"message": "requestId has already been dispatched"
}
},
"cancelled": {
"schema": "freecad-web-facade/v1",
"version": 1,
"kind": "error",
"requestId": "material-translate-worker-cancel",
"error": {
"code": "cancelled",
"message": "request was cancelled"
}
},
"reset": {
"kind": "reset",
"requestId": "material-translate-worker-reset"
}
},
"traceSha256": "e8960b3c1db9cbbceb20acba60cf545791ea5e6e39222dee0f6674bf198ad7bc",
"sequencing": {
"duplicate": true,
"cancelAccepted": true,
"resetAccepted": true,
"maxActive": 1
}
},
"replay": {
"equal": true,
"resultSha256": "8a056dd33cabfb6a0c1f0ab58fbd8f37f33967a29cf2fd19035103e54bfcf3fd"
},
"resources": {
"resourcesReleased": true,
"documentMutation": false
},
"artifacts": {
"wasm": {
"path": "web/public/kernel/FreeCADWebMaterialKernelProbe.wasm",
"sha256": "a6219b9e4df6d494a4fe6d7d5f40634bf8224bdfaef1f06d8cb84ddcaa4c4f2b"
},
"loader": {
"path": "web/public/kernel/FreeCADWebMaterialKernelProbe.js",
"sha256": "410ed9fd657a14c55eec28799dc83c672a4227321f9095805fc724e195ed95eb"
}
},
"commands": [
"ninja -C freecad-source/build-web/configure FreeCADWebMaterialKernelProbe -j8",
"cp FreeCADWebMaterialKernelProbe.js/.wasm web/public/kernel/",
"node tools/run_p6_material_translate_method_gate.mjs freecad-source/build-web/configure/bin"
],
"boundaries": [
"MaterialEditor top-level Qt/FreeCADGui imports and editor UI remain headless boundaries; only the official pure translate definition is executed.",
"All result fields and statuses derive from compiled FreeCAD through fc_web_dispatch_json; no JavaScript API result is substituted."
],
"resultSha256": "afe2b6d6853d2b3bbaaf0e0e1e564f6bdbef5bfe20e437e992a3f6b9a932fcf2"
}