@runuai/host 0.9.133 → 0.9.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/main.ts +16 -1
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -2939,12 +2939,24 @@ function parseCloudFrame(data: RawData): CloudToHost | null {
|
|
|
2939
2939
|
) {
|
|
2940
2940
|
return { kind: frame.kind, userId: frame.userId };
|
|
2941
2941
|
}
|
|
2942
|
+
// `orgId` (ADR-133 tag scope): the project's org, when the cloud sends it.
|
|
2943
|
+
// This normaliser rebuilds every frame from a fixed field list, so a field
|
|
2944
|
+
// added to the type alone never reaches the handler — the org was dropped
|
|
2945
|
+
// here for a whole release (0.9.133, live 2026-09-10) while the cloud sent
|
|
2946
|
+
// it and the handler waited for it.
|
|
2942
2947
|
if (
|
|
2943
2948
|
frame.kind === "env.var.list" &&
|
|
2944
2949
|
typeof frame.opId === "string" &&
|
|
2945
2950
|
typeof frame.projectId === "string"
|
|
2946
2951
|
) {
|
|
2947
|
-
return {
|
|
2952
|
+
return {
|
|
2953
|
+
kind: "env.var.list",
|
|
2954
|
+
opId: frame.opId,
|
|
2955
|
+
projectId: frame.projectId,
|
|
2956
|
+
...(typeof frame.orgId === "string" && frame.orgId.length > 0
|
|
2957
|
+
? { orgId: frame.orgId }
|
|
2958
|
+
: {}),
|
|
2959
|
+
};
|
|
2948
2960
|
}
|
|
2949
2961
|
if (
|
|
2950
2962
|
frame.kind === "env.var.set" &&
|
|
@@ -2959,6 +2971,9 @@ function parseCloudFrame(data: RawData): CloudToHost | null {
|
|
|
2959
2971
|
projectId: frame.projectId,
|
|
2960
2972
|
key: frame.key,
|
|
2961
2973
|
value: frame.value,
|
|
2974
|
+
...(typeof frame.orgId === "string" && frame.orgId.length > 0
|
|
2975
|
+
? { orgId: frame.orgId }
|
|
2976
|
+
: {}),
|
|
2962
2977
|
};
|
|
2963
2978
|
}
|
|
2964
2979
|
if (
|