222 lines
6.0 KiB
JSON
222 lines
6.0 KiB
JSON
{
|
|
"schema": "freecad-web-p6-cam-action-02-facade/v1",
|
|
"task_id": "FW-P6-CAM-ACT-02-E",
|
|
"status": "pass",
|
|
"action": "cam.import/export",
|
|
"envelopeSchema": "freecad-web-facade/v1",
|
|
"typedSchema": "freecad-web-cam/import-export/v1",
|
|
"responses": {
|
|
"success": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "result",
|
|
"requestId": "cam-action-02-success",
|
|
"result": {
|
|
"schema": "freecad-web-cam/import-export/v1",
|
|
"module": "CAM",
|
|
"action": "import/export",
|
|
"format": ".json",
|
|
"document": {
|
|
"name": "CAMImportExportDocument",
|
|
"activeAfterClose": 0
|
|
},
|
|
"object": {
|
|
"name": "Toolpath",
|
|
"type": "Path::Feature"
|
|
},
|
|
"imported": {
|
|
"commandCount": 2,
|
|
"length": 10
|
|
},
|
|
"exported": {
|
|
"format": ".json",
|
|
"content": "{\"commands\":[{\"code\":\"G0\",\"x\":0,\"y\":0},{\"code\":\"G1\",\"x\":10,\"y\":0}],\"length\":10}",
|
|
"byteLength": 79
|
|
},
|
|
"stateSha256": "b8f2e04a77e12504f1c1a23eae0fdc048ed00e074c5a35de4ee44df2b6b0a5fd"
|
|
}
|
|
},
|
|
"expectedError": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "cam-action-02-error",
|
|
"error": {
|
|
"code": "invalid_document",
|
|
"message": "CAM JSON document is invalid",
|
|
"diagnostic": {
|
|
"field": "content"
|
|
}
|
|
}
|
|
},
|
|
"duplicate": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "cam-action-02-success",
|
|
"error": {
|
|
"code": "duplicate_request",
|
|
"message": "requestId has already been dispatched"
|
|
}
|
|
},
|
|
"cancelled": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "cam-action-02-cancel",
|
|
"error": {
|
|
"code": "cancelled",
|
|
"message": "request was cancelled before execution"
|
|
}
|
|
},
|
|
"afterCancel": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "result",
|
|
"requestId": "cam-action-02-after-cancel",
|
|
"result": {
|
|
"schema": "freecad-web-cam/import-export/v1",
|
|
"module": "CAM",
|
|
"action": "import/export",
|
|
"format": ".json",
|
|
"document": {
|
|
"name": "CAMImportExportDocument",
|
|
"activeAfterClose": 0
|
|
},
|
|
"object": {
|
|
"name": "Toolpath",
|
|
"type": "Path::Feature"
|
|
},
|
|
"imported": {
|
|
"commandCount": 2,
|
|
"length": 10
|
|
},
|
|
"exported": {
|
|
"format": ".json",
|
|
"content": "{\"commands\":[{\"code\":\"G0\",\"x\":0,\"y\":0},{\"code\":\"G1\",\"x\":10,\"y\":0}],\"length\":10}",
|
|
"byteLength": 79
|
|
},
|
|
"stateSha256": "b8f2e04a77e12504f1c1a23eae0fdc048ed00e074c5a35de4ee44df2b6b0a5fd"
|
|
}
|
|
}
|
|
},
|
|
"trace": [
|
|
{
|
|
"direction": "request",
|
|
"requestId": "cam-action-02-success",
|
|
"command": "cam.import"
|
|
},
|
|
{
|
|
"direction": "handler-start",
|
|
"requestId": "cam-action-02-success"
|
|
},
|
|
{
|
|
"direction": "handler-end",
|
|
"requestId": "cam-action-02-success"
|
|
},
|
|
{
|
|
"direction": "response",
|
|
"requestId": "cam-action-02-success",
|
|
"kind": "result",
|
|
"code": null
|
|
},
|
|
{
|
|
"direction": "request",
|
|
"requestId": "cam-action-02-error",
|
|
"command": "cam.import"
|
|
},
|
|
{
|
|
"direction": "handler-start",
|
|
"requestId": "cam-action-02-error"
|
|
},
|
|
{
|
|
"direction": "handler-end",
|
|
"requestId": "cam-action-02-error"
|
|
},
|
|
{
|
|
"direction": "response",
|
|
"requestId": "cam-action-02-error",
|
|
"kind": "error",
|
|
"code": "invalid_document"
|
|
},
|
|
{
|
|
"direction": "request",
|
|
"requestId": "cam-action-02-success",
|
|
"command": "cam.import"
|
|
},
|
|
{
|
|
"direction": "response",
|
|
"requestId": "cam-action-02-success",
|
|
"kind": "error",
|
|
"code": "duplicate_request"
|
|
},
|
|
{
|
|
"direction": "request",
|
|
"requestId": "cam-action-02-cancel",
|
|
"command": "cam.export"
|
|
},
|
|
{
|
|
"direction": "cancel",
|
|
"requestId": "cam-action-02-cancel-message",
|
|
"cancelOf": "cam-action-02-cancel"
|
|
},
|
|
{
|
|
"direction": "response",
|
|
"requestId": "cam-action-02-cancel",
|
|
"kind": "error",
|
|
"code": "cancelled"
|
|
},
|
|
{
|
|
"direction": "request",
|
|
"requestId": "cam-action-02-after-cancel",
|
|
"command": "cam.export"
|
|
},
|
|
{
|
|
"direction": "handler-start",
|
|
"requestId": "cam-action-02-after-cancel"
|
|
},
|
|
{
|
|
"direction": "handler-end",
|
|
"requestId": "cam-action-02-after-cancel"
|
|
},
|
|
{
|
|
"direction": "response",
|
|
"requestId": "cam-action-02-after-cancel",
|
|
"kind": "result",
|
|
"code": null
|
|
}
|
|
],
|
|
"sequencing": {
|
|
"maxActive": 1,
|
|
"activeAfter": 0,
|
|
"requestCount": 5,
|
|
"responseCount": 5,
|
|
"cancelAccepted": true
|
|
},
|
|
"state": {
|
|
"beforeCancel": "b8f2e04a77e12504f1c1a23eae0fdc048ed00e074c5a35de4ee44df2b6b0a5fd",
|
|
"afterCancel": "b8f2e04a77e12504f1c1a23eae0fdc048ed00e074c5a35de4ee44df2b6b0a5fd",
|
|
"unchangedAfterCancel": true
|
|
},
|
|
"schemaChecks": {
|
|
"request": true,
|
|
"result": true,
|
|
"expectedError": true,
|
|
"duplicate": true,
|
|
"cancel": true,
|
|
"noNativePointers": true
|
|
},
|
|
"inputSha256": "f6e3c4ae89393fae350d8a48d04a22e3c5ddf7f52d5018c518671a79887de47f",
|
|
"commands": [
|
|
"npx tsc --target ES2022 --module ESNext --moduleResolution Bundler --strict --skipLibCheck --outDir /tmp/freecad-p6-cam-action-02 --declaration false --noEmit false src/facade-envelope.ts src/cam-import-export-facade.ts",
|
|
"node tools/run_p6_cam_action02_facade_smoke.mjs /tmp/freecad-p6-cam-action-02/cam-import-export-facade.js"
|
|
],
|
|
"artifacts": {
|
|
"schema": "docs/p6/cam-action-02-facade.schema.json",
|
|
"workerLog": "docs/freecad-p6-cam-action-02-e-facade.log"
|
|
},
|
|
"boundaries": [
|
|
"The typed facade never exposes native pointers; only JSON import/export is included."
|
|
]
|
|
}
|