/** * Shared internal helpers for the AppIntegrations service. * NOT exported from the service barrel. */ /** * The AppIntegrations wire TagMap is `{ [key: string]: string | undefined }`. * Collapse it to a plain `Record` so it can be diffed with * `diffTags`. */ export const definedTags = (tags?: { [key: string]: string | undefined; }): Record => { const out: Record = {}; for (const [key, value] of Object.entries(tags ?? {})) { if (value !== undefined) { out[key] = value; } } return out; };