openmeld 0.3.211 → 0.3.212
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/dist/{add-me-membership-CNgO595N.js → add-me-membership-BwPpVKtA.js} +2 -2
- package/dist/{add-me-membership-CNgO595N.js.map → add-me-membership-BwPpVKtA.js.map} +1 -1
- package/dist/agents-Y-UJ74By.js +4153 -0
- package/dist/agents-Y-UJ74By.js.map +1 -0
- package/dist/{api-client-foundation-CtQTtA4m.js → api-client-foundation-CrQN8_-N.js} +1 -1
- package/dist/{api-client-foundation-MJK8vWfn.js → api-client-foundation-DjbtuE52.js} +3 -3
- package/dist/{api-client-foundation-MJK8vWfn.js.map → api-client-foundation-DjbtuE52.js.map} +1 -1
- package/dist/{auth-session-CB7m-csh.js → auth-session-Dqz9X4F0.js} +42 -21
- package/dist/auth-session-Dqz9X4F0.js.map +1 -0
- package/dist/auth-session-bRzDGlXy.js +4 -0
- package/dist/{command-oQK6PG6b.js → command-jgHbP21v.js} +10 -9
- package/dist/{command-oQK6PG6b.js.map → command-jgHbP21v.js.map} +1 -1
- package/dist/{computer-connection-51dg6Tq0.js → computer-connection-DvqsgYls.js} +30 -3
- package/dist/computer-connection-DvqsgYls.js.map +1 -0
- package/dist/{computer-connection-review-CiIyTeDw.js → computer-connection-review-CzSpaHE0.js} +6 -6
- package/dist/{computer-connection-review-CiIyTeDw.js.map → computer-connection-review-CzSpaHE0.js.map} +1 -1
- package/dist/computer-disconnect-DNM7jvda.js +47 -0
- package/dist/computer-disconnect-DNM7jvda.js.map +1 -0
- package/dist/{computer-setup-continuation-CeFPluYv.js → computer-setup-continuation-BqdhIAjT.js} +4 -4
- package/dist/{computer-setup-continuation-CeFPluYv.js.map → computer-setup-continuation-BqdhIAjT.js.map} +1 -1
- package/dist/{control-plane-D9jDcbMZ.js → control-plane-PxntAyDq.js} +3 -547
- package/dist/control-plane-PxntAyDq.js.map +1 -0
- package/dist/{daemon-service-runtime-D8KrOfSV.js → daemon-service-runtime-CWTlAhZY.js} +291 -45
- package/dist/daemon-service-runtime-CWTlAhZY.js.map +1 -0
- package/dist/{openmeld-tools-update-coordinator-qrZLtDMv.js → daemon-service-update-coordinator-DcjOzGu1.js} +22972 -22867
- package/dist/daemon-service-update-coordinator-DcjOzGu1.js.map +1 -0
- package/dist/{dist-DajKOXDk.js → dist--pb6JxqG.js} +1 -1
- package/dist/{dist-DtykdMlN.js → dist-jsWwS864.js} +2984 -2981
- package/dist/dist-jsWwS864.js.map +1 -0
- package/dist/{elapsed-time-BE9NPM-x.js → elapsed-time-iFOSSUJo.js} +45 -78
- package/dist/elapsed-time-iFOSSUJo.js.map +1 -0
- package/dist/{installation-inventory-CLBwkIf6.js → installation-inventory-B0cbVLun.js} +3 -3
- package/dist/{installation-inventory-CLBwkIf6.js.map → installation-inventory-B0cbVLun.js.map} +1 -1
- package/dist/local-components-H3SkJMC1.js +567 -0
- package/dist/local-components-H3SkJMC1.js.map +1 -0
- package/dist/{openmeld-LADiOJ3_.js → openmeld-B4gQCCex.js} +43 -153
- package/dist/openmeld-B4gQCCex.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-B-u1CItK.js → openmeld-maintenance-worker-DtY_H7Bv.js} +5 -5
- package/dist/{openmeld-maintenance-worker-B-u1CItK.js.map → openmeld-maintenance-worker-DtY_H7Bv.js.map} +1 -1
- package/dist/openmeld-tools-update-join-DS_EIL5q.js +54 -0
- package/dist/openmeld-tools-update-join-DS_EIL5q.js.map +1 -0
- package/dist/openmeld-tools-update-process-frame-CbZPpc7D.js +93 -0
- package/dist/openmeld-tools-update-process-frame-CbZPpc7D.js.map +1 -0
- package/dist/openmeld-tools-update-process-frame-CcPLrSsw.js +4 -0
- package/dist/openmeld.js +7 -3
- package/dist/openmeld.js.map +1 -1
- package/dist/{prepare-session-executor-B5aD6Fx_.js → prepare-session-executor-CWKqfuse.js} +11 -9
- package/dist/{prepare-session-executor-B5aD6Fx_.js.map → prepare-session-executor-CWKqfuse.js.map} +1 -1
- package/dist/{runtime-transport-VcPSvVY1.js → runtime-transport-BQAmcHwF.js} +15 -2
- package/dist/runtime-transport-BQAmcHwF.js.map +1 -0
- package/dist/{agents-CGBELT4J.js → service-CTG3_X0o.js} +476 -4582
- package/dist/service-CTG3_X0o.js.map +1 -0
- package/dist/{service-account-authorization-D1Wp-91j.js → service-account-authorization-Dq4LcAVa.js} +3 -3
- package/dist/{service-account-authorization-D1Wp-91j.js.map → service-account-authorization-Dq4LcAVa.js.map} +1 -1
- package/dist/service-account-control-BTR_X7QM.js +145 -0
- package/dist/service-account-control-BTR_X7QM.js.map +1 -0
- package/dist/{service-control-capabilities-COkZ1Ceh.js → service-control-capabilities-C5SxnBg2.js} +2 -2
- package/dist/{service-control-capabilities-COkZ1Ceh.js.map → service-control-capabilities-C5SxnBg2.js.map} +1 -1
- package/dist/{service-control-capabilities-CP1XCSVm.js → service-control-capabilities-ChRe8hkw.js} +1 -1
- package/dist/{upgrade-DJLqTfBA.js → upgrade-DAVEeo8B.js} +36 -17
- package/dist/upgrade-DAVEeo8B.js.map +1 -0
- package/dist/upgrade-DKXu-1wO.js +4 -0
- package/package.json +1 -1
- package/dist/agents-CGBELT4J.js.map +0 -1
- package/dist/auth-session-CB7m-csh.js.map +0 -1
- package/dist/auth-session-DXJq5arz.js +0 -4
- package/dist/computer-connection-51dg6Tq0.js.map +0 -1
- package/dist/control-plane-D9jDcbMZ.js.map +0 -1
- package/dist/daemon-service-runtime-D8KrOfSV.js.map +0 -1
- package/dist/dist-DtykdMlN.js.map +0 -1
- package/dist/elapsed-time-BE9NPM-x.js.map +0 -1
- package/dist/openmeld-LADiOJ3_.js.map +0 -1
- package/dist/openmeld-tools-update-coordinator-qrZLtDMv.js.map +0 -1
- package/dist/runtime-transport-VcPSvVY1.js.map +0 -1
- package/dist/upgrade-BMh_CLJL.js +0 -4
- package/dist/upgrade-DJLqTfBA.js.map +0 -1
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import * as zod from "zod/v4";
|
|
4
|
+
//#region ../../packages/schemas/dist/lazy-zod.js
|
|
5
|
+
const NEVER = zod.NEVER;
|
|
6
|
+
const ZodIssueCode = zod.ZodIssueCode;
|
|
7
|
+
const DEFERRED_SCHEMA_METHODS = /* @__PURE__ */ new Set([
|
|
8
|
+
"and",
|
|
9
|
+
"array",
|
|
10
|
+
"base64",
|
|
11
|
+
"base64url",
|
|
12
|
+
"catch",
|
|
13
|
+
"catchall",
|
|
14
|
+
"check",
|
|
15
|
+
"cidrv4",
|
|
16
|
+
"cidrv6",
|
|
17
|
+
"clone",
|
|
18
|
+
"cuid",
|
|
19
|
+
"cuid2",
|
|
20
|
+
"date",
|
|
21
|
+
"datetime",
|
|
22
|
+
"default",
|
|
23
|
+
"duration",
|
|
24
|
+
"e164",
|
|
25
|
+
"email",
|
|
26
|
+
"emoji",
|
|
27
|
+
"endsWith",
|
|
28
|
+
"exactOptional",
|
|
29
|
+
"exclude",
|
|
30
|
+
"extend",
|
|
31
|
+
"extract",
|
|
32
|
+
"gt",
|
|
33
|
+
"gte",
|
|
34
|
+
"guid",
|
|
35
|
+
"includes",
|
|
36
|
+
"input",
|
|
37
|
+
"int",
|
|
38
|
+
"ipv4",
|
|
39
|
+
"ipv6",
|
|
40
|
+
"jwt",
|
|
41
|
+
"keyof",
|
|
42
|
+
"ksuid",
|
|
43
|
+
"length",
|
|
44
|
+
"loose",
|
|
45
|
+
"lowercase",
|
|
46
|
+
"lt",
|
|
47
|
+
"lte",
|
|
48
|
+
"max",
|
|
49
|
+
"merge",
|
|
50
|
+
"mime",
|
|
51
|
+
"min",
|
|
52
|
+
"multipleOf",
|
|
53
|
+
"nanoid",
|
|
54
|
+
"negative",
|
|
55
|
+
"nonempty",
|
|
56
|
+
"nonnegative",
|
|
57
|
+
"nonoptional",
|
|
58
|
+
"nonpositive",
|
|
59
|
+
"normalize",
|
|
60
|
+
"nullable",
|
|
61
|
+
"nullish",
|
|
62
|
+
"omit",
|
|
63
|
+
"optional",
|
|
64
|
+
"or",
|
|
65
|
+
"output",
|
|
66
|
+
"overwrite",
|
|
67
|
+
"partial",
|
|
68
|
+
"passthrough",
|
|
69
|
+
"pick",
|
|
70
|
+
"pipe",
|
|
71
|
+
"positive",
|
|
72
|
+
"prefault",
|
|
73
|
+
"readonly",
|
|
74
|
+
"refine",
|
|
75
|
+
"regex",
|
|
76
|
+
"removeCatch",
|
|
77
|
+
"removeDefault",
|
|
78
|
+
"required",
|
|
79
|
+
"rest",
|
|
80
|
+
"safe",
|
|
81
|
+
"safeExtend",
|
|
82
|
+
"size",
|
|
83
|
+
"slugify",
|
|
84
|
+
"startsWith",
|
|
85
|
+
"step",
|
|
86
|
+
"strict",
|
|
87
|
+
"strip",
|
|
88
|
+
"superRefine",
|
|
89
|
+
"time",
|
|
90
|
+
"toLowerCase",
|
|
91
|
+
"toUpperCase",
|
|
92
|
+
"transform",
|
|
93
|
+
"trim",
|
|
94
|
+
"ulid",
|
|
95
|
+
"unwrap",
|
|
96
|
+
"uppercase",
|
|
97
|
+
"url",
|
|
98
|
+
"uuid",
|
|
99
|
+
"uuidv4",
|
|
100
|
+
"uuidv6",
|
|
101
|
+
"uuidv7",
|
|
102
|
+
"with",
|
|
103
|
+
"xid"
|
|
104
|
+
]);
|
|
105
|
+
const SELF_RETURNING_METHODS = /* @__PURE__ */ new Set(["brand", "finite"]);
|
|
106
|
+
const UNHANDLED_PROPERTY = Symbol("unhandled lazy Zod property");
|
|
107
|
+
const globalRegistry = zod.globalRegistry;
|
|
108
|
+
function lazySchema(createSchema) {
|
|
109
|
+
let schema;
|
|
110
|
+
let proxy;
|
|
111
|
+
const target = Object.create(null);
|
|
112
|
+
let targetIsMaterialized = false;
|
|
113
|
+
const resolveSchema = () => {
|
|
114
|
+
schema ??= createSchema();
|
|
115
|
+
return schema;
|
|
116
|
+
};
|
|
117
|
+
const readResolvedProperty = (property) => {
|
|
118
|
+
const resolved = resolveSchema();
|
|
119
|
+
const value = Reflect.get(resolved, property, resolved);
|
|
120
|
+
return typeof value === "function" ? value.bind(resolved) : value;
|
|
121
|
+
};
|
|
122
|
+
const deferSchemaMethod = (property, args) => lazySchema(() => {
|
|
123
|
+
const resolved = resolveSchema();
|
|
124
|
+
const method = Reflect.get(resolved, property, resolved);
|
|
125
|
+
if (typeof method !== "function") throw new TypeError(`Lazy Zod property ${String(property)} is not callable`);
|
|
126
|
+
const result = Reflect.apply(method, resolved, args);
|
|
127
|
+
if (!(result instanceof zod.ZodType)) throw new TypeError(`Lazy Zod method ${String(property)} did not return a schema`);
|
|
128
|
+
return result;
|
|
129
|
+
});
|
|
130
|
+
const materializeTarget = () => {
|
|
131
|
+
const resolved = resolveSchema();
|
|
132
|
+
if (targetIsMaterialized) return resolved;
|
|
133
|
+
Reflect.setPrototypeOf(target, Reflect.getPrototypeOf(resolved));
|
|
134
|
+
for (const property of Reflect.ownKeys(resolved)) {
|
|
135
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(resolved, property);
|
|
136
|
+
if (descriptor) Reflect.defineProperty(target, property, descriptor);
|
|
137
|
+
}
|
|
138
|
+
targetIsMaterialized = true;
|
|
139
|
+
return resolved;
|
|
140
|
+
};
|
|
141
|
+
const readSpecialProperty = (property) => {
|
|
142
|
+
switch (property) {
|
|
143
|
+
case "description": {
|
|
144
|
+
const metadata = globalRegistry.get(proxy);
|
|
145
|
+
return metadata && typeof metadata === "object" ? Reflect.get(metadata, "description") : void 0;
|
|
146
|
+
}
|
|
147
|
+
case "apply": return (operation) => operation(proxy);
|
|
148
|
+
case "register": return (registry, ...metadata) => {
|
|
149
|
+
registry.add(proxy, ...metadata);
|
|
150
|
+
return proxy;
|
|
151
|
+
};
|
|
152
|
+
case "meta": return (...metadata) => {
|
|
153
|
+
if (metadata.length === 0) return globalRegistry.get(proxy);
|
|
154
|
+
const registered = deferSchemaMethod(property, withoutRegistryIdentity(metadata));
|
|
155
|
+
globalRegistry.add(registered, ...metadata);
|
|
156
|
+
return registered;
|
|
157
|
+
};
|
|
158
|
+
case "describe": return (description) => {
|
|
159
|
+
const described = deferSchemaMethod(property, [description]);
|
|
160
|
+
globalRegistry.add(described, { description });
|
|
161
|
+
return described;
|
|
162
|
+
};
|
|
163
|
+
case "toJSONSchema": return (...args) => Reflect.apply(zod.toJSONSchema, zod, [proxy, ...args]);
|
|
164
|
+
default: return UNHANDLED_PROPERTY;
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
proxy = new Proxy(target, {
|
|
168
|
+
deleteProperty(_target, property) {
|
|
169
|
+
const deletedFromTarget = Reflect.deleteProperty(target, property);
|
|
170
|
+
const deletedFromSchema = Reflect.deleteProperty(resolveSchema(), property);
|
|
171
|
+
return deletedFromTarget && deletedFromSchema;
|
|
172
|
+
},
|
|
173
|
+
get(_target, property, receiver) {
|
|
174
|
+
const specialProperty = readSpecialProperty(property);
|
|
175
|
+
if (specialProperty !== UNHANDLED_PROPERTY) return specialProperty;
|
|
176
|
+
if (SELF_RETURNING_METHODS.has(property)) return () => proxy;
|
|
177
|
+
if (DEFERRED_SCHEMA_METHODS.has(property)) return (...args) => deferSchemaMethod(property, args);
|
|
178
|
+
return Reflect.getOwnPropertyDescriptor(target, property) ? Reflect.get(target, property, receiver) : readResolvedProperty(property);
|
|
179
|
+
},
|
|
180
|
+
getOwnPropertyDescriptor(_target, property) {
|
|
181
|
+
const targetDescriptor = Reflect.getOwnPropertyDescriptor(target, property);
|
|
182
|
+
if (targetDescriptor || targetIsMaterialized) return targetDescriptor;
|
|
183
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(resolveSchema(), property);
|
|
184
|
+
return descriptor ? {
|
|
185
|
+
...descriptor,
|
|
186
|
+
configurable: true
|
|
187
|
+
} : void 0;
|
|
188
|
+
},
|
|
189
|
+
getPrototypeOf() {
|
|
190
|
+
return targetIsMaterialized ? Reflect.getPrototypeOf(target) : Reflect.getPrototypeOf(resolveSchema());
|
|
191
|
+
},
|
|
192
|
+
has(_target, property) {
|
|
193
|
+
return Reflect.has(target, property) || Reflect.has(resolveSchema(), property);
|
|
194
|
+
},
|
|
195
|
+
ownKeys() {
|
|
196
|
+
if (targetIsMaterialized) return Reflect.ownKeys(target);
|
|
197
|
+
return [.../* @__PURE__ */ new Set([...Reflect.ownKeys(target), ...Reflect.ownKeys(resolveSchema())])];
|
|
198
|
+
},
|
|
199
|
+
preventExtensions() {
|
|
200
|
+
const resolved = materializeTarget();
|
|
201
|
+
return Reflect.preventExtensions(resolved) && Reflect.preventExtensions(target);
|
|
202
|
+
},
|
|
203
|
+
set(_target, property, value) {
|
|
204
|
+
const resolved = resolveSchema();
|
|
205
|
+
if (!targetIsMaterialized) return Reflect.set(resolved, property, value);
|
|
206
|
+
return Reflect.set(resolved, property, value) && Reflect.set(target, property, value);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
return proxy;
|
|
210
|
+
}
|
|
211
|
+
function withoutRegistryIdentity(metadata) {
|
|
212
|
+
const [firstMetadata] = metadata;
|
|
213
|
+
if (!(firstMetadata && typeof firstMetadata === "object" && "id" in firstMetadata)) return metadata;
|
|
214
|
+
return [Object.fromEntries(Object.entries(firstMetadata).filter(([key]) => key !== "id")), ...metadata.slice(1)];
|
|
215
|
+
}
|
|
216
|
+
function snapshotFactoryArgument(value) {
|
|
217
|
+
return Array.isArray(value) ? [...value] : value;
|
|
218
|
+
}
|
|
219
|
+
function lazyFactory(factory) {
|
|
220
|
+
const invoke = factory;
|
|
221
|
+
return ((...args) => {
|
|
222
|
+
const declaredArgs = args.map(snapshotFactoryArgument);
|
|
223
|
+
return lazySchema(() => invoke(...declaredArgs));
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
const array = lazyFactory(zod.array);
|
|
227
|
+
const boolean = lazyFactory(zod.boolean);
|
|
228
|
+
const discriminatedUnion = lazyFactory(zod.discriminatedUnion);
|
|
229
|
+
const email = lazyFactory(zod.email);
|
|
230
|
+
const enumFactory = lazyFactory(zod.enum);
|
|
231
|
+
const int = lazyFactory(zod.int);
|
|
232
|
+
const literal = lazyFactory(zod.literal);
|
|
233
|
+
const neverFactory = lazyFactory(zod.never);
|
|
234
|
+
const nullFactory = lazyFactory(zod.null);
|
|
235
|
+
const number = lazyFactory(zod.number);
|
|
236
|
+
const object = lazyFactory(zod.object);
|
|
237
|
+
const preprocess = lazyFactory(zod.preprocess);
|
|
238
|
+
const record = lazyFactory(zod.record);
|
|
239
|
+
const strictObject = lazyFactory(zod.strictObject);
|
|
240
|
+
const string = lazyFactory(zod.string);
|
|
241
|
+
const tuple = lazyFactory(zod.tuple);
|
|
242
|
+
const union = lazyFactory(zod.union);
|
|
243
|
+
const undefinedFactory = lazyFactory(zod.undefined);
|
|
244
|
+
const unknown = lazyFactory(zod.unknown);
|
|
245
|
+
const url = lazyFactory(zod.url);
|
|
246
|
+
const coerce = {
|
|
247
|
+
...zod.coerce,
|
|
248
|
+
bigint: lazyFactory(zod.coerce.bigint),
|
|
249
|
+
boolean: lazyFactory(zod.coerce.boolean),
|
|
250
|
+
date: lazyFactory(zod.coerce.date),
|
|
251
|
+
number: lazyFactory(zod.coerce.number),
|
|
252
|
+
string: lazyFactory(zod.coerce.string)
|
|
253
|
+
};
|
|
254
|
+
const iso = {
|
|
255
|
+
...zod.iso,
|
|
256
|
+
date: lazyFactory(zod.iso.date),
|
|
257
|
+
datetime: lazyFactory(zod.iso.datetime),
|
|
258
|
+
duration: lazyFactory(zod.iso.duration),
|
|
259
|
+
time: lazyFactory(zod.iso.time)
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region ../../packages/schemas/dist/schemas/local-components.js
|
|
263
|
+
const nonEmptyStringSchema = string().trim().min(1);
|
|
264
|
+
const nullableNonEmptyStringSchema = nonEmptyStringSchema.nullable();
|
|
265
|
+
const localComponentStatusSchema = enumFactory([
|
|
266
|
+
"ok",
|
|
267
|
+
"update_available",
|
|
268
|
+
"update_required"
|
|
269
|
+
]);
|
|
270
|
+
const localComponentUpdatePolicySchema = enumFactory([
|
|
271
|
+
"ok",
|
|
272
|
+
"available",
|
|
273
|
+
"required"
|
|
274
|
+
]);
|
|
275
|
+
const localComponentUpdateStatusSchema = enumFactory([
|
|
276
|
+
"current",
|
|
277
|
+
"update_available",
|
|
278
|
+
"update_required",
|
|
279
|
+
"unknown"
|
|
280
|
+
]);
|
|
281
|
+
const openMeldToolsUpdateOperationPhaseSchema = enumFactory([
|
|
282
|
+
"waiting_for_work",
|
|
283
|
+
"updating",
|
|
284
|
+
"updated",
|
|
285
|
+
"restored",
|
|
286
|
+
"needs_help"
|
|
287
|
+
]);
|
|
288
|
+
const openMeldToolsUpdateRequestSourceSchema = enumFactory([
|
|
289
|
+
"automatic",
|
|
290
|
+
"center_agent",
|
|
291
|
+
"cli",
|
|
292
|
+
"web"
|
|
293
|
+
]);
|
|
294
|
+
const OPEN_MELD_TOOLS_UPDATE_FAILURE_DETAIL_MAX_CHARS = 2048;
|
|
295
|
+
const openMeldToolsUpdateFailureCodeSchema = enumFactory([
|
|
296
|
+
"cli.update.download_stalled",
|
|
297
|
+
"cli.update.download_timed_out",
|
|
298
|
+
"cli.update.download_failed",
|
|
299
|
+
"cli.update.integrity_check_failed",
|
|
300
|
+
"cli.update.install_failed",
|
|
301
|
+
"cli.update.service_alignment_failed",
|
|
302
|
+
"cli.update.failed"
|
|
303
|
+
]);
|
|
304
|
+
const openMeldToolsUpdateProcessFailureFrameSchema = strictObject({
|
|
305
|
+
detail: nonEmptyStringSchema.max(OPEN_MELD_TOOLS_UPDATE_FAILURE_DETAIL_MAX_CHARS),
|
|
306
|
+
failureCode: openMeldToolsUpdateFailureCodeSchema,
|
|
307
|
+
schema: literal("openmeld-tools-update-process-failure-v1"),
|
|
308
|
+
v: literal(1)
|
|
309
|
+
});
|
|
310
|
+
const openMeldToolsUpdateOperationSchema = strictObject({
|
|
311
|
+
operationId: nonEmptyStringSchema,
|
|
312
|
+
phase: openMeldToolsUpdateOperationPhaseSchema,
|
|
313
|
+
requestSource: openMeldToolsUpdateRequestSourceSchema,
|
|
314
|
+
requestedAt: iso.datetime({ offset: true }),
|
|
315
|
+
targetVersion: nonEmptyStringSchema,
|
|
316
|
+
updatedAt: iso.datetime({ offset: true }),
|
|
317
|
+
urgency: enumFactory(["available", "required"])
|
|
318
|
+
});
|
|
319
|
+
const openMeldToolsMaintenanceProjectionSchema = strictObject({
|
|
320
|
+
automaticUpdatesEnabled: boolean(),
|
|
321
|
+
status: enumFactory(["ready", "needs_help"])
|
|
322
|
+
});
|
|
323
|
+
const openMeldToolsControlCapabilitySchema = strictObject({
|
|
324
|
+
requestAutomaticUpdate: literal(true).optional(),
|
|
325
|
+
requestUpdate: literal(true).optional(),
|
|
326
|
+
setAutomaticUpdates: literal(true).optional()
|
|
327
|
+
});
|
|
328
|
+
const openMeldToolsUpdateRequestResultSchema = discriminatedUnion("status", [
|
|
329
|
+
strictObject({ status: literal("disabled") }),
|
|
330
|
+
strictObject({ status: literal("unavailable") }),
|
|
331
|
+
strictObject({
|
|
332
|
+
currentVersion: nonEmptyStringSchema,
|
|
333
|
+
status: literal("current")
|
|
334
|
+
}),
|
|
335
|
+
strictObject({
|
|
336
|
+
operation: openMeldToolsUpdateOperationSchema,
|
|
337
|
+
status: enumFactory(["started", "already_running"])
|
|
338
|
+
})
|
|
339
|
+
]);
|
|
340
|
+
const openMeldToolsMaintenanceMutationResultSchema = strictObject({
|
|
341
|
+
automaticUpdatesEnabled: boolean(),
|
|
342
|
+
status: enumFactory(["updated", "unchanged"])
|
|
343
|
+
});
|
|
344
|
+
const openMeldToolsControlRequestSchema = discriminatedUnion("operation", [strictObject({
|
|
345
|
+
operation: literal("request_update"),
|
|
346
|
+
requestSource: enumFactory([
|
|
347
|
+
"automatic",
|
|
348
|
+
"center_agent",
|
|
349
|
+
"web"
|
|
350
|
+
])
|
|
351
|
+
}), strictObject({
|
|
352
|
+
automaticUpdatesEnabled: boolean(),
|
|
353
|
+
operation: literal("set_automatic_updates"),
|
|
354
|
+
requestSource: enumFactory(["center_agent", "web"])
|
|
355
|
+
})]);
|
|
356
|
+
const openMeldToolsControlResultSchema = discriminatedUnion("operation", [strictObject({
|
|
357
|
+
operation: literal("request_update"),
|
|
358
|
+
result: openMeldToolsUpdateRequestResultSchema
|
|
359
|
+
}), strictObject({
|
|
360
|
+
operation: literal("set_automatic_updates"),
|
|
361
|
+
result: openMeldToolsMaintenanceMutationResultSchema
|
|
362
|
+
})]);
|
|
363
|
+
const openMeldToolsUpdateAttemptSchema = strictObject({
|
|
364
|
+
v: literal(1),
|
|
365
|
+
attempts: number().int().nonnegative(),
|
|
366
|
+
errorMessage: nullableNonEmptyStringSchema,
|
|
367
|
+
operation: openMeldToolsUpdateOperationSchema
|
|
368
|
+
});
|
|
369
|
+
const localSetupActionSchema = enumFactory([
|
|
370
|
+
"none",
|
|
371
|
+
"connect_service",
|
|
372
|
+
"reconnect_service",
|
|
373
|
+
"update_service",
|
|
374
|
+
"connect_local_agent",
|
|
375
|
+
"update_skills",
|
|
376
|
+
"update_cli"
|
|
377
|
+
]);
|
|
378
|
+
const localSetupEntrypointSchema = literal("setup");
|
|
379
|
+
const localComponentsManifestSchema = strictObject({
|
|
380
|
+
schemaVersion: literal(1),
|
|
381
|
+
openMeldReleaseVersion: nonEmptyStringSchema,
|
|
382
|
+
cli: strictObject({
|
|
383
|
+
packageVersion: nonEmptyStringSchema,
|
|
384
|
+
commandContractVersion: nonEmptyStringSchema
|
|
385
|
+
}),
|
|
386
|
+
service: strictObject({
|
|
387
|
+
bundleHash: nullableNonEmptyStringSchema,
|
|
388
|
+
bundleVersion: nonEmptyStringSchema,
|
|
389
|
+
runtimeContractEpoch: nonEmptyStringSchema,
|
|
390
|
+
serviceContractVersion: nonEmptyStringSchema
|
|
391
|
+
}),
|
|
392
|
+
skills: strictObject({
|
|
393
|
+
bundleHash: nullableNonEmptyStringSchema,
|
|
394
|
+
skillContractVersion: nonEmptyStringSchema,
|
|
395
|
+
skillIds: array(nonEmptyStringSchema)
|
|
396
|
+
})
|
|
397
|
+
});
|
|
398
|
+
strictObject({
|
|
399
|
+
schemaVersion: literal(1),
|
|
400
|
+
updatedAt: iso.datetime({ offset: true }),
|
|
401
|
+
components: strictObject({
|
|
402
|
+
cli: strictObject({
|
|
403
|
+
packageVersion: nonEmptyStringSchema,
|
|
404
|
+
commandContractVersion: nonEmptyStringSchema,
|
|
405
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
406
|
+
reason: nonEmptyStringSchema
|
|
407
|
+
}),
|
|
408
|
+
service: strictObject({
|
|
409
|
+
bundleHash: nullableNonEmptyStringSchema,
|
|
410
|
+
bundleVersion: nonEmptyStringSchema,
|
|
411
|
+
runtimeContractEpoch: nonEmptyStringSchema,
|
|
412
|
+
serviceContractVersion: nonEmptyStringSchema,
|
|
413
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
414
|
+
reason: nonEmptyStringSchema
|
|
415
|
+
}),
|
|
416
|
+
skills: strictObject({
|
|
417
|
+
bundleHash: nullableNonEmptyStringSchema,
|
|
418
|
+
skillContractVersion: nonEmptyStringSchema,
|
|
419
|
+
skillIds: array(nonEmptyStringSchema),
|
|
420
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
421
|
+
reason: nonEmptyStringSchema
|
|
422
|
+
})
|
|
423
|
+
})
|
|
424
|
+
});
|
|
425
|
+
const installedLocalComponentsSnapshotSchema = strictObject({
|
|
426
|
+
schemaVersion: literal(1),
|
|
427
|
+
installedAt: iso.datetime({ offset: true }),
|
|
428
|
+
source: enumFactory([
|
|
429
|
+
"setup",
|
|
430
|
+
"repair",
|
|
431
|
+
"manual"
|
|
432
|
+
]),
|
|
433
|
+
manifest: localComponentsManifestSchema
|
|
434
|
+
});
|
|
435
|
+
const localComponentProjectionSchema = strictObject({
|
|
436
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
437
|
+
status: localComponentStatusSchema
|
|
438
|
+
});
|
|
439
|
+
const localCliComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
440
|
+
commandContractVersion: nonEmptyStringSchema,
|
|
441
|
+
latestPackageVersion: nullableNonEmptyStringSchema,
|
|
442
|
+
packageVersion: nonEmptyStringSchema,
|
|
443
|
+
requiredCommandContractVersion: nullableNonEmptyStringSchema
|
|
444
|
+
});
|
|
445
|
+
const localServiceComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
446
|
+
expectedBundleHash: nullableNonEmptyStringSchema,
|
|
447
|
+
expectedBundleVersion: nonEmptyStringSchema,
|
|
448
|
+
installedBundleHash: nullableNonEmptyStringSchema,
|
|
449
|
+
installedBundleVersion: nullableNonEmptyStringSchema,
|
|
450
|
+
runtimeContractEpoch: nonEmptyStringSchema,
|
|
451
|
+
serviceContractVersion: nonEmptyStringSchema
|
|
452
|
+
});
|
|
453
|
+
const localSkillsComponentProjectionSchema = localComponentProjectionSchema.extend({
|
|
454
|
+
contentRelease: strictObject({
|
|
455
|
+
revision: number().int().positive(),
|
|
456
|
+
minimumCliVersion: string().regex(/^\d+\.\d+\.\d+$/)
|
|
457
|
+
}).optional(),
|
|
458
|
+
expectedBundleHash: nullableNonEmptyStringSchema,
|
|
459
|
+
installedBundleHash: nullableNonEmptyStringSchema,
|
|
460
|
+
skillContractVersion: nonEmptyStringSchema,
|
|
461
|
+
targetCount: number().int().nonnegative()
|
|
462
|
+
});
|
|
463
|
+
const localComponentsStatusSchema = strictObject({
|
|
464
|
+
schemaVersion: literal(1),
|
|
465
|
+
generatedAt: iso.datetime({ offset: true }),
|
|
466
|
+
entrypoint: localSetupEntrypointSchema,
|
|
467
|
+
summaryLabel: nonEmptyStringSchema,
|
|
468
|
+
summaryDescription: nonEmptyStringSchema,
|
|
469
|
+
setupAction: localSetupActionSchema,
|
|
470
|
+
setupActionLabel: nonEmptyStringSchema,
|
|
471
|
+
setupActionDescription: nonEmptyStringSchema,
|
|
472
|
+
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
473
|
+
updateOperation: openMeldToolsUpdateOperationSchema.optional(),
|
|
474
|
+
cli: localCliComponentProjectionSchema,
|
|
475
|
+
service: localServiceComponentProjectionSchema,
|
|
476
|
+
skills: localSkillsComponentProjectionSchema
|
|
477
|
+
});
|
|
478
|
+
const localServiceComponentUpdateProjectionSchema = strictObject({
|
|
479
|
+
installedVersion: nullableNonEmptyStringSchema,
|
|
480
|
+
latestVersion: nullableNonEmptyStringSchema,
|
|
481
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
482
|
+
requiredVersion: nullableNonEmptyStringSchema,
|
|
483
|
+
status: localComponentUpdateStatusSchema,
|
|
484
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
485
|
+
wakeBlocked: boolean()
|
|
486
|
+
});
|
|
487
|
+
const localCliComponentUpdateProjectionSchema = strictObject({
|
|
488
|
+
commandContractVersion: nullableNonEmptyStringSchema,
|
|
489
|
+
installedPackageVersion: nullableNonEmptyStringSchema,
|
|
490
|
+
latestPackageVersion: nullableNonEmptyStringSchema,
|
|
491
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
492
|
+
requiredCommandContractVersion: nullableNonEmptyStringSchema,
|
|
493
|
+
status: localComponentUpdateStatusSchema,
|
|
494
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
495
|
+
wakeBlocked: boolean()
|
|
496
|
+
});
|
|
497
|
+
const localSkillsComponentUpdateProjectionSchema = strictObject({
|
|
498
|
+
expectedBundleHash: nullableNonEmptyStringSchema,
|
|
499
|
+
expectedTargetCount: number().int().nonnegative(),
|
|
500
|
+
installedBundleHash: nullableNonEmptyStringSchema,
|
|
501
|
+
reasonCodes: array(nonEmptyStringSchema),
|
|
502
|
+
skillContractVersion: nullableNonEmptyStringSchema,
|
|
503
|
+
status: localComponentUpdateStatusSchema,
|
|
504
|
+
targetCount: number().int().nonnegative().nullable(),
|
|
505
|
+
updatePolicy: localComponentUpdatePolicySchema,
|
|
506
|
+
wakeBlocked: boolean()
|
|
507
|
+
});
|
|
508
|
+
const localComponentUpdateProjectionSchema = strictObject({
|
|
509
|
+
schemaVersion: literal(1),
|
|
510
|
+
generatedAt: iso.datetime({ offset: true }),
|
|
511
|
+
setupAction: localSetupActionSchema,
|
|
512
|
+
setupActionLabel: nonEmptyStringSchema,
|
|
513
|
+
setupActionDescription: nonEmptyStringSchema,
|
|
514
|
+
humanSetupCommand: nonEmptyStringSchema,
|
|
515
|
+
agentSetupCommand: nonEmptyStringSchema,
|
|
516
|
+
maintenance: openMeldToolsMaintenanceProjectionSchema.optional(),
|
|
517
|
+
updateOperation: openMeldToolsUpdateOperationSchema.optional(),
|
|
518
|
+
cli: localCliComponentUpdateProjectionSchema,
|
|
519
|
+
service: localServiceComponentUpdateProjectionSchema,
|
|
520
|
+
skills: localSkillsComponentUpdateProjectionSchema
|
|
521
|
+
});
|
|
522
|
+
function formatLocalSetupActionLabel(action) {
|
|
523
|
+
switch (action) {
|
|
524
|
+
case "connect_service": return "Connect Computer";
|
|
525
|
+
case "reconnect_service": return "Reconnect Computer";
|
|
526
|
+
case "update_service": return "Update OpenMeld on Computer";
|
|
527
|
+
case "connect_local_agent": return "Connect local agent";
|
|
528
|
+
case "update_skills": return "Update OpenMeld skills";
|
|
529
|
+
case "update_cli": return "Update OpenMeld CLI";
|
|
530
|
+
case "none": return "Everything is up to date";
|
|
531
|
+
default: return action;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function formatLocalComponentsSummaryLabel(input) {
|
|
535
|
+
if (input.setupAction !== "none") return formatLocalSetupActionLabel(input.setupAction);
|
|
536
|
+
switch (input.cliStatus) {
|
|
537
|
+
case "update_required": return "Update OpenMeld CLI";
|
|
538
|
+
case "update_available": return "OpenMeld CLI update available";
|
|
539
|
+
case "ok": return "Everything is up to date";
|
|
540
|
+
default: return input.cliStatus;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
function formatLocalComponentsSummaryDescription(input) {
|
|
544
|
+
if (input.setupAction !== "none") return formatLocalSetupActionDescription(input.setupAction);
|
|
545
|
+
switch (input.cliStatus) {
|
|
546
|
+
case "update_required": return "Update OpenMeld CLI before running this setup flow.";
|
|
547
|
+
case "update_available": return "OpenMeld CLI can be updated, but this setup flow can continue.";
|
|
548
|
+
case "ok": return "OpenMeld local components are aligned for this computer.";
|
|
549
|
+
default: return input.cliStatus;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function formatLocalSetupActionDescription(action) {
|
|
553
|
+
switch (action) {
|
|
554
|
+
case "connect_service": return "Connect this computer to OpenMeld so local agents can reply in Spaces.";
|
|
555
|
+
case "reconnect_service": return "Reconnect this computer to the current OpenMeld account.";
|
|
556
|
+
case "update_service": return "Update OpenMeld on this computer.";
|
|
557
|
+
case "connect_local_agent": return "Connect this Agent Profile to a local agent runtime on this computer.";
|
|
558
|
+
case "update_skills": return "Update OpenMeld skills through setup on this computer.";
|
|
559
|
+
case "update_cli": return "Update OpenMeld CLI before running this setup flow.";
|
|
560
|
+
case "none": return "OpenMeld local components are aligned for this computer.";
|
|
561
|
+
default: return action;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
//#endregion
|
|
565
|
+
export { discriminatedUnion as A, object as B, openMeldToolsUpdateRequestResultSchema as C, array as D, ZodIssueCode as E, lazySchema as F, tuple as G, record as H, literal as I, unknown as J, undefinedFactory as K, neverFactory as L, enumFactory as M, int as N, boolean as O, iso as P, nullFactory as R, openMeldToolsUpdateProcessFailureFrameSchema as S, NEVER as T, strictObject as U, preprocess as V, string as W, url as Y, openMeldToolsMaintenanceProjectionSchema as _, formatLocalSetupActionLabel as a, openMeldToolsUpdateOperationPhaseSchema as b, localComponentUpdatePolicySchema as c, localComponentsStatusSchema as d, localServiceComponentUpdateProjectionSchema as f, openMeldToolsMaintenanceMutationResultSchema as g, openMeldToolsControlResultSchema as h, formatLocalSetupActionDescription as i, email as j, coerce as k, localComponentUpdateProjectionSchema as l, openMeldToolsControlRequestSchema as m, formatLocalComponentsSummaryDescription as n, installedLocalComponentsSnapshotSchema as o, openMeldToolsControlCapabilitySchema as p, union as q, formatLocalComponentsSummaryLabel as r, localCliComponentUpdateProjectionSchema as s, OPEN_MELD_TOOLS_UPDATE_FAILURE_DETAIL_MAX_CHARS as t, localComponentUpdateStatusSchema as u, openMeldToolsUpdateAttemptSchema as v, openMeldToolsUpdateRequestSourceSchema as w, openMeldToolsUpdateOperationSchema as x, openMeldToolsUpdateFailureCodeSchema as y, number as z };
|
|
566
|
+
|
|
567
|
+
//# sourceMappingURL=local-components-H3SkJMC1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-components-H3SkJMC1.js","names":[],"sources":["../../../packages/schemas/dist/lazy-zod.js","../../../packages/schemas/dist/schemas/local-components.js"],"sourcesContent":["import * as zod from \"zod/v4\";\n//#region src/lazy-zod.ts\nconst NEVER = zod.NEVER;\nconst ZodIssueCode = zod.ZodIssueCode;\nconst DEFERRED_SCHEMA_METHODS = /* @__PURE__ */ new Set([\n\t\"and\",\n\t\"array\",\n\t\"base64\",\n\t\"base64url\",\n\t\"catch\",\n\t\"catchall\",\n\t\"check\",\n\t\"cidrv4\",\n\t\"cidrv6\",\n\t\"clone\",\n\t\"cuid\",\n\t\"cuid2\",\n\t\"date\",\n\t\"datetime\",\n\t\"default\",\n\t\"duration\",\n\t\"e164\",\n\t\"email\",\n\t\"emoji\",\n\t\"endsWith\",\n\t\"exactOptional\",\n\t\"exclude\",\n\t\"extend\",\n\t\"extract\",\n\t\"gt\",\n\t\"gte\",\n\t\"guid\",\n\t\"includes\",\n\t\"input\",\n\t\"int\",\n\t\"ipv4\",\n\t\"ipv6\",\n\t\"jwt\",\n\t\"keyof\",\n\t\"ksuid\",\n\t\"length\",\n\t\"loose\",\n\t\"lowercase\",\n\t\"lt\",\n\t\"lte\",\n\t\"max\",\n\t\"merge\",\n\t\"mime\",\n\t\"min\",\n\t\"multipleOf\",\n\t\"nanoid\",\n\t\"negative\",\n\t\"nonempty\",\n\t\"nonnegative\",\n\t\"nonoptional\",\n\t\"nonpositive\",\n\t\"normalize\",\n\t\"nullable\",\n\t\"nullish\",\n\t\"omit\",\n\t\"optional\",\n\t\"or\",\n\t\"output\",\n\t\"overwrite\",\n\t\"partial\",\n\t\"passthrough\",\n\t\"pick\",\n\t\"pipe\",\n\t\"positive\",\n\t\"prefault\",\n\t\"readonly\",\n\t\"refine\",\n\t\"regex\",\n\t\"removeCatch\",\n\t\"removeDefault\",\n\t\"required\",\n\t\"rest\",\n\t\"safe\",\n\t\"safeExtend\",\n\t\"size\",\n\t\"slugify\",\n\t\"startsWith\",\n\t\"step\",\n\t\"strict\",\n\t\"strip\",\n\t\"superRefine\",\n\t\"time\",\n\t\"toLowerCase\",\n\t\"toUpperCase\",\n\t\"transform\",\n\t\"trim\",\n\t\"ulid\",\n\t\"unwrap\",\n\t\"uppercase\",\n\t\"url\",\n\t\"uuid\",\n\t\"uuidv4\",\n\t\"uuidv6\",\n\t\"uuidv7\",\n\t\"with\",\n\t\"xid\"\n]);\nconst SELF_RETURNING_METHODS = /* @__PURE__ */ new Set([\"brand\", \"finite\"]);\nconst UNHANDLED_PROPERTY = Symbol(\"unhandled lazy Zod property\");\nconst globalRegistry = zod.globalRegistry;\nfunction lazySchema(createSchema) {\n\tlet schema;\n\tlet proxy;\n\tconst target = Object.create(null);\n\tlet targetIsMaterialized = false;\n\tconst resolveSchema = () => {\n\t\tschema ??= createSchema();\n\t\treturn schema;\n\t};\n\tconst readResolvedProperty = (property) => {\n\t\tconst resolved = resolveSchema();\n\t\tconst value = Reflect.get(resolved, property, resolved);\n\t\treturn typeof value === \"function\" ? value.bind(resolved) : value;\n\t};\n\tconst deferSchemaMethod = (property, args) => lazySchema(() => {\n\t\tconst resolved = resolveSchema();\n\t\tconst method = Reflect.get(resolved, property, resolved);\n\t\tif (typeof method !== \"function\") throw new TypeError(`Lazy Zod property ${String(property)} is not callable`);\n\t\tconst result = Reflect.apply(method, resolved, args);\n\t\tif (!(result instanceof zod.ZodType)) throw new TypeError(`Lazy Zod method ${String(property)} did not return a schema`);\n\t\treturn result;\n\t});\n\tconst materializeTarget = () => {\n\t\tconst resolved = resolveSchema();\n\t\tif (targetIsMaterialized) return resolved;\n\t\tReflect.setPrototypeOf(target, Reflect.getPrototypeOf(resolved));\n\t\tfor (const property of Reflect.ownKeys(resolved)) {\n\t\t\tconst descriptor = Reflect.getOwnPropertyDescriptor(resolved, property);\n\t\t\tif (descriptor) Reflect.defineProperty(target, property, descriptor);\n\t\t}\n\t\ttargetIsMaterialized = true;\n\t\treturn resolved;\n\t};\n\tconst readSpecialProperty = (property) => {\n\t\tswitch (property) {\n\t\t\tcase \"description\": {\n\t\t\t\tconst metadata = globalRegistry.get(proxy);\n\t\t\t\treturn metadata && typeof metadata === \"object\" ? Reflect.get(metadata, \"description\") : void 0;\n\t\t\t}\n\t\t\tcase \"apply\": return (operation) => operation(proxy);\n\t\t\tcase \"register\": return (registry, ...metadata) => {\n\t\t\t\tregistry.add(proxy, ...metadata);\n\t\t\t\treturn proxy;\n\t\t\t};\n\t\t\tcase \"meta\": return (...metadata) => {\n\t\t\t\tif (metadata.length === 0) return globalRegistry.get(proxy);\n\t\t\t\tconst registered = deferSchemaMethod(property, withoutRegistryIdentity(metadata));\n\t\t\t\tglobalRegistry.add(registered, ...metadata);\n\t\t\t\treturn registered;\n\t\t\t};\n\t\t\tcase \"describe\": return (description) => {\n\t\t\t\tconst described = deferSchemaMethod(property, [description]);\n\t\t\t\tglobalRegistry.add(described, { description });\n\t\t\t\treturn described;\n\t\t\t};\n\t\t\tcase \"toJSONSchema\": return (...args) => Reflect.apply(zod.toJSONSchema, zod, [proxy, ...args]);\n\t\t\tdefault: return UNHANDLED_PROPERTY;\n\t\t}\n\t};\n\tproxy = new Proxy(target, {\n\t\tdeleteProperty(_target, property) {\n\t\t\tconst deletedFromTarget = Reflect.deleteProperty(target, property);\n\t\t\tconst deletedFromSchema = Reflect.deleteProperty(resolveSchema(), property);\n\t\t\treturn deletedFromTarget && deletedFromSchema;\n\t\t},\n\t\tget(_target, property, receiver) {\n\t\t\tconst specialProperty = readSpecialProperty(property);\n\t\t\tif (specialProperty !== UNHANDLED_PROPERTY) return specialProperty;\n\t\t\tif (SELF_RETURNING_METHODS.has(property)) return () => proxy;\n\t\t\tif (DEFERRED_SCHEMA_METHODS.has(property)) return (...args) => deferSchemaMethod(property, args);\n\t\t\treturn Reflect.getOwnPropertyDescriptor(target, property) ? Reflect.get(target, property, receiver) : readResolvedProperty(property);\n\t\t},\n\t\tgetOwnPropertyDescriptor(_target, property) {\n\t\t\tconst targetDescriptor = Reflect.getOwnPropertyDescriptor(target, property);\n\t\t\tif (targetDescriptor || targetIsMaterialized) return targetDescriptor;\n\t\t\tconst descriptor = Reflect.getOwnPropertyDescriptor(resolveSchema(), property);\n\t\t\treturn descriptor ? {\n\t\t\t\t...descriptor,\n\t\t\t\tconfigurable: true\n\t\t\t} : void 0;\n\t\t},\n\t\tgetPrototypeOf() {\n\t\t\treturn targetIsMaterialized ? Reflect.getPrototypeOf(target) : Reflect.getPrototypeOf(resolveSchema());\n\t\t},\n\t\thas(_target, property) {\n\t\t\treturn Reflect.has(target, property) || Reflect.has(resolveSchema(), property);\n\t\t},\n\t\townKeys() {\n\t\t\tif (targetIsMaterialized) return Reflect.ownKeys(target);\n\t\t\treturn [.../* @__PURE__ */ new Set([...Reflect.ownKeys(target), ...Reflect.ownKeys(resolveSchema())])];\n\t\t},\n\t\tpreventExtensions() {\n\t\t\tconst resolved = materializeTarget();\n\t\t\treturn Reflect.preventExtensions(resolved) && Reflect.preventExtensions(target);\n\t\t},\n\t\tset(_target, property, value) {\n\t\t\tconst resolved = resolveSchema();\n\t\t\tif (!targetIsMaterialized) return Reflect.set(resolved, property, value);\n\t\t\treturn Reflect.set(resolved, property, value) && Reflect.set(target, property, value);\n\t\t}\n\t});\n\treturn proxy;\n}\nfunction withoutRegistryIdentity(metadata) {\n\tconst [firstMetadata] = metadata;\n\tif (!(firstMetadata && typeof firstMetadata === \"object\" && \"id\" in firstMetadata)) return metadata;\n\treturn [Object.fromEntries(Object.entries(firstMetadata).filter(([key]) => key !== \"id\")), ...metadata.slice(1)];\n}\nfunction snapshotFactoryArgument(value) {\n\treturn Array.isArray(value) ? [...value] : value;\n}\nfunction lazyFactory(factory) {\n\tconst invoke = factory;\n\treturn ((...args) => {\n\t\tconst declaredArgs = args.map(snapshotFactoryArgument);\n\t\treturn lazySchema(() => invoke(...declaredArgs));\n\t});\n}\nconst array = lazyFactory(zod.array);\nconst boolean = lazyFactory(zod.boolean);\nconst discriminatedUnion = lazyFactory(zod.discriminatedUnion);\nconst email = lazyFactory(zod.email);\nconst enumFactory = lazyFactory(zod.enum);\nconst int = lazyFactory(zod.int);\nconst literal = lazyFactory(zod.literal);\nconst neverFactory = lazyFactory(zod.never);\nconst nullFactory = lazyFactory(zod.null);\nconst number = lazyFactory(zod.number);\nconst object = lazyFactory(zod.object);\nconst preprocess = lazyFactory(zod.preprocess);\nconst record = lazyFactory(zod.record);\nconst strictObject = lazyFactory(zod.strictObject);\nconst string = lazyFactory(zod.string);\nconst tuple = lazyFactory(zod.tuple);\nconst union = lazyFactory(zod.union);\nconst undefinedFactory = lazyFactory(zod.undefined);\nconst unknown = lazyFactory(zod.unknown);\nconst url = lazyFactory(zod.url);\nconst coerce = {\n\t...zod.coerce,\n\tbigint: lazyFactory(zod.coerce.bigint),\n\tboolean: lazyFactory(zod.coerce.boolean),\n\tdate: lazyFactory(zod.coerce.date),\n\tnumber: lazyFactory(zod.coerce.number),\n\tstring: lazyFactory(zod.coerce.string)\n};\nconst iso = {\n\t...zod.iso,\n\tdate: lazyFactory(zod.iso.date),\n\tdatetime: lazyFactory(zod.iso.datetime),\n\tduration: lazyFactory(zod.iso.duration),\n\ttime: lazyFactory(zod.iso.time)\n};\n//#endregion\nexport { NEVER, ZodIssueCode, array, boolean, coerce, discriminatedUnion, email, enumFactory as enum, int, iso, lazySchema, literal, neverFactory as never, nullFactory as null, number, object, preprocess, record, strictObject, string, tuple, undefinedFactory as undefined, union, unknown, url };\n\n//# sourceMappingURL=lazy-zod.js.map","import { array, boolean, discriminatedUnion, enum as enumFactory, iso, literal, number, strictObject, string } from \"../lazy-zod.js\";\n//#region src/schemas/local-components.ts\nconst LOCAL_COMPONENTS_SCHEMA_VERSION = 1;\nconst nonEmptyStringSchema = string().trim().min(1);\nconst nullableNonEmptyStringSchema = nonEmptyStringSchema.nullable();\nconst localComponentStatusSchema = enumFactory([\n\t\"ok\",\n\t\"update_available\",\n\t\"update_required\"\n]);\nconst localComponentUpdatePolicySchema = enumFactory([\n\t\"ok\",\n\t\"available\",\n\t\"required\"\n]);\nconst localComponentUpdateStatusSchema = enumFactory([\n\t\"current\",\n\t\"update_available\",\n\t\"update_required\",\n\t\"unknown\"\n]);\nconst openMeldToolsUpdateOperationPhaseSchema = enumFactory([\n\t\"waiting_for_work\",\n\t\"updating\",\n\t\"updated\",\n\t\"restored\",\n\t\"needs_help\"\n]);\nconst openMeldToolsUpdateRequestSourceSchema = enumFactory([\n\t\"automatic\",\n\t\"center_agent\",\n\t\"cli\",\n\t\"web\"\n]);\nconst OPEN_MELD_TOOLS_UPDATE_FAILURE_DETAIL_MAX_CHARS = 2048;\nconst openMeldToolsUpdateFailureCodeSchema = enumFactory([\n\t\"cli.update.download_stalled\",\n\t\"cli.update.download_timed_out\",\n\t\"cli.update.download_failed\",\n\t\"cli.update.integrity_check_failed\",\n\t\"cli.update.install_failed\",\n\t\"cli.update.service_alignment_failed\",\n\t\"cli.update.failed\"\n]);\nconst openMeldToolsUpdateProcessFailureFrameSchema = strictObject({\n\tdetail: nonEmptyStringSchema.max(OPEN_MELD_TOOLS_UPDATE_FAILURE_DETAIL_MAX_CHARS),\n\tfailureCode: openMeldToolsUpdateFailureCodeSchema,\n\tschema: literal(\"openmeld-tools-update-process-failure-v1\"),\n\tv: literal(1)\n});\nconst openMeldToolsUpdateOperationSchema = strictObject({\n\toperationId: nonEmptyStringSchema,\n\tphase: openMeldToolsUpdateOperationPhaseSchema,\n\trequestSource: openMeldToolsUpdateRequestSourceSchema,\n\trequestedAt: iso.datetime({ offset: true }),\n\ttargetVersion: nonEmptyStringSchema,\n\tupdatedAt: iso.datetime({ offset: true }),\n\turgency: enumFactory([\"available\", \"required\"])\n});\nconst openMeldToolsMaintenanceProjectionSchema = strictObject({\n\tautomaticUpdatesEnabled: boolean(),\n\tstatus: enumFactory([\"ready\", \"needs_help\"])\n});\nconst openMeldToolsControlCapabilitySchema = strictObject({\n\trequestAutomaticUpdate: literal(true).optional(),\n\trequestUpdate: literal(true).optional(),\n\tsetAutomaticUpdates: literal(true).optional()\n});\nconst openMeldToolsUpdateRequestResultSchema = discriminatedUnion(\"status\", [\n\tstrictObject({ status: literal(\"disabled\") }),\n\tstrictObject({ status: literal(\"unavailable\") }),\n\tstrictObject({\n\t\tcurrentVersion: nonEmptyStringSchema,\n\t\tstatus: literal(\"current\")\n\t}),\n\tstrictObject({\n\t\toperation: openMeldToolsUpdateOperationSchema,\n\t\tstatus: enumFactory([\"started\", \"already_running\"])\n\t})\n]);\nconst openMeldToolsMaintenanceMutationResultSchema = strictObject({\n\tautomaticUpdatesEnabled: boolean(),\n\tstatus: enumFactory([\"updated\", \"unchanged\"])\n});\nconst openMeldToolsControlRequestSchema = discriminatedUnion(\"operation\", [strictObject({\n\toperation: literal(\"request_update\"),\n\trequestSource: enumFactory([\n\t\t\"automatic\",\n\t\t\"center_agent\",\n\t\t\"web\"\n\t])\n}), strictObject({\n\tautomaticUpdatesEnabled: boolean(),\n\toperation: literal(\"set_automatic_updates\"),\n\trequestSource: enumFactory([\"center_agent\", \"web\"])\n})]);\nconst openMeldToolsControlResultSchema = discriminatedUnion(\"operation\", [strictObject({\n\toperation: literal(\"request_update\"),\n\tresult: openMeldToolsUpdateRequestResultSchema\n}), strictObject({\n\toperation: literal(\"set_automatic_updates\"),\n\tresult: openMeldToolsMaintenanceMutationResultSchema\n})]);\nconst openMeldToolsUpdateAttemptSchema = strictObject({\n\tv: literal(1),\n\tattempts: number().int().nonnegative(),\n\terrorMessage: nullableNonEmptyStringSchema,\n\toperation: openMeldToolsUpdateOperationSchema\n});\nconst localSetupActionSchema = enumFactory([\n\t\"none\",\n\t\"connect_service\",\n\t\"reconnect_service\",\n\t\"update_service\",\n\t\"connect_local_agent\",\n\t\"update_skills\",\n\t\"update_cli\"\n]);\nconst localSetupEntrypointSchema = literal(\"setup\");\nconst localComponentsManifestSchema = strictObject({\n\tschemaVersion: literal(1),\n\topenMeldReleaseVersion: nonEmptyStringSchema,\n\tcli: strictObject({\n\t\tpackageVersion: nonEmptyStringSchema,\n\t\tcommandContractVersion: nonEmptyStringSchema\n\t}),\n\tservice: strictObject({\n\t\tbundleHash: nullableNonEmptyStringSchema,\n\t\tbundleVersion: nonEmptyStringSchema,\n\t\truntimeContractEpoch: nonEmptyStringSchema,\n\t\tserviceContractVersion: nonEmptyStringSchema\n\t}),\n\tskills: strictObject({\n\t\tbundleHash: nullableNonEmptyStringSchema,\n\t\tskillContractVersion: nonEmptyStringSchema,\n\t\tskillIds: array(nonEmptyStringSchema)\n\t})\n});\nconst localComponentsReleaseManifestSchema = strictObject({\n\tschemaVersion: literal(1),\n\tupdatedAt: iso.datetime({ offset: true }),\n\tcomponents: strictObject({\n\t\tcli: strictObject({\n\t\t\tpackageVersion: nonEmptyStringSchema,\n\t\t\tcommandContractVersion: nonEmptyStringSchema,\n\t\t\tupdatePolicy: localComponentUpdatePolicySchema,\n\t\t\treason: nonEmptyStringSchema\n\t\t}),\n\t\tservice: strictObject({\n\t\t\tbundleHash: nullableNonEmptyStringSchema,\n\t\t\tbundleVersion: nonEmptyStringSchema,\n\t\t\truntimeContractEpoch: nonEmptyStringSchema,\n\t\t\tserviceContractVersion: nonEmptyStringSchema,\n\t\t\tupdatePolicy: localComponentUpdatePolicySchema,\n\t\t\treason: nonEmptyStringSchema\n\t\t}),\n\t\tskills: strictObject({\n\t\t\tbundleHash: nullableNonEmptyStringSchema,\n\t\t\tskillContractVersion: nonEmptyStringSchema,\n\t\t\tskillIds: array(nonEmptyStringSchema),\n\t\t\tupdatePolicy: localComponentUpdatePolicySchema,\n\t\t\treason: nonEmptyStringSchema\n\t\t})\n\t})\n});\nconst installedLocalComponentsSnapshotSchema = strictObject({\n\tschemaVersion: literal(1),\n\tinstalledAt: iso.datetime({ offset: true }),\n\tsource: enumFactory([\n\t\t\"setup\",\n\t\t\"repair\",\n\t\t\"manual\"\n\t]),\n\tmanifest: localComponentsManifestSchema\n});\nconst localComponentProjectionSchema = strictObject({\n\treasonCodes: array(nonEmptyStringSchema),\n\tstatus: localComponentStatusSchema\n});\nconst localCliComponentProjectionSchema = localComponentProjectionSchema.extend({\n\tcommandContractVersion: nonEmptyStringSchema,\n\tlatestPackageVersion: nullableNonEmptyStringSchema,\n\tpackageVersion: nonEmptyStringSchema,\n\trequiredCommandContractVersion: nullableNonEmptyStringSchema\n});\nconst localServiceComponentProjectionSchema = localComponentProjectionSchema.extend({\n\texpectedBundleHash: nullableNonEmptyStringSchema,\n\texpectedBundleVersion: nonEmptyStringSchema,\n\tinstalledBundleHash: nullableNonEmptyStringSchema,\n\tinstalledBundleVersion: nullableNonEmptyStringSchema,\n\truntimeContractEpoch: nonEmptyStringSchema,\n\tserviceContractVersion: nonEmptyStringSchema\n});\nconst localSkillsComponentProjectionSchema = localComponentProjectionSchema.extend({\n\tcontentRelease: strictObject({\n\t\trevision: number().int().positive(),\n\t\tminimumCliVersion: string().regex(/^\\d+\\.\\d+\\.\\d+$/)\n\t}).optional(),\n\texpectedBundleHash: nullableNonEmptyStringSchema,\n\tinstalledBundleHash: nullableNonEmptyStringSchema,\n\tskillContractVersion: nonEmptyStringSchema,\n\ttargetCount: number().int().nonnegative()\n});\nconst localComponentsStatusSchema = strictObject({\n\tschemaVersion: literal(1),\n\tgeneratedAt: iso.datetime({ offset: true }),\n\tentrypoint: localSetupEntrypointSchema,\n\tsummaryLabel: nonEmptyStringSchema,\n\tsummaryDescription: nonEmptyStringSchema,\n\tsetupAction: localSetupActionSchema,\n\tsetupActionLabel: nonEmptyStringSchema,\n\tsetupActionDescription: nonEmptyStringSchema,\n\tmaintenance: openMeldToolsMaintenanceProjectionSchema.optional(),\n\tupdateOperation: openMeldToolsUpdateOperationSchema.optional(),\n\tcli: localCliComponentProjectionSchema,\n\tservice: localServiceComponentProjectionSchema,\n\tskills: localSkillsComponentProjectionSchema\n});\nconst localServiceComponentUpdateProjectionSchema = strictObject({\n\tinstalledVersion: nullableNonEmptyStringSchema,\n\tlatestVersion: nullableNonEmptyStringSchema,\n\treasonCodes: array(nonEmptyStringSchema),\n\trequiredVersion: nullableNonEmptyStringSchema,\n\tstatus: localComponentUpdateStatusSchema,\n\tupdatePolicy: localComponentUpdatePolicySchema,\n\twakeBlocked: boolean()\n});\nconst localCliComponentUpdateProjectionSchema = strictObject({\n\tcommandContractVersion: nullableNonEmptyStringSchema,\n\tinstalledPackageVersion: nullableNonEmptyStringSchema,\n\tlatestPackageVersion: nullableNonEmptyStringSchema,\n\treasonCodes: array(nonEmptyStringSchema),\n\trequiredCommandContractVersion: nullableNonEmptyStringSchema,\n\tstatus: localComponentUpdateStatusSchema,\n\tupdatePolicy: localComponentUpdatePolicySchema,\n\twakeBlocked: boolean()\n});\nconst localSkillsComponentUpdateProjectionSchema = strictObject({\n\texpectedBundleHash: nullableNonEmptyStringSchema,\n\texpectedTargetCount: number().int().nonnegative(),\n\tinstalledBundleHash: nullableNonEmptyStringSchema,\n\treasonCodes: array(nonEmptyStringSchema),\n\tskillContractVersion: nullableNonEmptyStringSchema,\n\tstatus: localComponentUpdateStatusSchema,\n\ttargetCount: number().int().nonnegative().nullable(),\n\tupdatePolicy: localComponentUpdatePolicySchema,\n\twakeBlocked: boolean()\n});\nconst localComponentUpdateProjectionSchema = strictObject({\n\tschemaVersion: literal(1),\n\tgeneratedAt: iso.datetime({ offset: true }),\n\tsetupAction: localSetupActionSchema,\n\tsetupActionLabel: nonEmptyStringSchema,\n\tsetupActionDescription: nonEmptyStringSchema,\n\thumanSetupCommand: nonEmptyStringSchema,\n\tagentSetupCommand: nonEmptyStringSchema,\n\tmaintenance: openMeldToolsMaintenanceProjectionSchema.optional(),\n\tupdateOperation: openMeldToolsUpdateOperationSchema.optional(),\n\tcli: localCliComponentUpdateProjectionSchema,\n\tservice: localServiceComponentUpdateProjectionSchema,\n\tskills: localSkillsComponentUpdateProjectionSchema\n});\nfunction formatLocalSetupActionLabel(action) {\n\tswitch (action) {\n\t\tcase \"connect_service\": return \"Connect Computer\";\n\t\tcase \"reconnect_service\": return \"Reconnect Computer\";\n\t\tcase \"update_service\": return \"Update OpenMeld on Computer\";\n\t\tcase \"connect_local_agent\": return \"Connect local agent\";\n\t\tcase \"update_skills\": return \"Update OpenMeld skills\";\n\t\tcase \"update_cli\": return \"Update OpenMeld CLI\";\n\t\tcase \"none\": return \"Everything is up to date\";\n\t\tdefault: return action;\n\t}\n}\nfunction formatOpenMeldToolsUpdateFailureMessage(code) {\n\tswitch (code) {\n\t\tcase \"cli.update.download_stalled\": return \"The update download stopped making progress. Check this computer's connection and try again.\";\n\t\tcase \"cli.update.download_timed_out\": return \"The update download exceeded its recovery time. Check this computer's connection and try again.\";\n\t\tcase \"cli.update.download_failed\": return \"The update could not be downloaded. Check this computer's connection and try again.\";\n\t\tcase \"cli.update.integrity_check_failed\": return \"The downloaded update did not pass integrity checks, so it was not installed.\";\n\t\tcase \"cli.update.install_failed\": return \"The update could not be installed.\";\n\t\tcase \"cli.update.service_alignment_failed\": return \"OpenMeld Service could not finish updating.\";\n\t\tcase \"cli.update.failed\": return \"The update could not be completed. Try again or update manually.\";\n\t\tdefault: return code;\n\t}\n}\nfunction findOpenMeldToolsUpdateFailureCode(reasonCodes) {\n\tfor (const reasonCode of reasonCodes) {\n\t\tconst parsed = openMeldToolsUpdateFailureCodeSchema.safeParse(reasonCode);\n\t\tif (parsed.success) return parsed.data;\n\t}\n\treturn null;\n}\nfunction formatLocalComponentsSummaryLabel(input) {\n\tif (input.setupAction !== \"none\") return formatLocalSetupActionLabel(input.setupAction);\n\tswitch (input.cliStatus) {\n\t\tcase \"update_required\": return \"Update OpenMeld CLI\";\n\t\tcase \"update_available\": return \"OpenMeld CLI update available\";\n\t\tcase \"ok\": return \"Everything is up to date\";\n\t\tdefault: return input.cliStatus;\n\t}\n}\nfunction formatLocalComponentsSummaryDescription(input) {\n\tif (input.setupAction !== \"none\") return formatLocalSetupActionDescription(input.setupAction);\n\tswitch (input.cliStatus) {\n\t\tcase \"update_required\": return \"Update OpenMeld CLI before running this setup flow.\";\n\t\tcase \"update_available\": return \"OpenMeld CLI can be updated, but this setup flow can continue.\";\n\t\tcase \"ok\": return \"OpenMeld local components are aligned for this computer.\";\n\t\tdefault: return input.cliStatus;\n\t}\n}\nfunction formatLocalSetupActionDescription(action) {\n\tswitch (action) {\n\t\tcase \"connect_service\": return \"Connect this computer to OpenMeld so local agents can reply in Spaces.\";\n\t\tcase \"reconnect_service\": return \"Reconnect this computer to the current OpenMeld account.\";\n\t\tcase \"update_service\": return \"Update OpenMeld on this computer.\";\n\t\tcase \"connect_local_agent\": return \"Connect this Agent Profile to a local agent runtime on this computer.\";\n\t\tcase \"update_skills\": return \"Update OpenMeld skills through setup on this computer.\";\n\t\tcase \"update_cli\": return \"Update OpenMeld CLI before running this setup flow.\";\n\t\tcase \"none\": return \"OpenMeld local components are aligned for this computer.\";\n\t\tdefault: return action;\n\t}\n}\n//#endregion\nexport { LOCAL_COMPONENTS_SCHEMA_VERSION, OPEN_MELD_TOOLS_UPDATE_FAILURE_DETAIL_MAX_CHARS, findOpenMeldToolsUpdateFailureCode, formatLocalComponentsSummaryDescription, formatLocalComponentsSummaryLabel, formatLocalSetupActionDescription, formatLocalSetupActionLabel, formatOpenMeldToolsUpdateFailureMessage, installedLocalComponentsSnapshotSchema, localCliComponentProjectionSchema, localCliComponentUpdateProjectionSchema, localComponentProjectionSchema, localComponentStatusSchema, localComponentUpdatePolicySchema, localComponentUpdateProjectionSchema, localComponentUpdateStatusSchema, localComponentsManifestSchema, localComponentsReleaseManifestSchema, localComponentsStatusSchema, localServiceComponentProjectionSchema, localServiceComponentUpdateProjectionSchema, localSetupActionSchema, localSetupEntrypointSchema, localSkillsComponentProjectionSchema, localSkillsComponentUpdateProjectionSchema, openMeldToolsControlCapabilitySchema, openMeldToolsControlRequestSchema, openMeldToolsControlResultSchema, openMeldToolsMaintenanceMutationResultSchema, openMeldToolsMaintenanceProjectionSchema, openMeldToolsUpdateAttemptSchema, openMeldToolsUpdateFailureCodeSchema, openMeldToolsUpdateOperationPhaseSchema, openMeldToolsUpdateOperationSchema, openMeldToolsUpdateProcessFailureFrameSchema, openMeldToolsUpdateRequestResultSchema, openMeldToolsUpdateRequestSourceSchema };\n\n//# sourceMappingURL=local-components.js.map"],"mappings":";;;;AAEA,MAAM,QAAQ,IAAI;AAClB,MAAM,eAAe,IAAI;AACzB,MAAM,0CAA0C,IAAI,IAAI;CACvD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,yCAAyC,IAAI,IAAI,CAAC,SAAS,QAAQ,CAAC;AAC1E,MAAM,qBAAqB,OAAO,6BAA6B;AAC/D,MAAM,iBAAiB,IAAI;AAC3B,SAAS,WAAW,cAAc;CACjC,IAAI;CACJ,IAAI;CACJ,MAAM,SAAS,OAAO,OAAO,IAAI;CACjC,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