@pachca/cli 2026.6.1 → 2026.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.6.2 (19 июня 2026)
4
+
5
+ - **Добавлено** (bots create): Настройки входящего вебхука — параметры `template`, `template_engine`, `challenge_key`, `link_preview_enabled`
6
+ - **Добавлено** (bots update): Настройки входящего вебхука — параметры `template`, `template_engine`, `challenge_key`, `link_preview_enabled`
7
+ - **Добавлено** (search list-messages): Добавлен параметр `sort` — сортировка (`created_at` или `relevance`)
8
+
3
9
  ## 2026.6.1 (16 июня 2026)
4
10
 
5
11
  - **Изменено** (bots create): Добавлен параметр `scopes` — выбор скоупов токена бота
@@ -37,6 +37,19 @@ export default class BotsCreate extends BaseCommand {
37
37
  'scopes': Flags.string({
38
38
  description: "Скоупы (права доступа) токена бота. Если не указано, бот получает набор по умолчанию.",
39
39
  }),
40
+ 'template': Flags.string({
41
+ description: "Шаблон форматирования входящего вебхука",
42
+ }),
43
+ 'template-engine': Flags.string({
44
+ description: "Шаблонизатор для обработки шаблона входящего вебхука",
45
+ }),
46
+ 'challenge-key': Flags.string({
47
+ description: "Название поля проверки для верификации входящего вебхука",
48
+ }),
49
+ 'link-preview-enabled': Flags.boolean({
50
+ description: "Показывать превью ссылок в сообщениях входящего вебхука",
51
+ allowNo: true,
52
+ }),
40
53
  };
41
54
  async run() {
42
55
  const { args, flags } = await this.parse(BotsCreate);
@@ -75,6 +88,10 @@ export default class BotsCreate extends BaseCommand {
75
88
  trigger_on: flags['trigger-on'],
76
89
  commands: flags['commands'] ? this.parseJSON(flags['commands'], 'commands') : undefined,
77
90
  scopes: flags['scopes'] ? this.parseJSON(flags['scopes'], 'scopes') : undefined,
91
+ template: flags['template'],
92
+ template_engine: flags['template-engine'],
93
+ challenge_key: flags['challenge-key'],
94
+ link_preview_enabled: flags['link-preview-enabled'],
78
95
  } };
79
96
  // Clean undefined fields
80
97
  const inner = body['webhook'];
@@ -39,6 +39,19 @@ export default class BotsUpdate extends BaseCommand {
39
39
  'scopes': Flags.string({
40
40
  description: "Скоупы (права доступа) токена бота. Если не указано, бот получает набор по умолчанию.",
41
41
  }),
42
+ 'template': Flags.string({
43
+ description: "Шаблон форматирования входящего вебхука",
44
+ }),
45
+ 'template-engine': Flags.string({
46
+ description: "Шаблонизатор для обработки шаблона входящего вебхука",
47
+ }),
48
+ 'challenge-key': Flags.string({
49
+ description: "Название поля проверки для верификации входящего вебхука",
50
+ }),
51
+ 'link-preview-enabled': Flags.boolean({
52
+ description: "Показывать превью ссылок в сообщениях входящего вебхука",
53
+ allowNo: true,
54
+ }),
42
55
  };
43
56
  async run() {
44
57
  const { args, flags } = await this.parse(BotsUpdate);
@@ -51,6 +64,10 @@ export default class BotsUpdate extends BaseCommand {
51
64
  trigger_on: flags['trigger-on'],
52
65
  commands: flags['commands'] ? this.parseJSON(flags['commands'], 'commands') : undefined,
53
66
  scopes: flags['scopes'] ? this.parseJSON(flags['scopes'], 'scopes') : undefined,
67
+ template: flags['template'],
68
+ template_engine: flags['template-engine'],
69
+ challenge_key: flags['challenge-key'],
70
+ link_preview_enabled: flags['link-preview-enabled'],
54
71
  } };
55
72
  // Clean undefined fields
56
73
  const inner = body['webhook'];
@@ -20,6 +20,11 @@ export default class SearchListMessages extends BaseCommand {
20
20
  description: "Направление сортировки",
21
21
  options: ["asc", "desc"],
22
22
  }),
23
+ 'sort': Flags.string({
24
+ description: "Сортировка результатов",
25
+ options: ["created_at", "relevance"],
26
+ default: "created_at",
27
+ }),
23
28
  'created-from': Flags.string({
24
29
  description: "Фильтр по дате создания (от)",
25
30
  }),
@@ -60,6 +65,7 @@ export default class SearchListMessages extends BaseCommand {
60
65
  const query = {
61
66
  query: flags['query'],
62
67
  order: flags['order'],
68
+ sort: flags['sort'],
63
69
  'created_from': flags['created-from'],
64
70
  'created_to': flags['created-to'],
65
71
  'chat_ids': flags['chat-ids']?.split(','),
@@ -113,6 +119,7 @@ export default class SearchListMessages extends BaseCommand {
113
119
  query: {
114
120
  query: flags['query'],
115
121
  order: flags['order'],
122
+ sort: flags['sort'],
116
123
  'created_from': flags['created-from'],
117
124
  'created_to': flags['created-to'],
118
125
  'chat_ids': flags['chat-ids']?.split(','),
@@ -1,4 +1,25 @@
1
1
  [
2
+ {
3
+ "version": "2026.6.2",
4
+ "date": "19 июня 2026",
5
+ "changes": [
6
+ {
7
+ "type": "+",
8
+ "command": "bots create",
9
+ "description": "Настройки входящего вебхука — параметры `template`, `template_engine`, `challenge_key`, `link_preview_enabled`"
10
+ },
11
+ {
12
+ "type": "+",
13
+ "command": "bots update",
14
+ "description": "Настройки входящего вебхука — параметры `template`, `template_engine`, `challenge_key`, `link_preview_enabled`"
15
+ },
16
+ {
17
+ "type": "+",
18
+ "command": "search list-messages",
19
+ "description": "Добавлен параметр `sort` — сортировка (`created_at` или `relevance`)"
20
+ }
21
+ ]
22
+ },
2
23
  {
3
24
  "version": "2026.6.1",
4
25
  "date": "16 июня 2026",