@giftsofprometheus/cli 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +146 -2
- package/dist/index.js +240 -0
- package/package.json +55 -4
- package/skills/giftsofprometheus/SKILL.md +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,147 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli"><img alt="Дары Прометея: доклады AI-конференций на русском" src=".github/assets/banner.jpg" width="100%"></a>
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
# Дары Прометея CLI: доклады AI-конференций на русском для вас и вашего AI-агента
|
|
6
|
+
|
|
7
|
+
**[Дары Прометея](https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli)** — каталог докладов мировых AI-конференций на русском языке: AI Engineer World's Fair, AI Engineer Summit, BAAI Conference (北京智源大会), Apsara Conference (云栖大会) и другие. У каждого доклада есть русское название, подробное описание с TL;DR, главы с таймкодами, профили спикеров и полный транскрипт.
|
|
8
|
+
|
|
9
|
+
Этот CLI открывает каталог для терминала и AI-агентов: Claude Code, Codex, Cursor и других. Агент сам подберёт доклады под вашу задачу, прочитает транскрипт и сохранит полезное в избранное вашего аккаунта на [giftsofprometheus.com](https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli).
|
|
10
|
+
|
|
11
|
+
<p>
|
|
12
|
+
<a href="https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli"><img alt="Каталог: giftsofprometheus.com" src="https://img.shields.io/badge/каталог-giftsofprometheus.com-173a63.svg?style=for-the-badge&labelColor=0a0f1c" height="28"></a>
|
|
13
|
+
<a href="https://github.com/timurkhakhalev/giftsofprometheus-cli/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/timurkhakhalev/giftsofprometheus-cli/ci.yml?branch=main&style=for-the-badge&labelColor=0a0f1c&color=173a63&label=CI" height="28"></a>
|
|
14
|
+
<a href="LICENSE"><img alt="Лицензия: Apache-2.0" src="https://img.shields.io/github/license/timurkhakhalev/giftsofprometheus-cli.svg?style=for-the-badge&labelColor=0a0f1c&color=173a63" height="28"></a>
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
## Зачем это нужно
|
|
18
|
+
|
|
19
|
+
- **Мировой опыт AI-инженерии на русском.** Больше 1400 докладов о кодинг-агентах, RAG, evals, MCP и архитектуре агентов. Не нужно смотреть часовые видео на английском или китайском, чтобы понять, стоит ли доклад вашего времени.
|
|
20
|
+
- **Ответ под вашу задачу, а не список ссылок.** Опишите агенту, над чем работаете. Он найдёт доклады, прочитает транскрипты и перескажет, что из них применимо у вас.
|
|
21
|
+
- **Один аккаунт для сайта и агента.** Что агент сохранил, появится в [избранном на сайте](https://giftsofprometheus.com/account?utm_source=github&utm_medium=readme&utm_campaign=cli). Интересы, которые вы указали [на сайте](https://giftsofprometheus.com/welcome?utm_source=github&utm_medium=readme&utm_campaign=cli), агент учитывает в подборке.
|
|
22
|
+
|
|
23
|
+
Удобнее читать глазами? Всё то же самое есть на [giftsofprometheus.com](https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli): [подбор докладов за минуту](https://giftsofprometheus.com/welcome?utm_source=github&utm_medium=readme&utm_campaign=cli), [персональная лента](https://giftsofprometheus.com/for-you?utm_source=github&utm_medium=readme&utm_campaign=cli) и [спикеры](https://giftsofprometheus.com/speakers?utm_source=github&utm_medium=readme&utm_campaign=cli).
|
|
24
|
+
|
|
25
|
+
## Установка
|
|
26
|
+
|
|
27
|
+
Нужен Node.js 22.12 или новее.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -g https://github.com/timurkhakhalev/giftsofprometheus-cli/releases/download/v0.1.1/giftsofprometheus-cli-0.1.1.tgz
|
|
31
|
+
giftsofprometheus doctor
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Пакет `@giftsofprometheus/cli` скоро появится в npm. Пока его нет, ставьте сборку из [последнего релиза](https://github.com/timurkhakhalev/giftsofprometheus-cli/releases/latest), как выше.
|
|
35
|
+
|
|
36
|
+
## Быстрый старт
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
giftsofprometheus talks search 'оценка агентов' # без аккаунта
|
|
40
|
+
giftsofprometheus talks get <slug> # описание, спикеры, темы, ссылка на видео
|
|
41
|
+
|
|
42
|
+
giftsofprometheus login # откроет браузер, подтвердите там код
|
|
43
|
+
giftsofprometheus talks content <slug> # полный транскрипт
|
|
44
|
+
giftsofprometheus favorites add <slug> # появится в избранном на сайте
|
|
45
|
+
giftsofprometheus feed # подборка по вашим интересам
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Для транскриптов, избранного и ленты нужен бесплатный аккаунт: [войдите на сайте](https://giftsofprometheus.com/login?utm_source=github&utm_medium=readme&utm_campaign=cli) по ссылке из письма, без пароля. `login` подключает к этому аккаунту устройство через подтверждение в браузере, токены копировать не нужно. Сессия живёт 30 дней и хранится в `$XDG_CONFIG_HOME/giftsofprometheus/credentials.json` (по умолчанию `~/.config/giftsofprometheus/`), читать её можете только вы. В [кабинете](https://giftsofprometheus.com/account?utm_source=github&utm_medium=readme&utm_campaign=cli) видны все подключённые устройства, любое можно отключить. `giftsofprometheus logout` отключает текущее.
|
|
49
|
+
|
|
50
|
+
## Для AI-агентов: Claude Code, Codex, Cursor
|
|
51
|
+
|
|
52
|
+
В репозитории есть skill: он объясняет агенту, когда и как пользоваться CLI. Поставить его можно через [skills](https://skills.sh):
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npx skills add timurkhakhalev/giftsofprometheus-cli
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
В Claude Code его можно поставить и как плагин:
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
/plugin marketplace add timurkhakhalev/giftsofprometheus-cli
|
|
62
|
+
/plugin install giftsofprometheus@giftsofprometheus
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Или добавьте строку в свой `AGENTS.md`:
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
Для поиска докладов AI-конференций и их транскриптов используй `giftsofprometheus`. Перед первым использованием выполни `giftsofprometheus skill` и следуй инструкции.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
`giftsofprometheus skill` печатает skill той же версии, что и установленный CLI, а `giftsofprometheus skill --path` — путь к его папке, чтобы сделать ссылку.
|
|
72
|
+
|
|
73
|
+
Примеры запросов агенту:
|
|
74
|
+
|
|
75
|
+
- «Найди доклады про оценку качества агентов и перескажи, как команды строят evals».
|
|
76
|
+
- «Что рассказывали на AI Engineer про MCP в продакшене? Сохрани два самых практичных доклада».
|
|
77
|
+
- «Подбери доклады под мою задачу: переводим поддержку на голосового агента».
|
|
78
|
+
|
|
79
|
+
По инструкции skill агент меняет избранное и интересы только по вашей просьбе. Поиск и чтение ничего не сохраняют, не лайкают и не скрывают.
|
|
80
|
+
|
|
81
|
+
## Что есть в каталоге
|
|
82
|
+
|
|
83
|
+
**Конференции:** [AI Engineer World's Fair 2026](https://giftsofprometheus.com/events/ai-engineer-world-s-fair-2026?utm_source=github&utm_medium=readme&utm_campaign=cli), [AI Engineer World's Fair 2025](https://giftsofprometheus.com/events/ai-engineer-world-s-fair-2025?utm_source=github&utm_medium=readme&utm_campaign=cli), [AI Engineer Europe 2026](https://giftsofprometheus.com/events/ai-engineer-europe-2026?utm_source=github&utm_medium=readme&utm_campaign=cli), [AI Engineer World's Fair 2024](https://giftsofprometheus.com/events/ai-engineer-world-s-fair-2024?utm_source=github&utm_medium=readme&utm_campaign=cli), [AI Engineer Code 2025](https://giftsofprometheus.com/events/ai-engineer-code-2025?utm_source=github&utm_medium=readme&utm_campaign=cli), [AI Engineer Summit 2025](https://giftsofprometheus.com/events/ai-engineer-summit-2025?utm_source=github&utm_medium=readme&utm_campaign=cli), [AI Engineer Summit 2023](https://giftsofprometheus.com/events/ai-engineer-summit-2023?utm_source=github&utm_medium=readme&utm_campaign=cli), [BAAI Conference 2026 · 北京智源大会](https://giftsofprometheus.com/events/baai-conference-2026?utm_source=github&utm_medium=readme&utm_campaign=cli), [Apsara Conference 2026 · 云栖大会](https://giftsofprometheus.com/events/apsara-conference-2026?utm_source=github&utm_medium=readme&utm_campaign=cli).
|
|
84
|
+
|
|
85
|
+
**Темы:**
|
|
86
|
+
|
|
87
|
+
| Раздел | Подтемы |
|
|
88
|
+
|---|---|
|
|
89
|
+
| Разработка с AI-агентами | [кодинг-агенты](https://giftsofprometheus.com/topics/coding-agents?utm_source=github&utm_medium=readme&utm_campaign=cli), [код-ревью и тесты](https://giftsofprometheus.com/topics/code-review-verification?utm_source=github&utm_medium=readme&utm_campaign=cli), [harness и skills](https://giftsofprometheus.com/topics/harness-skills?utm_source=github&utm_medium=readme&utm_campaign=cli), [спеки и SDD](https://giftsofprometheus.com/topics/spec-driven-development?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
90
|
+
| Архитектура агентов | [паттерны агентов](https://giftsofprometheus.com/topics/agent-patterns?utm_source=github&utm_medium=readme&utm_campaign=cli), [мультиагентность](https://giftsofprometheus.com/topics/multi-agent-orchestration?utm_source=github&utm_medium=readme&utm_campaign=cli), [контекст и память](https://giftsofprometheus.com/topics/context-memory?utm_source=github&utm_medium=readme&utm_campaign=cli), [MCP и A2A](https://giftsofprometheus.com/topics/tools-protocols?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
91
|
+
| Данные и знания | [RAG и эмбеддинги](https://giftsofprometheus.com/topics/rag-search?utm_source=github&utm_medium=readme&utm_campaign=cli), [документы и OCR](https://giftsofprometheus.com/topics/documents-ocr?utm_source=github&utm_medium=readme&utm_campaign=cli), [графы знаний](https://giftsofprometheus.com/topics/knowledge-graphs?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
92
|
+
| Качество и эксплуатация | [evals и бенчмарки](https://giftsofprometheus.com/topics/evals-benchmarks?utm_source=github&utm_medium=readme&utm_campaign=cli), [observability](https://giftsofprometheus.com/topics/observability-tracing?utm_source=github&utm_medium=readme&utm_campaign=cli), [инфраструктура](https://giftsofprometheus.com/topics/infrastructure-reliability?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
93
|
+
| Безопасность | [governance](https://giftsofprometheus.com/topics/security-governance?utm_source=github&utm_medium=readme&utm_campaign=cli), [доступ и секреты](https://giftsofprometheus.com/topics/access-auth?utm_source=github&utm_medium=readme&utm_campaign=cli), [песочницы](https://giftsofprometheus.com/topics/sandboxes-execution?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
94
|
+
| Модели | [обучение и RL](https://giftsofprometheus.com/topics/training-rl?utm_source=github&utm_medium=readme&utm_campaign=cli), [инференс и открытые модели](https://giftsofprometheus.com/topics/inference-open-models?utm_source=github&utm_medium=readme&utm_campaign=cli), [world models и роботы](https://giftsofprometheus.com/topics/world-models-robotics?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
95
|
+
| Интерфейсы и модальности | [голосовые агенты](https://giftsofprometheus.com/topics/voice-speech?utm_source=github&utm_medium=readme&utm_campaign=cli), [мультимодальность](https://giftsofprometheus.com/topics/multimodal-media?utm_source=github&utm_medium=readme&utm_campaign=cli), [computer use](https://giftsofprometheus.com/topics/computer-use?utm_source=github&utm_medium=readme&utm_campaign=cli), [UX AI-продуктов](https://giftsofprometheus.com/topics/ai-ux-design?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
96
|
+
| AI-продукт и бизнес | [запуск продукта](https://giftsofprometheus.com/topics/product-launch-growth?utm_source=github&utm_medium=readme&utm_campaign=cli), [экономика](https://giftsofprometheus.com/topics/pricing-economics?utm_source=github&utm_medium=readme&utm_campaign=cli), [отраслевые применения](https://giftsofprometheus.com/topics/industry-applications?utm_source=github&utm_medium=readme&utm_campaign=cli), [автоматизация](https://giftsofprometheus.com/topics/business-automation?utm_source=github&utm_medium=readme&utm_campaign=cli), [агентная коммерция](https://giftsofprometheus.com/topics/agentic-commerce?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
97
|
+
| AI в компании и карьера | [внедрение AI](https://giftsofprometheus.com/topics/ai-adoption-org?utm_source=github&utm_medium=readme&utm_campaign=cli), [карьера и стартапы](https://giftsofprometheus.com/topics/careers-startups?utm_source=github&utm_medium=readme&utm_campaign=cli) |
|
|
98
|
+
|
|
99
|
+
## Команды
|
|
100
|
+
|
|
101
|
+
С флагом `--json` любая команда печатает компактный JSON. Ошибка тогда выглядит как `{"error":{"message","status"}}`, а код выхода — 1.
|
|
102
|
+
|
|
103
|
+
| Команда | Что делает | Аккаунт |
|
|
104
|
+
|---|---|---|
|
|
105
|
+
| `talks search <запрос> [--page n]` | Поиск опубликованных докладов по названию, описанию, спикеру и теме | |
|
|
106
|
+
| `talks list [--page n]` | Каталог по страницам | |
|
|
107
|
+
| `talks get <slug-или-id>` | Доклад с описанием, спикерами, темами и видео | |
|
|
108
|
+
| `talks content <slug-или-id>` | Полный транскрипт на языке доклада | ✓ |
|
|
109
|
+
| `favorites list [--page n] [--limit n]` | Ваше избранное | ✓ |
|
|
110
|
+
| `favorites add <slug-или-id>` / `remove` | Добавить в избранное или убрать | ✓ |
|
|
111
|
+
| `profile get` | Ваши интересы и текущая задача | ✓ |
|
|
112
|
+
| `profile update --file <json>` | Заменить их содержимым JSON-файла | ✓ |
|
|
113
|
+
| `feed` | Подборка по вашему профилю | ✓ |
|
|
114
|
+
| `request <путь>` | GET-запрос только на чтение к `/api/knowledge/…` или `/api/account/…` | ✓ |
|
|
115
|
+
| `login`, `logout`, `whoami`, `doctor` | Вход, выход, текущий аккаунт, проверка настройки | |
|
|
116
|
+
| `skill [--path]` | Skill для агента | |
|
|
117
|
+
|
|
118
|
+
## Настройки
|
|
119
|
+
|
|
120
|
+
| Переменная | По умолчанию | |
|
|
121
|
+
|---|---|---|
|
|
122
|
+
| `GIFTSOFPROMETHEUS_URL` | `https://giftsofprometheus.com` | Адрес сервиса. HTTP без TLS разрешён только для `localhost` |
|
|
123
|
+
| `XDG_CONFIG_HOME` | `~/.config` | Где хранится сессия |
|
|
124
|
+
|
|
125
|
+
## Разработка
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
pnpm install
|
|
129
|
+
pnpm check # линтер с правилами качества, форматирование, типы (tsrs), сборка и тесты
|
|
130
|
+
node dist/index.js --help
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Устройство репозитория и что обновлять при каждом изменении — в [AGENTS.md](AGENTS.md).
|
|
134
|
+
|
|
135
|
+
## Участие
|
|
136
|
+
|
|
137
|
+
Об ошибках пишите в [Issues](https://github.com/timurkhakhalev/giftsofprometheus-cli/issues), идеи и вопросы — в [Discussions](https://github.com/timurkhakhalev/giftsofprometheus-cli/discussions). Pull requests репозиторий не принимает, подробнее в [CONTRIBUTING.md](CONTRIBUTING.md). Об уязвимостях сообщайте приватно, как описано в [SECURITY.md](SECURITY.md).
|
|
138
|
+
|
|
139
|
+
## Лицензия
|
|
140
|
+
|
|
141
|
+
Код CLI — [Apache-2.0](LICENSE). Каталог, описания и транскрипты принадлежат [Дарам Прометея](https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli) и авторам докладов.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
<p align="center">
|
|
146
|
+
<a href="https://giftsofprometheus.com/?utm_source=github&utm_medium=readme&utm_campaign=cli"><b>giftsofprometheus.com</b></a> — мировые знания об ИИ на русском
|
|
147
|
+
</p>
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { Command } from 'commander';
|
|
4
|
+
import { chmod, mkdir, readFile, writeFile, unlink } from 'node:fs/promises';
|
|
5
|
+
import { homedir } from 'node:os';
|
|
6
|
+
import { join } from 'node:path';
|
|
7
|
+
import { spawn } from 'node:child_process';
|
|
8
|
+
import { randomUUID } from 'node:crypto';
|
|
9
|
+
import { createRequire } from 'node:module';
|
|
10
|
+
import { fileURLToPath } from 'node:url';
|
|
11
|
+
const { version } = z.object({ version: z.string() }).parse(createRequire(import.meta.url)('../package.json'));
|
|
12
|
+
const program = new Command();
|
|
13
|
+
const base = (process.env.GIFTSOFPROMETHEUS_URL || 'https://giftsofprometheus.com').replace(/\/$/, '');
|
|
14
|
+
// The CLI talks only to the public Knowledge and account APIs
|
|
15
|
+
const publicApi = ['/api/knowledge/', '/api/account/', '/api/auth/device/'];
|
|
16
|
+
const directory = join(process.env.XDG_CONFIG_HOME || join(homedir(), '.config'), 'giftsofprometheus');
|
|
17
|
+
const credentials = join(directory, 'credentials.json');
|
|
18
|
+
async function stored() {
|
|
19
|
+
try {
|
|
20
|
+
const parsed = z.object({ base: z.literal(base), token: z.string() }).safeParse(JSON.parse(await readFile(credentials, 'utf8')));
|
|
21
|
+
return parsed.success ? parsed.data : null;
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class ApiError extends Error {
|
|
28
|
+
status;
|
|
29
|
+
constructor(message, status = 1) {
|
|
30
|
+
super(message);
|
|
31
|
+
this.status = status;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async function request(path, method = 'GET', body, authenticated = true) {
|
|
35
|
+
if (!path.startsWith('/') || path.includes('\\'))
|
|
36
|
+
throw new ApiError('Invalid API path');
|
|
37
|
+
const target = new URL(base + path);
|
|
38
|
+
// Checked after URL normalization, so `..` cannot leave the public API
|
|
39
|
+
if (target.origin !== new URL(base).origin || !publicApi.some(prefix => target.pathname.startsWith(prefix)))
|
|
40
|
+
throw new ApiError(`Path must start with ${publicApi.join(', ')}`);
|
|
41
|
+
if (target.protocol !== 'https:' && !['localhost', '127.0.0.1', '[::1]'].includes(target.hostname))
|
|
42
|
+
throw new ApiError('HTTPS is required outside localhost');
|
|
43
|
+
const credential = authenticated ? await stored() : null;
|
|
44
|
+
const headers = new Headers({ 'Content-Type': 'application/json', 'X-Knowledge-Client': 'agent', 'User-Agent': `giftsofprometheus/${version}` });
|
|
45
|
+
if (credential)
|
|
46
|
+
headers.set('Authorization', `Bearer ${credential.token}`);
|
|
47
|
+
const response = await fetch(target, { method, headers, redirect: 'error', ...(body === undefined ? {} : { body: JSON.stringify(body) }) });
|
|
48
|
+
const data = await response.json().catch(() => ({}));
|
|
49
|
+
if (!response.ok) {
|
|
50
|
+
const failure = z.object({ error_description: z.string().optional(), error: z.string().optional() }).safeParse(data);
|
|
51
|
+
throw new ApiError(failure.success ? failure.data.error_description || failure.data.error || `HTTP ${response.status}` : `HTTP ${response.status}`, response.status);
|
|
52
|
+
}
|
|
53
|
+
return data;
|
|
54
|
+
}
|
|
55
|
+
function out(value) {
|
|
56
|
+
console.log(JSON.stringify(value, null, program.opts().json ? 0 : 2));
|
|
57
|
+
}
|
|
58
|
+
function run(fn) {
|
|
59
|
+
return async (...args) => {
|
|
60
|
+
try {
|
|
61
|
+
out(await fn(...args));
|
|
62
|
+
}
|
|
63
|
+
catch (e) {
|
|
64
|
+
const message = e instanceof Error ? e.message : 'Unknown error';
|
|
65
|
+
if (program.opts().json)
|
|
66
|
+
console.log(JSON.stringify({ error: { message, status: e instanceof ApiError ? e.status : 1 } }));
|
|
67
|
+
else
|
|
68
|
+
console.error(message);
|
|
69
|
+
process.exitCode = 1;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
74
|
+
async function login() {
|
|
75
|
+
const data = z
|
|
76
|
+
.object({ user_code: z.string(), device_code: z.string(), interval: z.number().optional(), expires_in: z.number().optional() })
|
|
77
|
+
.parse(await request('/api/auth/device/code', 'POST', { client_id: 'giftsofprometheus' }, false));
|
|
78
|
+
const code = String(data.user_code), device = String(data.device_code);
|
|
79
|
+
const verification = new URL('/device', base);
|
|
80
|
+
verification.searchParams.set('user_code', code);
|
|
81
|
+
console.error(`Open ${verification} and confirm the code ${code}`);
|
|
82
|
+
const opener = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'cmd' : 'xdg-open';
|
|
83
|
+
const child = spawn(opener, process.platform === 'win32' ? ['/c', 'start', '', verification.toString()] : [verification.toString()], {
|
|
84
|
+
detached: true,
|
|
85
|
+
stdio: 'ignore',
|
|
86
|
+
});
|
|
87
|
+
child.on('error', () => { });
|
|
88
|
+
child.unref();
|
|
89
|
+
let interval = Number(data.interval || 5);
|
|
90
|
+
const deadline = Date.now() + Number(data.expires_in || 900) * 1000;
|
|
91
|
+
while (Date.now() < deadline) {
|
|
92
|
+
await sleep(interval * 1000);
|
|
93
|
+
try {
|
|
94
|
+
const token = z
|
|
95
|
+
.object({ access_token: z.string(), expires_in: z.number().optional() })
|
|
96
|
+
.parse(await request('/api/auth/device/token', 'POST', { grant_type: 'urn:ietf:params:oauth:grant-type:device_code', device_code: device, client_id: 'giftsofprometheus' }, false));
|
|
97
|
+
await mkdir(directory, { recursive: true, mode: 0o700 });
|
|
98
|
+
await chmod(directory, 0o700);
|
|
99
|
+
await writeFile(credentials, JSON.stringify({ base, token: token.access_token }), { mode: 0o600 });
|
|
100
|
+
await chmod(credentials, 0o600);
|
|
101
|
+
return { signedIn: true, expiresIn: token.expires_in };
|
|
102
|
+
}
|
|
103
|
+
catch (e) {
|
|
104
|
+
const message = e instanceof Error ? e.message : '';
|
|
105
|
+
if (/slow.down|too frequently/i.test(message)) {
|
|
106
|
+
interval += 5;
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (/authorization.pending|pending/i.test(message))
|
|
110
|
+
continue;
|
|
111
|
+
throw e;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
throw new ApiError('Device code expired');
|
|
115
|
+
}
|
|
116
|
+
async function resolveTalk(value) {
|
|
117
|
+
return z
|
|
118
|
+
.object({ id: z.number(), slug: z.string() })
|
|
119
|
+
.passthrough()
|
|
120
|
+
.parse(await request(`/api/knowledge/talks/${encodeURIComponent(value)}`, 'GET', undefined, false));
|
|
121
|
+
}
|
|
122
|
+
async function event(talk, type) {
|
|
123
|
+
const item = await resolveTalk(talk);
|
|
124
|
+
return request('/api/knowledge/events', 'POST', [{ id: randomUUID(), type, talkId: item.id, context: 'talk_page' }]);
|
|
125
|
+
}
|
|
126
|
+
program.exitOverride();
|
|
127
|
+
program.configureOutput({
|
|
128
|
+
outputError: (str, write) => {
|
|
129
|
+
if (!program.opts().json)
|
|
130
|
+
write(str);
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
program.name('giftsofprometheus').description('Gifts of Prometheus catalog and personal account').version(version).option('--json', 'machine-readable output');
|
|
134
|
+
program.command('login').description('Authorize this CLI in a browser').action(run(login));
|
|
135
|
+
program
|
|
136
|
+
.command('logout')
|
|
137
|
+
.description('Revoke this CLI session')
|
|
138
|
+
.action(run(async () => {
|
|
139
|
+
try {
|
|
140
|
+
await request('/api/account/logout', 'POST');
|
|
141
|
+
}
|
|
142
|
+
catch (e) {
|
|
143
|
+
if (!(e instanceof ApiError) || e.status !== 401)
|
|
144
|
+
throw e;
|
|
145
|
+
}
|
|
146
|
+
await unlink(credentials).catch(() => { });
|
|
147
|
+
return { signedOut: true };
|
|
148
|
+
}));
|
|
149
|
+
program
|
|
150
|
+
.command('whoami')
|
|
151
|
+
.description('Show the current account')
|
|
152
|
+
.action(run(() => request('/api/account/me')));
|
|
153
|
+
program
|
|
154
|
+
.command('doctor')
|
|
155
|
+
.description('Check configuration, server and authorization')
|
|
156
|
+
.action(run(async () => {
|
|
157
|
+
const credential = await stored();
|
|
158
|
+
let reachable = false, authenticated = false;
|
|
159
|
+
try {
|
|
160
|
+
await request('/api/knowledge/talks', 'GET', undefined, false);
|
|
161
|
+
reachable = true;
|
|
162
|
+
if (credential) {
|
|
163
|
+
await request('/api/account/me');
|
|
164
|
+
authenticated = true;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
catch { }
|
|
168
|
+
return {
|
|
169
|
+
base,
|
|
170
|
+
reachable,
|
|
171
|
+
authenticated,
|
|
172
|
+
authSource: credential ? 'config' : 'missing',
|
|
173
|
+
configPath: credentials,
|
|
174
|
+
nextStep: !reachable ? 'Check GIFTSOFPROMETHEUS_URL and server availability' : !authenticated ? 'Run giftsofprometheus login' : null,
|
|
175
|
+
};
|
|
176
|
+
}));
|
|
177
|
+
const talks = program.command('talks').description('Browse talks');
|
|
178
|
+
talks
|
|
179
|
+
.command('list')
|
|
180
|
+
.option('--page <page>', 'page number', '1')
|
|
181
|
+
.action(run((options) => request(`/api/knowledge/talks?page=${encodeURIComponent(options.page)}`, 'GET', undefined, false)));
|
|
182
|
+
talks
|
|
183
|
+
.command('search')
|
|
184
|
+
.argument('<query>')
|
|
185
|
+
.option('--page <page>', 'page number', '1')
|
|
186
|
+
.action(run((query, options) => request(`/api/knowledge/talks?q=${encodeURIComponent(query)}&page=${encodeURIComponent(options.page)}`, 'GET', undefined, false)));
|
|
187
|
+
talks.command('get').argument('<slug-or-id>').action(run(resolveTalk));
|
|
188
|
+
talks
|
|
189
|
+
.command('content')
|
|
190
|
+
.argument('<slug-or-id>')
|
|
191
|
+
.action(run(async (id) => {
|
|
192
|
+
const talk = await resolveTalk(id);
|
|
193
|
+
return request(`/api/knowledge/talks/${encodeURIComponent(String(talk.slug))}/content`, 'POST');
|
|
194
|
+
}));
|
|
195
|
+
const favorites = program.command('favorites').description('Manage bookmarks');
|
|
196
|
+
favorites
|
|
197
|
+
.command('list')
|
|
198
|
+
.option('--page <page>', 'page number', '1')
|
|
199
|
+
.option('--limit <limit>', 'page size, max 50', '20')
|
|
200
|
+
.action(run((o) => request(`/api/knowledge/favorites?page=${encodeURIComponent(o.page)}&limit=${encodeURIComponent(o.limit)}`)));
|
|
201
|
+
favorites
|
|
202
|
+
.command('add')
|
|
203
|
+
.argument('<slug-or-id>')
|
|
204
|
+
.action(run((id) => event(id, 'bookmark')));
|
|
205
|
+
favorites
|
|
206
|
+
.command('remove')
|
|
207
|
+
.argument('<slug-or-id>')
|
|
208
|
+
.action(run((id) => event(id, 'unbookmark')));
|
|
209
|
+
const profile = program.command('profile').description('Read or update interests');
|
|
210
|
+
profile.command('get').action(run(() => request('/api/knowledge/profile')));
|
|
211
|
+
profile
|
|
212
|
+
.command('update')
|
|
213
|
+
.requiredOption('--file <path>', 'JSON with interests and queryText')
|
|
214
|
+
.action(run(async (o) => request('/api/knowledge/profile', 'PUT', JSON.parse(await readFile(o.file, 'utf8')))));
|
|
215
|
+
program
|
|
216
|
+
.command('feed')
|
|
217
|
+
.description('Get personalized recommendations')
|
|
218
|
+
.action(run(() => request('/api/knowledge/feed')));
|
|
219
|
+
program
|
|
220
|
+
.command('request')
|
|
221
|
+
.description('Make an authenticated GET request to a Knowledge API path, e.g. /api/knowledge/profile')
|
|
222
|
+
.argument('<path>')
|
|
223
|
+
.action(run((path) => request(path)));
|
|
224
|
+
program
|
|
225
|
+
.command('skill')
|
|
226
|
+
.description('Print the agent skill that matches this CLI version')
|
|
227
|
+
.option('--path', 'print the skill directory instead, for linking into an agent')
|
|
228
|
+
.action(async (options) => {
|
|
229
|
+
const skill = fileURLToPath(new URL('../skills/giftsofprometheus/', import.meta.url));
|
|
230
|
+
process.stdout.write(options.path ? `${skill}\n` : await readFile(join(skill, 'SKILL.md'), 'utf8'));
|
|
231
|
+
});
|
|
232
|
+
program.parseAsync().catch(e => {
|
|
233
|
+
if (e.code === 'commander.helpDisplayed' || e.code === 'commander.version')
|
|
234
|
+
return;
|
|
235
|
+
if (program.opts().json)
|
|
236
|
+
console.log(JSON.stringify({ error: { message: e.message, status: 1 } }));
|
|
237
|
+
else if (!e.code?.startsWith('commander.'))
|
|
238
|
+
console.error(e.message);
|
|
239
|
+
process.exitCode = 1;
|
|
240
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@giftsofprometheus/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Search AI conference talks, read transcripts, and manage your Gifts of Prometheus favorites from the shell or an AI agent",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agents",
|
|
7
|
+
"ai",
|
|
8
|
+
"claude-code",
|
|
9
|
+
"cli",
|
|
10
|
+
"codex",
|
|
11
|
+
"conference-talks",
|
|
12
|
+
"skill",
|
|
13
|
+
"transcripts"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/timurkhakhalev/giftsofprometheus-cli#readme",
|
|
16
|
+
"bugs": "https://github.com/timurkhakhalev/giftsofprometheus-cli/issues",
|
|
17
|
+
"license": "Apache-2.0",
|
|
18
|
+
"author": "Timur Khakhalev",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/timurkhakhalev/giftsofprometheus-cli.git"
|
|
22
|
+
},
|
|
23
|
+
"bin": {
|
|
24
|
+
"giftsofprometheus": "dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"skills"
|
|
29
|
+
],
|
|
30
|
+
"type": "module",
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsrs -p tsconfig.json && chmod +x dist/index.js",
|
|
33
|
+
"typecheck": "tsrs -p tsconfig.json --noEmit",
|
|
34
|
+
"lint": "oxlint . --max-warnings 0",
|
|
35
|
+
"format": "oxfmt --check .",
|
|
36
|
+
"format:fix": "oxfmt --write .",
|
|
37
|
+
"test": "pnpm build && node --test tests/*.test.mjs",
|
|
38
|
+
"check": "pnpm lint && pnpm format && pnpm typecheck && pnpm test:quality && pnpm test",
|
|
39
|
+
"test:quality": "node --test tools/typescript-quality/verify.test.mjs",
|
|
40
|
+
"prepublishOnly": "pnpm check"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"commander": "^15.0.0",
|
|
44
|
+
"zod": "^4.6.7"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@oxlint/plugins": "1.91.0",
|
|
48
|
+
"@types/node": "^22.20.5",
|
|
49
|
+
"oxfmt": "0.76.0",
|
|
50
|
+
"oxlint": "1.91.0",
|
|
51
|
+
"tsrs": "0.20.1-ts7.1.0-beta"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=22.12"
|
|
55
|
+
},
|
|
56
|
+
"packageManager": "pnpm@10.19.0"
|
|
57
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: giftsofprometheus
|
|
3
|
+
description: Find AI conference talks (AI Engineer, BAAI, Apsara and others) with Russian summaries, read their full transcripts, and manage the signed-in user's favorites, interests and personal feed through the giftsofprometheus CLI. Use when the user asks for talks, speakers or transcripts on an AI engineering topic, or wants to save, list or remove favorites on Gifts of Prometheus.
|
|
4
|
+
allowed-tools: Bash(giftsofprometheus:*)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Gifts of Prometheus
|
|
8
|
+
|
|
9
|
+
[Gifts of Prometheus](https://giftsofprometheus.com) is a catalog of AI conference talks with Russian titles and summaries. The `giftsofprometheus` CLI reads it and acts for the signed-in user.
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
Run `command -v giftsofprometheus`. If it is missing, ask the user to install it as described in https://github.com/timurkhakhalev/giftsofprometheus-cli#install. Then run `giftsofprometheus --json doctor`:
|
|
14
|
+
|
|
15
|
+
- `reachable: false`: the service is unavailable; report it and stop.
|
|
16
|
+
- `authenticated: false`: search and talk metadata still work. For transcripts, favorites, interests and the feed, ask the user to run `giftsofprometheus login` and confirm the code in their browser.
|
|
17
|
+
|
|
18
|
+
The CLI stores its session outside the project. Never print, copy or ask for it.
|
|
19
|
+
|
|
20
|
+
## Read
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
giftsofprometheus --json talks search 'agent evaluation' # published talks by title, summary, speaker or topic
|
|
24
|
+
giftsofprometheus --json talks list --page 2 # the whole catalog, page by page
|
|
25
|
+
giftsofprometheus --json talks get <slug-or-id> # one talk: summary, speakers, topics, publication
|
|
26
|
+
giftsofprometheus --json talks content <slug-or-id> # full transcript, requires login
|
|
27
|
+
giftsofprometheus --json feed # personal recommendations, requires login
|
|
28
|
+
giftsofprometheus --json favorites list # saved talks, requires login
|
|
29
|
+
giftsofprometheus --json profile get # interests and current task, requires login
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
- Lists are paginated: check `totalPages` and pass `--page`.
|
|
33
|
+
- Search and use the returned `slug` or `id` for exact reads.
|
|
34
|
+
- A transcript is in the talk's original language. Segment timecodes are in milliseconds from the start of the talk. When a talk is a part of a longer recording, `sourceRange` gives its bounds in that recording. A talk without a transcript returns an empty array.
|
|
35
|
+
- `request <path>` makes a read-only GET to a path under `/api/knowledge/` or `/api/account/` that no command covers.
|
|
36
|
+
|
|
37
|
+
## Change
|
|
38
|
+
|
|
39
|
+
Change the user's data only when they ask for that change:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
giftsofprometheus --json favorites add <slug-or-id>
|
|
43
|
+
giftsofprometheus --json favorites remove <slug-or-id>
|
|
44
|
+
giftsofprometheus --json profile update --file profile.json
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Before `profile update`, read `profile get` and keep the fields the user did not ask to change. Reading, searching or opening a transcript is never approval to save a talk, react to it or change interests.
|
|
48
|
+
|
|
49
|
+
## Errors
|
|
50
|
+
|
|
51
|
+
With `--json` a failure prints `{"error":{"message","status"}}` and exits with code 1. Status 401 means the session is missing, expired or revoked: ask the user to run `giftsofprometheus login` again.
|