Ассистент менеджера: вопрос о chargeback к контракту подрядчика (khb-chargeback, п.87); граница с accounting_automation
Some checks failed
ci / test (push) Successful in 47s
ci / deploy (push) Has been cancelled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 20:00:33 +03:00
parent 7970d8f8d7
commit 9f5297f765
11 changed files with 231 additions and 1 deletions

View File

@@ -111,6 +111,13 @@ export const mailSchema = z.object({
agentsEmail: z.string().default("agents@khbuild.pro"),
});
/** accounting_automation: ручки chargeback для ассистента менеджера (команда khb-chargeback). token - токен сервиса (у агента его нет), tokenSecret - секрет токенов менеджеров. */
export const accountingSchema = z.object({
url: z.string().default("http://khb-accounting:8096"),
token: z.string().min(1),
tokenSecret: z.string().min(16),
});
export const assistantPrepSchema = z.object({
http: z.object({ host: z.string().default("127.0.0.1"), port: z.number(), token: z.string().min(1) }),
lookaheadWorkDays: z.number().default(10),
@@ -122,5 +129,6 @@ export const assistantPrepSchema = z.object({
drive: driveSchema.optional(),
tts: ttsSchema.optional(),
mail: mailSchema.optional(),
accounting: accountingSchema.optional(),
});
export type AssistantPrepSettings = z.infer<typeof assistantPrepSchema>;