@pachca/cli 2026.10.2 → 2026.10.4
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 +41 -0
- package/README.md +29 -29
- package/README.template.md +19 -28
- package/dist/base-command.js +69 -37
- package/dist/client.js +58 -33
- package/dist/commands/api.js +4 -4
- package/dist/commands/auth/login.js +12 -9
- package/dist/commands/auth/logout.js +23 -12
- package/dist/commands/bots/create-token.js +0 -3
- package/dist/commands/bots/create.js +1 -5
- package/dist/commands/bots/delete.js +0 -3
- package/dist/commands/bots/get-stream.js +23 -0
- package/dist/commands/bots/list-company.js +4 -5
- package/dist/commands/bots/list-events.js +4 -5
- package/dist/commands/bots/list-scopes.js +0 -3
- package/dist/commands/bots/list-tokens.js +4 -2
- package/dist/commands/bots/list.js +4 -5
- package/dist/commands/bots/recreate-token-self.js +0 -3
- package/dist/commands/bots/recreate-token.js +0 -3
- package/dist/commands/bots/reissue-token.js +0 -3
- package/dist/commands/bots/remove-event.js +0 -3
- package/dist/commands/bots/update-webhook.js +0 -3
- package/dist/commands/bots/update.js +4 -8
- package/dist/commands/chats/archive.js +0 -4
- package/dist/commands/chats/create.js +3 -6
- package/dist/commands/chats/download-export.js +0 -3
- package/dist/commands/chats/list-company.js +4 -5
- package/dist/commands/chats/list.js +5 -8
- package/dist/commands/chats/remove-avatar.js +0 -3
- package/dist/commands/chats/request-export.js +0 -3
- package/dist/commands/chats/unarchive.js +0 -3
- package/dist/commands/chats/update-avatar.js +0 -3
- package/dist/commands/chats/update.js +0 -3
- package/dist/commands/custom-properties/list.js +0 -3
- package/dist/commands/doctor.js +60 -35
- package/dist/commands/drafts/create.js +6 -6
- package/dist/commands/drafts/delete.js +0 -3
- package/dist/commands/drafts/list.js +4 -2
- package/dist/commands/drafts/update.js +7 -4
- package/dist/commands/files/uploads.js +0 -3
- package/dist/commands/group-tags/create.js +0 -3
- package/dist/commands/group-tags/list-users.js +4 -5
- package/dist/commands/group-tags/list.js +4 -5
- package/dist/commands/important-messages/create.js +64 -0
- package/dist/commands/important-messages/delete.js +42 -0
- package/dist/commands/important-messages/list.js +91 -0
- package/dist/commands/members/add.js +1 -6
- package/dist/commands/members/leave.js +0 -3
- package/dist/commands/members/list.js +4 -6
- package/dist/commands/members/remove.js +0 -3
- package/dist/commands/members/update.js +0 -3
- package/dist/commands/messages/create.js +6 -9
- package/dist/commands/messages/delete.js +0 -3
- package/dist/commands/messages/get.js +0 -5
- package/dist/commands/messages/list.js +5 -7
- package/dist/commands/messages/pin.js +0 -3
- package/dist/commands/messages/unfurl.js +0 -3
- package/dist/commands/messages/unpin.js +0 -3
- package/dist/commands/messages/update.js +5 -8
- package/dist/commands/oauth/token-info.js +0 -3
- package/dist/commands/profile/delete-avatar.js +0 -3
- package/dist/commands/profile/delete-status.js +0 -3
- package/dist/commands/profile/get.js +0 -4
- package/dist/commands/profile/update-avatar.js +0 -3
- package/dist/commands/profile/update-status.js +1 -4
- package/dist/commands/reactions/add.js +3 -6
- package/dist/commands/reactions/list.js +4 -2
- package/dist/commands/reactions/remove.js +3 -6
- package/dist/commands/read-member/list-readers.js +4 -5
- package/dist/commands/search/list-chats.js +4 -7
- package/dist/commands/search/list-messages.js +4 -5
- package/dist/commands/search/list-users.js +4 -7
- package/dist/commands/security/list.js +4 -7
- package/dist/commands/tasks/create.js +4 -7
- package/dist/commands/tasks/delete.js +0 -3
- package/dist/commands/tasks/get.js +0 -3
- package/dist/commands/tasks/list.js +4 -7
- package/dist/commands/tasks/update.js +5 -7
- package/dist/commands/threads/add.js +0 -4
- package/dist/commands/threads/list.js +4 -6
- package/dist/commands/upload.js +27 -8
- package/dist/commands/users/create.js +0 -5
- package/dist/commands/users/delete.js +0 -3
- package/dist/commands/users/get-status.js +0 -3
- package/dist/commands/users/get.js +0 -3
- package/dist/commands/users/list.js +4 -7
- package/dist/commands/users/remove-avatar.js +0 -3
- package/dist/commands/users/remove-status.js +0 -3
- package/dist/commands/users/update-avatar.js +0 -3
- package/dist/commands/users/update-status.js +1 -4
- package/dist/commands/users/update.js +5 -5
- package/dist/commands/views/open.js +1 -5
- package/dist/commands/views/submit-response.js +0 -3
- package/dist/data/alternatives.json +5 -9
- package/dist/data/changelog.json +177 -0
- package/dist/data/endpoints.json +1 -1
- package/dist/help.js +0 -1
- package/dist/hooks/command-not-found.js +0 -1
- package/dist/hooks/init.js +13 -5
- package/dist/lib/flags.js +25 -0
- package/dist/oauth.js +11 -5
- package/dist/profiles.js +22 -4
- package/dist/token-refresh.js +61 -14
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
- package/dist/commands/guide.js +0 -90
- package/dist/data/workflows.json +0 -1058
package/dist/data/changelog.json
CHANGED
|
@@ -1,4 +1,181 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "2026.10.4",
|
|
4
|
+
"date": "31 октября 2026",
|
|
5
|
+
"changes": [
|
|
6
|
+
{
|
|
7
|
+
"type": "-",
|
|
8
|
+
"command": "api",
|
|
9
|
+
"description": "Справка `--docs` и схема `--spec` показывают `dlp_rule_id` в деталях события `dlp_violation_detected` строкой, как его отдаёт API"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "+",
|
|
13
|
+
"command": "upload",
|
|
14
|
+
"description": "Флаг `--name` задаёт имя файла, которым заканчивается `key`: так данные из stdin получают расширение и уходят в сообщение под этим именем"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "-",
|
|
18
|
+
"command": "upload",
|
|
19
|
+
"description": "Файл, которого нет на диске, команда отклоняет до запроса подписи, в том числе с `--dry-run`"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "~",
|
|
23
|
+
"command": "doctor",
|
|
24
|
+
"description": "Проверяет тот же токен, что и остальные команды, в том же порядке: `--token`, `--profile`, `PACHCA_TOKEN`, `PACHCA_PROFILE`, активный профиль, поэтому в CI с одной `PACHCA_TOKEN` команда проходит"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "~",
|
|
28
|
+
"command": "doctor",
|
|
29
|
+
"description": "При ошибке хотя бы одной проверки команда завершается с кодом `1` в любом формате вывода, в том числе с `-o json`"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "~",
|
|
33
|
+
"command": "doctor",
|
|
34
|
+
"description": "Без файла конфига команда показывает путь, по которому его ищет"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"type": "-",
|
|
38
|
+
"description": "`--dry-run` показывает запрос без входа и без `PACHCA_TOKEN`, а токен в заголовке `Authorization` заменён маской"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "-",
|
|
42
|
+
"command": "files direct-url",
|
|
43
|
+
"description": "С `--dry-run` запрос показан без заголовка `Authorization`, как он и уходит в хранилище"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "~",
|
|
47
|
+
"command": "bots update, drafts update",
|
|
48
|
+
"description": "Слово `null` во флаге поля, которое принимает `null`, уходит в API как JSON null: `--kind null` удаляет входящий вебхук бота, а `--parent-message-id null` снимает ответ с черновика"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "-",
|
|
52
|
+
"command": "auth login",
|
|
53
|
+
"description": "Вход через браузер с `--quiet` печатает адрес и код подтверждения, а флаг убирает только строку ожидания и отчёт о входе"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "~",
|
|
57
|
+
"command": "auth login",
|
|
58
|
+
"description": "Пример в `--help` и подсказка при `--token -` без потока ввода передают токен из буфера обмена: `pbpaste | pachca auth login --token -`"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "-",
|
|
62
|
+
"command": "messages create, messages update, drafts create, drafts update, tasks create, tasks update",
|
|
63
|
+
"description": "Текст из потока ввода попадает в запрос, только когда поток не пуст, а с пустым потоком, как у скрипта или агента, команда отправляет поля из флагов"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "~",
|
|
67
|
+
"description": "Отказ `403` с `role_forbidden` в терминале объясняется словами: право у токена есть, но действие не разрешает роль, поэтому новый вход или токен не помогут. Вывод с `-o json` и в пайпе прежний."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "~",
|
|
71
|
+
"description": "Объяснение отказа `insufficient_scope` в терминале зависит от источника токена: с `--token` или `PACHCA_TOKEN` команда предлагает `pachca oauth token-info -o json`, а если право есть в сохранённом списке профиля, советует обновить его через `pachca auth status --remote`"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "~",
|
|
75
|
+
"description": "Когда вход через браузер завершён или отозван, сообщение и подсказка `pachca auth login` называют профиль, с которым шла команда"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "-",
|
|
79
|
+
"command": "api",
|
|
80
|
+
"description": "Эквивалентная команда в справке `--describe` повторяет пример запроса из спецификации и работает при копировании"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "-",
|
|
84
|
+
"command": "api",
|
|
85
|
+
"description": "Пример `pachca api POST /messages` в `--help` передаёт `message[entity_id]` в кавычках и работает при копировании, а описание команды и ошибка `--describe` для неизвестного пути говорят «метод»"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "~",
|
|
89
|
+
"command": "views open",
|
|
90
|
+
"description": "Выводит ответ API `{ \"success\": true }`"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "~",
|
|
94
|
+
"description": "Справка команд следует обновлённым описаниям API: удаление входящего вебхука, правило совпадения команд бота, правило упоминаний в тексте сообщения, `duration_ms` и `file_type` у файлов, срок ссылки на поток событий, напоминания вместо задач, поле `scopes` у `bot_token_updated` и другие поля деталей журнала аудита, значения настройки бота у `restricted_bot_tag_denied` в подсказке `--list-tags`, добавление участников в тред, создание треда, `--skip-invite-mentions`, правка без уведомления и список прочитавших"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "-",
|
|
98
|
+
"command": "api",
|
|
99
|
+
"description": "Справка `--docs` и схема `--spec` описывают `scopes` в деталях бота журнала аудита так, как его писал API до 7 октября 2026 года: список прав у `bot_token_created` и объект с `previous` и `new` у `bot_token_updated`"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "~",
|
|
103
|
+
"command": "search",
|
|
104
|
+
"description": "С `--all` команды поиска останавливаются по `has_next` и показывают в терминале, сколько результатов загружено из общего числа найденных"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "~",
|
|
108
|
+
"command": "api",
|
|
109
|
+
"description": "Справка `--docs` и схема `--spec` методов поиска показывают поле `has_next` в `meta.paginate`"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"version": "2026.10.3",
|
|
115
|
+
"date": "28 октября 2026",
|
|
116
|
+
"changes": [
|
|
117
|
+
{
|
|
118
|
+
"type": "~",
|
|
119
|
+
"command": "guide",
|
|
120
|
+
"description": "Команда убрана вместе со сценариями: как решать задачи в Пачке, агенту рассказывают скиллы (https://dev.pachca.com/guides/mcp/plugin), а флаги каждой команды показывает `pachca <команда> --help`"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "~",
|
|
124
|
+
"description": "Из `--help` команд убран блок примеров со сценариями"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"type": "~",
|
|
128
|
+
"command": "api",
|
|
129
|
+
"description": "`api ls` и справка `--describe`, `--spec`, `--docs` работают без токена: они читают встроенную спецификацию и в API не обращаются"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "+",
|
|
133
|
+
"command": "important-messages list, important-messages create, important-messages delete",
|
|
134
|
+
"description": "Новые команды — раздел «Важное» владельца токена: список отмеченных сообщений, добавление сообщения и удаление из раздела"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "+",
|
|
138
|
+
"command": "bots get-stream",
|
|
139
|
+
"description": "Новая команда — ссылка на поток событий бота"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "+",
|
|
143
|
+
"command": "users update",
|
|
144
|
+
"description": "Значение `guest` у `--role` вместе с флагом `--chat-ids` переводит сотрудника в гости"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"type": "+",
|
|
148
|
+
"command": "chats create",
|
|
149
|
+
"description": "Команда предупреждает в stderr об идентификаторах из `--group-tag-ids`, которых нет среди тегов пространства"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "+",
|
|
153
|
+
"description": "В выводе команд с сообщениями появилось поле `important`: сообщение в разделе «Важное» владельца токена"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "~",
|
|
157
|
+
"command": "auth logout",
|
|
158
|
+
"description": "После входа через браузер команда закрывает вход на сервере и при истёкшем токене: сначала обновляет его, потом отзывает свежий"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "~",
|
|
162
|
+
"command": "auth logout",
|
|
163
|
+
"description": "`token_revoked: true` значит, что вход на сервере закрыт, в том числе если его закрыли раньше, а при `false` закрыть вход не удалось, и его нужно отозвать в списке «Токены CLI»"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "~",
|
|
167
|
+
"description": "Ответы `500`, `502`, `503`, `504` и сетевую ошибку CLI повторяет до трёх раз только у запросов GET, PUT и DELETE, POST и PATCH после них не повторяются, а `504` с кодом `timeout` (поиск не уложился по времени) приходит ошибкой сразу"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "~",
|
|
171
|
+
"description": "Подсказки при опечатке в команде предлагают только существующие команды, без `pachca skill …`"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"type": "-",
|
|
175
|
+
"description": "Описание флага `--no-retry` уточнено: он отключает повторы после `429`, `5xx` и сетевой ошибки"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
2
179
|
{
|
|
3
180
|
"version": "2026.10.2",
|
|
4
181
|
"date": "21 октября 2026",
|