@hediet/linkrpc-cli 0.0.3-next.20260925.3 → 0.0.3-next.20260926.2

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.
@@ -6026,34 +6026,17 @@ function resolveTopologyTarget(context) {
6026
6026
  if (candidates.length !== 1) throw new Error("Select exactly one canonical hubrpc.topology interface");
6027
6027
  const listing = candidates[0];
6028
6028
  const canonical = topologyInterface.toSchema();
6029
- if (listing.schema.id !== canonical.id || computeInterfaceHash(listing.schema) !== listing.schema.hash || computeInterfaceHash(normalizePrimitiveTypeUnions({
6029
+ if (listing.schema.id !== canonical.id || computeInterfaceHash(listing.schema) !== listing.schema.hash || computeInterfaceHash({
6030
6030
  ...canonical,
6031
6031
  methods: listing.schema.methods,
6032
6032
  components: listing.schema.components
6033
- })) !== computeInterfaceHash(normalizePrimitiveTypeUnions(canonical))) throw new Error("Selected hubrpc.topology schema does not match the canonical inspection contract");
6033
+ }) !== canonical.hash) throw new Error("Selected hubrpc.topology schema does not match the canonical inspection contract");
6034
6034
  return {
6035
6035
  serviceId: listing.serviceId,
6036
6036
  hash: listing.schema.hash,
6037
6037
  isDefault: listing.isDefault === true
6038
6038
  };
6039
6039
  }
6040
- function normalizePrimitiveTypeUnions(schema) {
6041
- const visit = (value) => {
6042
- if (Array.isArray(value)) return value.map(visit);
6043
- if (value === null || typeof value !== "object") return value;
6044
- const record = value;
6045
- const types = record.type;
6046
- if (Object.keys(record).length === 1 && Array.isArray(types) && types.length > 0 && types.every((type) => [
6047
- "string",
6048
- "number",
6049
- "integer",
6050
- "boolean",
6051
- "null"
6052
- ].includes(type))) return { anyOf: types.map((type) => ({ type })) };
6053
- return Object.fromEntries(Object.entries(record).map(([key, child]) => [key, visit(child)]));
6054
- };
6055
- return visit(schema);
6056
- }
6057
6040
  function topologyTimeout(options) {
6058
6041
  const timeout = Number(options.timeoutMs ?? 5e3);
6059
6042
  if (!Number.isSafeInteger(timeout) || timeout < 1) throw new Error("--timeout-ms must be a positive integer");
@@ -7216,7 +7199,7 @@ Batch options:
7216
7199
  process.once("SIGINT", onSignal);
7217
7200
  process.once("SIGTERM", onSignal);
7218
7201
  try {
7219
- const { runApprovalUi } = await import("./runApprovalUi-Dmme5115.js");
7202
+ const { runApprovalUi } = await import("./runApprovalUi-CzPirGRo.js");
7220
7203
  await runApprovalUi({
7221
7204
  client,
7222
7205
  signal: stop.signal
@@ -7231,7 +7214,7 @@ Batch options:
7231
7214
  registerViewCommands(program, (action) => withChannel(endpoint, getPrincipalSpec(), action));
7232
7215
  program.command("ui").description("Launch the terminal UI (form-based browser of services + methods).").action(async () => {
7233
7216
  const acquired = await acquireConnection(endpoint);
7234
- const { runUi } = await import("./runUi-iTwO1iUN.js");
7217
+ const { runUi } = await import("./runUi-DvI4Tq4L.js");
7235
7218
  try {
7236
7219
  await runUi({
7237
7220
  endpoint: acquired.ep,
@@ -7664,4 +7647,4 @@ function safeJson(value) {
7664
7647
  //#endregion
7665
7648
  export { formatCommandLegend as a, safeTerminalText as c, interfaceTarget as d, matchesTarget as f, dispatchHostKey as i, resolveViewTarget as l, approvalDetailLines as m, views as n, hostCommands as o, targetId as p, ViewFrame as r, matchesKey as s, runCli as t, formatCondition as u };
7666
7649
 
7667
- //# sourceMappingURL=cli-DA7el6WB.js.map
7650
+ //# sourceMappingURL=cli-CGKufid3.js.map