@xuda.io/account_module 1.2.2301 → 1.2.2302

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.
Files changed (2) hide show
  1. package/index.mjs +4 -9
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1214,7 +1214,7 @@ export const backfill_app_costs = async function (opts = {}) {
1214
1214
  } else if (!BILLABLE_APP_TYPES.includes(doc.app_type) && !doc.is_deployment) {
1215
1215
  reason = `app_type ${doc.app_type} not billable`;
1216
1216
  } else {
1217
- const has_addons = doc.deploy_data?.enable_backups || doc.deploy_data?.enable_ai_maintenance || doc.deploy_data?.enable_ai_instructions || doc.deploy_data?.enable_offline || doc.deploy_data?.enable_utility_screen || doc.deploy_data?.enable_user_assist;
1217
+ const has_addons = doc.deploy_data?.enable_backups || doc.deploy_data?.enable_ai_maintenance || doc.deploy_data?.enable_ai_instructions || doc.deploy_data?.enable_offline || doc.deploy_data?.enable_user_assist;
1218
1218
  if (doc.is_deployment && !has_addons && !doc.deploy_data?.app_server_type) {
1219
1219
  reason = 'deployment without addons → datacenter bears cost';
1220
1220
  } else {
@@ -5999,14 +5999,9 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
5999
5999
  doc.profile_picture = account_info_ret.data.profile_picture;
6000
6000
  }
6001
6001
 
6002
- // The main profile is the account's OWN identity: it must never auto-respond
6003
- // (you don't auto-reply to yourself). Force it off in the read model so the
6004
- // card hides the control and no read-based consumer treats it as on. The
6005
- // runtime (ai_module.auto_response) also hard-skips the main profile.
6006
- if (doc.main) {
6007
- doc.auto_respond = false;
6008
- }
6009
-
6002
+ // The main profile's stored auto_respond is returned as-is (Boaz, 2026-07-31, reversing
6003
+ // UI-44 part 2). This used to be forced to false so the card would hide the control; with
6004
+ // the control back, forcing it would make the toggle read as off however it was saved.
6010
6005
  if (!doc.account_type) {
6011
6006
  doc.account_type = account_info_ret.data.account_type;
6012
6007
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.2301",
3
+ "version": "1.2.2302",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {