From 2ba3cb6675671b5c01cca4b2db47829357168065 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 6 Feb 2026 15:16:50 +0100 Subject: [PATCH 1/3] feat: added get function --- .../runtime_definition/object/object-audit.md | 15 +++ .../object/std_object_get.proto.json | 93 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 definitions/standard/runtime_definition/object/std_object_get.proto.json diff --git a/definitions/standard/runtime_definition/object/object-audit.md b/definitions/standard/runtime_definition/object/object-audit.md index fccdce0..0d5f13d 100644 --- a/definitions/standard/runtime_definition/object/object-audit.md +++ b/definitions/standard/runtime_definition/object/object-audit.md @@ -22,3 +22,18 @@ ## Removed - remove + +# 06.02.2026 + +## Added +- get + + +## Todo +curent get impl looks like: + get(object: Object, key: Text): T + +But this should be changed to: + get(object: Object, key: T keyof K): T ofkey Object + +When the tucana definitions are adjusted diff --git a/definitions/standard/runtime_definition/object/std_object_get.proto.json b/definitions/standard/runtime_definition/object/std_object_get.proto.json new file mode 100644 index 0000000..f299239 --- /dev/null +++ b/definitions/standard/runtime_definition/object/std_object_get.proto.json @@ -0,0 +1,93 @@ +{ + "runtimeName": "std::object::get", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "OBJECT", + "genericMappers": [ + { + "source": [ + { + "genericKey": "O" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "object", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Object" + } + ], + "description": [ + { + "code": "en-US", + "content": "The object that contains the value referenced by the key." + } + ], + "documentation": [] + }, + { + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" + }, + "runtimeName": "key", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Key" + } + ], + "description": [ + { + "code": "en-US", + "content": "The property name under which the value will be referenced." + } + ], + "documentation": [] + } + ], + "returnTypeIdentifier": { + "genericKey": "K" + }, + "throwsError": false, + "genericKeys": [ + "K", + "O" + ], + "name": [ + { + "code": "en-US", + "content": "Get Object's Value" + } + ], + "description": [ + { + "code": "en-US", + "content": "Returns the value of a property inside of the object." + } + ], + "documentation": [], + "alias": [ + { + "code": "en-US", + "content": "get;object;std" + } + ], + "displayMessage": [ + { + "code": "en-US", + "content": "Get ${key} from of ${object}" + } + ], + "deprecationMessage": [], + "displayIcon": "tabler:cube" +} From 897b2c1a5dae2dcea8cb75579a0608f3165f8af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20G=C3=B6tz?= <52959657+raphael-goetz@users.noreply.github.com> Date: Fri, 6 Feb 2026 15:20:48 +0100 Subject: [PATCH 2/3] Update definitions/standard/runtime_definition/object/object-audit.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com> --- definitions/standard/runtime_definition/object/object-audit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/standard/runtime_definition/object/object-audit.md b/definitions/standard/runtime_definition/object/object-audit.md index 0d5f13d..95fe6a6 100644 --- a/definitions/standard/runtime_definition/object/object-audit.md +++ b/definitions/standard/runtime_definition/object/object-audit.md @@ -30,7 +30,7 @@ ## Todo -curent get impl looks like: +current get impl looks like: get(object: Object, key: Text): T But this should be changed to: From 365f1c0febb67b2eb2c4f94687cec34ed31be9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20G=C3=B6tz?= <52959657+raphael-goetz@users.noreply.github.com> Date: Fri, 6 Feb 2026 15:21:12 +0100 Subject: [PATCH 3/3] Update definitions/standard/runtime_definition/object/std_object_get.proto.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com> --- .../runtime_definition/object/std_object_get.proto.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/definitions/standard/runtime_definition/object/std_object_get.proto.json b/definitions/standard/runtime_definition/object/std_object_get.proto.json index f299239..d9e4b17 100644 --- a/definitions/standard/runtime_definition/object/std_object_get.proto.json +++ b/definitions/standard/runtime_definition/object/std_object_get.proto.json @@ -85,7 +85,7 @@ "displayMessage": [ { "code": "en-US", - "content": "Get ${key} from of ${object}" + "content": "Get ${key} of ${object}" } ], "deprecationMessage": [],