feat(bot): add configurable household assistant behavior

This commit is contained in:
2026-03-12 03:22:43 +04:00
parent 146f5294f4
commit 4e7400e908
22 changed files with 4127 additions and 96 deletions

View File

@@ -18,6 +18,7 @@
"0014_empty_risque.sql": "6dd4aba0f84d43bc86afbd04cad3b1055ecac03bd80ad6fd510bef1550d10335",
"0015_white_owl.sql": "a9dec4c536c660d7eb0fcea42a3bedb1301408551977d098dff8324d7d5b26bd",
"0016_equal_susan_delgado.sql": "1698bf0516d16d2d7929dcb1bd2bb76d5a629eaba3d0bb2533c1ae926408de7a",
"0017_gigantic_selene.sql": "232d61b979675ddb97c9d69d14406dc15dd095ee6a332d3fa71d10416204fade"
"0017_gigantic_selene.sql": "232d61b979675ddb97c9d69d14406dc15dd095ee6a332d3fa71d10416204fade",
"0018_nimble_kojori.sql": "818738e729119c6de8049dcfca562926a5dc6e321ecbbf9cf38e02bc70b5a0dc"
}
}

View File

@@ -0,0 +1,2 @@
ALTER TABLE "households" ADD COLUMN "assistant_context" text;
ALTER TABLE "households" ADD COLUMN "assistant_tone" text;

File diff suppressed because it is too large Load Diff

View File

@@ -127,6 +127,13 @@
"when": 1773226133315,
"tag": "0017_gigantic_selene",
"breakpoints": true
},
{
"idx": 18,
"version": "7",
"when": 1773252000000,
"tag": "0018_nimble_kojori",
"breakpoints": true
}
]
}

View File

@@ -16,6 +16,8 @@ export const households = pgTable('households', {
id: uuid('id').defaultRandom().primaryKey(),
name: text('name').notNull(),
defaultLocale: text('default_locale').default('ru').notNull(),
assistantContext: text('assistant_context'),
assistantTone: text('assistant_tone'),
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull()
})