@pachca/cli 2026.3.5 → 2026.3.6

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,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.3.6 (15 марта 2026)
4
+
5
+ - **Изменено** (threads): Топик thread переименован в threads (pachca threads add, pachca threads get)
6
+
3
7
  ## 2026.3.5 (7 марта 2026)
4
8
 
5
9
  - **Изменено** (guide): Сценарии переписаны на CLI-примеры с подсказками вместо описаний API-методов
@@ -1,4 +1,15 @@
1
1
  [
2
+ {
3
+ "version": "2026.3.6",
4
+ "date": "15 марта 2026",
5
+ "changes": [
6
+ {
7
+ "type": "~",
8
+ "command": "threads",
9
+ "description": "Топик thread переименован в threads (pachca threads add, pachca threads get)"
10
+ }
11
+ ]
12
+ },
2
13
  {
3
14
  "version": "2026.3.5",
4
15
  "date": "7 марта 2026",
@@ -10599,288 +10599,6 @@
10599
10599
  "update.js"
10600
10600
  ]
10601
10601
  },
10602
- "thread:add": {
10603
- "aliases": [],
10604
- "args": {
10605
- "id": {
10606
- "description": "Идентификатор сообщения",
10607
- "name": "id",
10608
- "required": true
10609
- }
10610
- },
10611
- "description": "Новый тред",
10612
- "examples": [
10613
- "Ответить в тред (комментарий к сообщению):\n $ pachca thread add",
10614
- "Подписаться на тред сообщения:\n $ pachca thread add"
10615
- ],
10616
- "flags": {
10617
- "output": {
10618
- "char": "o",
10619
- "description": "Output format: table, json, yaml, csv",
10620
- "name": "output",
10621
- "hasDynamicHelp": false,
10622
- "multiple": false,
10623
- "options": [
10624
- "table",
10625
- "json",
10626
- "yaml",
10627
- "csv"
10628
- ],
10629
- "type": "option"
10630
- },
10631
- "columns": {
10632
- "char": "c",
10633
- "description": "Columns to display (comma-separated)",
10634
- "name": "columns",
10635
- "hasDynamicHelp": false,
10636
- "multiple": false,
10637
- "type": "option"
10638
- },
10639
- "no-header": {
10640
- "description": "Hide table header",
10641
- "name": "no-header",
10642
- "allowNo": false,
10643
- "type": "boolean"
10644
- },
10645
- "no-truncate": {
10646
- "description": "Do not truncate values in table",
10647
- "name": "no-truncate",
10648
- "allowNo": false,
10649
- "type": "boolean"
10650
- },
10651
- "profile": {
10652
- "char": "p",
10653
- "description": "Profile to use for this command",
10654
- "name": "profile",
10655
- "hasDynamicHelp": false,
10656
- "multiple": false,
10657
- "type": "option"
10658
- },
10659
- "token": {
10660
- "description": "Bearer token for this call (not saved)",
10661
- "name": "token",
10662
- "hasDynamicHelp": false,
10663
- "multiple": false,
10664
- "type": "option"
10665
- },
10666
- "quiet": {
10667
- "char": "q",
10668
- "description": "Suppress output except errors",
10669
- "name": "quiet",
10670
- "allowNo": false,
10671
- "type": "boolean"
10672
- },
10673
- "no-color": {
10674
- "description": "Disable color output",
10675
- "name": "no-color",
10676
- "allowNo": false,
10677
- "type": "boolean"
10678
- },
10679
- "verbose": {
10680
- "char": "v",
10681
- "description": "Show HTTP request/response details",
10682
- "name": "verbose",
10683
- "allowNo": false,
10684
- "type": "boolean"
10685
- },
10686
- "no-input": {
10687
- "description": "Disable interactive prompts",
10688
- "name": "no-input",
10689
- "allowNo": false,
10690
- "type": "boolean"
10691
- },
10692
- "dry-run": {
10693
- "description": "Show HTTP request without sending",
10694
- "name": "dry-run",
10695
- "allowNo": false,
10696
- "type": "boolean"
10697
- },
10698
- "timeout": {
10699
- "description": "Request timeout in seconds",
10700
- "name": "timeout",
10701
- "hasDynamicHelp": false,
10702
- "multiple": false,
10703
- "type": "option"
10704
- },
10705
- "no-retry": {
10706
- "description": "Disable auto-retry on 429/503",
10707
- "name": "no-retry",
10708
- "allowNo": false,
10709
- "type": "boolean"
10710
- },
10711
- "json": {
10712
- "description": "Output as JSON (alias for --output json)",
10713
- "hidden": true,
10714
- "name": "json",
10715
- "allowNo": false,
10716
- "type": "boolean"
10717
- }
10718
- },
10719
- "hasDynamicHelp": false,
10720
- "hiddenAliases": [],
10721
- "id": "thread:add",
10722
- "pluginAlias": "@pachca/cli",
10723
- "pluginName": "@pachca/cli",
10724
- "pluginType": "core",
10725
- "strict": true,
10726
- "enableJsonFlag": false,
10727
- "scope": "threads:create",
10728
- "apiMethod": "POST",
10729
- "apiPath": "/messages/{id}/thread",
10730
- "defaultColumns": [
10731
- "id",
10732
- "chat_id",
10733
- "message_id",
10734
- "message_chat_id",
10735
- "updated_at"
10736
- ],
10737
- "isESM": true,
10738
- "relativePath": [
10739
- "dist",
10740
- "commands",
10741
- "thread",
10742
- "add.js"
10743
- ]
10744
- },
10745
- "thread:get": {
10746
- "aliases": [],
10747
- "args": {
10748
- "id": {
10749
- "description": "Идентификатор треда",
10750
- "name": "id",
10751
- "required": true
10752
- }
10753
- },
10754
- "description": "Информация о треде",
10755
- "flags": {
10756
- "output": {
10757
- "char": "o",
10758
- "description": "Output format: table, json, yaml, csv",
10759
- "name": "output",
10760
- "hasDynamicHelp": false,
10761
- "multiple": false,
10762
- "options": [
10763
- "table",
10764
- "json",
10765
- "yaml",
10766
- "csv"
10767
- ],
10768
- "type": "option"
10769
- },
10770
- "columns": {
10771
- "char": "c",
10772
- "description": "Columns to display (comma-separated)",
10773
- "name": "columns",
10774
- "hasDynamicHelp": false,
10775
- "multiple": false,
10776
- "type": "option"
10777
- },
10778
- "no-header": {
10779
- "description": "Hide table header",
10780
- "name": "no-header",
10781
- "allowNo": false,
10782
- "type": "boolean"
10783
- },
10784
- "no-truncate": {
10785
- "description": "Do not truncate values in table",
10786
- "name": "no-truncate",
10787
- "allowNo": false,
10788
- "type": "boolean"
10789
- },
10790
- "profile": {
10791
- "char": "p",
10792
- "description": "Profile to use for this command",
10793
- "name": "profile",
10794
- "hasDynamicHelp": false,
10795
- "multiple": false,
10796
- "type": "option"
10797
- },
10798
- "token": {
10799
- "description": "Bearer token for this call (not saved)",
10800
- "name": "token",
10801
- "hasDynamicHelp": false,
10802
- "multiple": false,
10803
- "type": "option"
10804
- },
10805
- "quiet": {
10806
- "char": "q",
10807
- "description": "Suppress output except errors",
10808
- "name": "quiet",
10809
- "allowNo": false,
10810
- "type": "boolean"
10811
- },
10812
- "no-color": {
10813
- "description": "Disable color output",
10814
- "name": "no-color",
10815
- "allowNo": false,
10816
- "type": "boolean"
10817
- },
10818
- "verbose": {
10819
- "char": "v",
10820
- "description": "Show HTTP request/response details",
10821
- "name": "verbose",
10822
- "allowNo": false,
10823
- "type": "boolean"
10824
- },
10825
- "no-input": {
10826
- "description": "Disable interactive prompts",
10827
- "name": "no-input",
10828
- "allowNo": false,
10829
- "type": "boolean"
10830
- },
10831
- "dry-run": {
10832
- "description": "Show HTTP request without sending",
10833
- "name": "dry-run",
10834
- "allowNo": false,
10835
- "type": "boolean"
10836
- },
10837
- "timeout": {
10838
- "description": "Request timeout in seconds",
10839
- "name": "timeout",
10840
- "hasDynamicHelp": false,
10841
- "multiple": false,
10842
- "type": "option"
10843
- },
10844
- "no-retry": {
10845
- "description": "Disable auto-retry on 429/503",
10846
- "name": "no-retry",
10847
- "allowNo": false,
10848
- "type": "boolean"
10849
- },
10850
- "json": {
10851
- "description": "Output as JSON (alias for --output json)",
10852
- "hidden": true,
10853
- "name": "json",
10854
- "allowNo": false,
10855
- "type": "boolean"
10856
- }
10857
- },
10858
- "hasDynamicHelp": false,
10859
- "hiddenAliases": [],
10860
- "id": "thread:get",
10861
- "pluginAlias": "@pachca/cli",
10862
- "pluginName": "@pachca/cli",
10863
- "pluginType": "core",
10864
- "strict": true,
10865
- "enableJsonFlag": false,
10866
- "scope": "threads:read",
10867
- "apiMethod": "GET",
10868
- "apiPath": "/threads/{id}",
10869
- "defaultColumns": [
10870
- "id",
10871
- "chat_id",
10872
- "message_id",
10873
- "message_chat_id",
10874
- "updated_at"
10875
- ],
10876
- "isESM": true,
10877
- "relativePath": [
10878
- "dist",
10879
- "commands",
10880
- "thread",
10881
- "get.js"
10882
- ]
10883
- },
10884
10602
  "threads:add": {
10885
10603
  "aliases": [],
10886
10604
  "args": {
@@ -12722,5 +12440,5 @@
12722
12440
  ]
12723
12441
  }
12724
12442
  },
12725
- "version": "2026.3.5"
12443
+ "version": "2026.3.6"
12726
12444
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pachca/cli",
3
- "version": "2026.3.5",
3
+ "version": "2026.3.6",
4
4
  "description": "CLI для Pachca API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -85,7 +85,7 @@
85
85
  "tasks": {
86
86
  "description": "Напоминания"
87
87
  },
88
- "thread": {
88
+ "threads": {
89
89
  "description": "Треды (обсуждения)"
90
90
  },
91
91
  "users": {
@@ -1,35 +0,0 @@
1
- // Auto-generated from openapi.yaml — DO NOT EDIT
2
- import { Args } from '@oclif/core';
3
- import { BaseCommand } from '../../base-command.js';
4
- export default class ThreadAdd extends BaseCommand {
5
- static description = "Новый тред";
6
- static examples = [
7
- "Ответить в тред (комментарий к сообщению):\n $ pachca thread add",
8
- "Подписаться на тред сообщения:\n $ pachca thread add"
9
- ];
10
- static scope = "threads:create";
11
- static apiMethod = "POST";
12
- static apiPath = "/messages/{id}/thread";
13
- static defaultColumns = ["id", "chat_id", "message_id", "message_chat_id", "updated_at"];
14
- static args = {
15
- id: Args.integer({
16
- description: "Идентификатор сообщения",
17
- required: true,
18
- }),
19
- };
20
- static flags = {
21
- ...BaseCommand.baseFlags,
22
- };
23
- async run() {
24
- const { args, flags } = await this.parse(ThreadAdd);
25
- this.parsedFlags = flags;
26
- this.checkScope("threads:create");
27
- const { data } = await this.apiRequest({
28
- method: 'POST',
29
- path: `/messages/${args.id}/thread`,
30
- });
31
- const responseBody = data;
32
- const result = responseBody.data ?? responseBody;
33
- this.output(result);
34
- }
35
- }
@@ -1,31 +0,0 @@
1
- // Auto-generated from openapi.yaml — DO NOT EDIT
2
- import { Args } from '@oclif/core';
3
- import { BaseCommand } from '../../base-command.js';
4
- export default class ThreadGet extends BaseCommand {
5
- static description = "Информация о треде";
6
- static scope = "threads:read";
7
- static apiMethod = "GET";
8
- static apiPath = "/threads/{id}";
9
- static defaultColumns = ["id", "chat_id", "message_id", "message_chat_id", "updated_at"];
10
- static args = {
11
- id: Args.integer({
12
- description: "Идентификатор треда",
13
- required: true,
14
- }),
15
- };
16
- static flags = {
17
- ...BaseCommand.baseFlags,
18
- };
19
- async run() {
20
- const { args, flags } = await this.parse(ThreadGet);
21
- this.parsedFlags = flags;
22
- this.checkScope("threads:read");
23
- const { data } = await this.apiRequest({
24
- method: 'GET',
25
- path: `/threads/${args.id}`,
26
- });
27
- const responseBody = data;
28
- const result = responseBody.data ?? responseBody;
29
- this.output(result);
30
- }
31
- }