@deerdesign/deertools 1.0.4 → 1.2.0
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/README.md +133 -16
- package/docs/prezentacja-it-deertools.html +645 -0
- package/docs/prezentacja-it-deertools.md +182 -0
- package/package.json +2 -1
- package/src/audit.js +65 -0
- package/src/baselinker/browser-login.js +214 -0
- package/src/baselinker/catalog-tools.js +457 -0
- package/src/baselinker/client.js +136 -0
- package/src/baselinker/crawler.js +157 -0
- package/src/baselinker/index.js +24 -0
- package/src/baselinker/mcp-server.js +153 -0
- package/src/baselinker/methods-index.json +1226 -0
- package/src/baselinker/schema-cache.json +6342 -0
- package/src/baselinker/ui.js +386 -0
- package/src/baselinker-commands.js +180 -0
- package/src/cli.js +22 -2
- package/src/commands.js +302 -35
- package/src/completion.js +189 -0
- package/src/credentials.js +39 -2
- package/src/doctor.js +286 -0
- package/src/domain-commands.js +288 -0
- package/src/formatters.js +50 -0
- package/src/mcp-stdio.js +197 -0
- package/src/profiles.js +78 -0
- package/src/registry.js +22 -1
- package/src/skill-commands.js +223 -0
- package/src/skills-hub.js +201 -0
- package/src/tui.js +139 -0
package/README.md
CHANGED
|
@@ -13,8 +13,17 @@ Log in once from your computer, and grant your AI coding agent (Antigravity, Cur
|
|
|
13
13
|
| `deliveries` | `dostawy` | DeerTools Deliveries | `https://ship.deergroup.pl/` | Logistics, site delivery schedules, supplier shipments, tracking |
|
|
14
14
|
| `supplier` | — | Supplier Hub | `https://supplier.deergroup.pl/` | Supplier orders, line items, claims, delivery status |
|
|
15
15
|
| `rendermind` | — | RenderMind | `https://rendermind.deergroup.pl/` | pCon 3D render pipelines, AI image generation, floor plan proxies |
|
|
16
|
+
| `skills` | `hub`, `skill` | DeerSkills Hub | `https://skills.deergroup.pl/` | AI Agent Skills & MCP registry, versioning, bundles & promotion workflow |
|
|
16
17
|
|
|
17
|
-
*(Both English names like `catalog`, `estimate`, `deliveries` and legacy Polish names like `katalog`, `kosztorys`, `dostawy` are supported interchangeably).*
|
|
18
|
+
*(Both English names like `catalog`, `estimate`, `deliveries`, `skills` and legacy Polish names like `katalog`, `kosztorys`, `dostawy`, `umiejetnosci` are supported interchangeably).*
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 📊 Prezentacja dla Zespołu IT
|
|
23
|
+
|
|
24
|
+
Dedykowana prezentacja architektoniczna i wdrożeniowa dla zespołów deweloperskich i DevOps:
|
|
25
|
+
- 🌐 **[Slajdy interaktywne HTML (Reveal.js)](./docs/prezentacja-it-deertools.html)** — uruchom w dowolnej przeglądarce (`Space` / strzałki do nawigacji, `Esc` do widoku miniatur kafelkowych, `Cmd+P` do druku/eksportu PDF).
|
|
26
|
+
- 📝 **[Wersja tekstowa Markdown](./docs/prezentacja-it-deertools.md)** — do szybkiego czytania bezpośrednio w GitHubie.
|
|
18
27
|
|
|
19
28
|
---
|
|
20
29
|
|
|
@@ -57,11 +66,13 @@ deertools login estimate # or: deertools login kosztorys
|
|
|
57
66
|
deertools login deliveries # or: deertools login dostawy
|
|
58
67
|
deertools login supplier
|
|
59
68
|
deertools login rendermind
|
|
69
|
+
deertools login skills # or: deertools login hub
|
|
60
70
|
|
|
61
71
|
# Request read + write scopes:
|
|
62
72
|
deertools login catalog --write
|
|
73
|
+
deertools login skills --write
|
|
63
74
|
|
|
64
|
-
# Interactive login across all
|
|
75
|
+
# Interactive login across all 6 products sequentially:
|
|
65
76
|
deertools login all
|
|
66
77
|
|
|
67
78
|
# Check current authentication status and expiration:
|
|
@@ -116,26 +127,132 @@ deertools api rendermind POST /api/v1/visualizations --data '{"prompt":"Modern S
|
|
|
116
127
|
deertools api rendermind POST /api/v1/visualizations --data-file request.json
|
|
117
128
|
```
|
|
118
129
|
|
|
119
|
-
### 3. Specialized Helpers
|
|
130
|
+
### 3. Specialized Helpers & Domain Commands
|
|
131
|
+
|
|
132
|
+
DeerTools CLI provides first-class domain commands with colored table outputs and JSON flags:
|
|
120
133
|
|
|
121
134
|
```bash
|
|
122
|
-
#
|
|
135
|
+
# 1. Environment & API Doctor:
|
|
136
|
+
deertools doctor
|
|
137
|
+
deertools doctor --json
|
|
138
|
+
|
|
139
|
+
# 2. Shell Autocompletion (Zsh, Bash, Fish):
|
|
140
|
+
deertools completion install # automatically configures ~/.zshrc or ~/.bashrc
|
|
141
|
+
|
|
142
|
+
# 3. Catalog (Material Specs & Products):
|
|
143
|
+
deertools catalog search "bateria nero" --package modern-life --limit 10
|
|
144
|
+
deertools catalog get <sku_or_uuid>
|
|
145
|
+
deertools catalog categories
|
|
146
|
+
deertools catalog manufacturers
|
|
147
|
+
|
|
148
|
+
# 4. Deliveries (Logistics & Shipments):
|
|
149
|
+
deertools deliveries list --status active
|
|
150
|
+
deertools deliveries track <tracking_number>
|
|
151
|
+
deertools deliveries suppliers
|
|
152
|
+
|
|
153
|
+
# 5. Estimate (Cost Calculations & Floor Plan AI):
|
|
154
|
+
deertools estimate calculate 64.5 modern_life
|
|
155
|
+
deertools estimate margins 64.5
|
|
123
156
|
deertools estimate --file floorplan.pdf --kitchen 6
|
|
124
157
|
|
|
125
|
-
#
|
|
126
|
-
deertools
|
|
127
|
-
deertools
|
|
158
|
+
# 6. Supplier Hub (Discounts & Price Chains):
|
|
159
|
+
deertools supplier discounts Flügger --postal_code 00-001
|
|
160
|
+
deertools supplier markups warszawa
|
|
161
|
+
deertools supplier calculate 1000 --discount 35 --markup 25
|
|
162
|
+
|
|
163
|
+
# 7. RenderMind (Interior Styles & Presets):
|
|
164
|
+
deertools rendermind styles
|
|
165
|
+
|
|
166
|
+
# 8. BaseLinker Hub & MCP Proxy:
|
|
167
|
+
deertools baselinker auth <X-BLToken> # Zapisz token w credentials.json
|
|
168
|
+
deertools baselinker test # Sprawdź połączenie i listę katalogów
|
|
169
|
+
deertools baselinker serve --port 3456 # Uruchom lokalny dashboard Web UI + MCP SSE
|
|
170
|
+
deertools baselinker mcp # Mostek MCP stdio (Cursor / Claude Desktop)
|
|
171
|
+
deertools baselinker sync-schema # Pobierz 204 metod z api.baselinker.com
|
|
172
|
+
deertools baselinker search "relations" # Wyszukaj metody i schematy parametrów
|
|
173
|
+
deertools baselinker call getOrders # Bezpośrednie wywołanie API z terminala
|
|
174
|
+
deertools baselinker catalog search 105 "dąb" # Wyszukaj produkty w katalogu BaseLinkera
|
|
175
|
+
|
|
176
|
+
# 9. Local Stdio MCP Bridge (for Claude Desktop, Ollama, local LLM tools):
|
|
177
|
+
deertools mcp serve
|
|
178
|
+
|
|
179
|
+
# 10. Audit Log:
|
|
180
|
+
deertools audit --limit 25
|
|
181
|
+
deertools audit --clear
|
|
182
|
+
|
|
183
|
+
# 11. Multi-Profile Management:
|
|
184
|
+
deertools profile list
|
|
185
|
+
deertools profile use staging
|
|
186
|
+
|
|
187
|
+
# 12. AI Agent Skills (DeerSkills Hub):
|
|
188
|
+
deertools skill list # Wyświetl skille (oficjalne globalne i Twoje)
|
|
189
|
+
deertools skill search "kosztorys" # Wyszukaj skille po nazwie, tagu lub opisie
|
|
190
|
+
deertools skill install deer-kosztorys # Zainstaluj skill w ~/.gemini/antigravity/skills lub .agents
|
|
191
|
+
deertools skill install deer-kosztorys --version 1.0.0
|
|
192
|
+
deertools skill install all # Zainstaluj wszystkie oficjalne skille Deer Design
|
|
193
|
+
deertools skill push ./my-skill # Opublikuj nową wersję z automatycznym skanerem sekretów
|
|
194
|
+
deertools skill push ./my-skill --bump minor # Automatyczne podbicie wersji SemVer
|
|
195
|
+
deertools skill update deer-kosztorys # Zaktualizuj zainstalowany skill do najnowszej wersji
|
|
196
|
+
deertools skill update # Zaktualizuj wszystkie zainstalowane skille
|
|
197
|
+
deertools skill promote my-skill # Zgłoś wniosek do admina o nominację do globalnego katalogu
|
|
198
|
+
|
|
199
|
+
# 13. AI Agent MCP Registry & Configuration:
|
|
200
|
+
deertools mcp list # Lista dostępnych serwerów MCP w ekosystemie
|
|
201
|
+
deertools mcp config # Wygeneruj konfigurację JSON dla Cursor, Claude, Antigravity
|
|
202
|
+
deertools mcp install # Automatycznie dopisz konfigurację do narzędzi AI
|
|
203
|
+
```
|
|
128
204
|
|
|
129
|
-
|
|
130
|
-
deertools skill install all --agent claude # ~/.claude/skills/
|
|
131
|
-
deertools skill install all --agent codex # ~/.codex/skills/
|
|
132
|
-
deertools skill install all --agent hermes # ~/.hermes/skills/
|
|
133
|
-
deertools skill install all --agent cursor # .cursor/rules/*.mdc
|
|
134
|
-
deertools skill install all --agent antigravity # ~/.gemini/config/skills/
|
|
205
|
+
---
|
|
135
206
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
207
|
+
## BaseLinker MCP Proxy & Catalog Management
|
|
208
|
+
|
|
209
|
+
`@deerdesign/deertools` includes a built-in, local **BaseLinker MCP Proxy & Hub** providing deep catalog management:
|
|
210
|
+
|
|
211
|
+
1. **Product Catalog & Variations**:
|
|
212
|
+
- `bl_catalog_get_product`: Detailed product data with descriptions, features, channel-specific media, bundles and relations.
|
|
213
|
+
- `bl_catalog_create_or_update_product`: Create or update products with SKU, EAN, tax rate, dimensions, weight, manufacturer, category.
|
|
214
|
+
- `bl_catalog_search_products`: Filter products by name, SKU, EAN, category, or manufacturer.
|
|
215
|
+
2. **Relationships & Cross-Selling**:
|
|
216
|
+
- `bl_catalog_set_relations`: Build product relationships (`related`, `substitution`, `upsell`, `downsell`, `crosssell`).
|
|
217
|
+
3. **Product Features & Custom Text Fields**:
|
|
218
|
+
- `bl_catalog_set_descriptions_and_features`: Update descriptions and key-value parameter maps (`features`) per language.
|
|
219
|
+
4. **Media & Image Galleries**:
|
|
220
|
+
- `bl_catalog_manage_images`: Add image URLs / base64 on positions 0–15, replace photos, or clear positions.
|
|
221
|
+
5. **Categories, Manufacturers & Tags**:
|
|
222
|
+
- `bl_catalog_categories`, `bl_catalog_manufacturers`, `bl_catalog_tags`: Full CRUD for organizational taxonomies.
|
|
223
|
+
6. **Bulk Price & Stock Updates**:
|
|
224
|
+
- `bl_catalog_update_prices_batch` & `bl_catalog_update_stock_batch`: Bulk updates up to 1000 items per call.
|
|
225
|
+
7. **Rate Limiting & Safety**:
|
|
226
|
+
- Built-in token bucket rate-limiter prevents hitting BaseLinker's 100 req/min limit.
|
|
227
|
+
8. **Live Web Dashboard**:
|
|
228
|
+
- Run `deertools baselinker serve` to open the local web UI at `http://localhost:3456` with token tester and real-time agent audit stream.
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## DeerSkills Hub & MCP Ecosystem
|
|
233
|
+
|
|
234
|
+
**DeerSkills Hub** (`https://skills.deergroup.pl`) to centralna platforma dystrybucji, wersjonowania i zarządzania umiejętnościami agentów AI (Skills) oraz serwerami MCP w ekosystemie Deer Design:
|
|
235
|
+
|
|
236
|
+
1. **Struktura i Uprawnienia**:
|
|
237
|
+
- **Oficjalne Skille (`global`)**: Zweryfikowane, wersjonowane semantycznie (`v1.0.0`) narzędzia firmowe, zarządzane wyłącznie przez Administratorów.
|
|
238
|
+
- **Skille Użytkowników (`user`)**: Każdy pracownik może tworzyć i wersjonować własne skille pod przestrzenią `@uzytkownik/nazwa-skilla`.
|
|
239
|
+
- **Widoczność**: `shared` (dostępne wewnątrz firmy dla zalogowanych) lub `private` (widoczne tylko dla autora).
|
|
240
|
+
2. **Automatyczny Skaner Sekretów**:
|
|
241
|
+
- Każde wywołanie `deertools skill push` automatycznie skanuje pliki skilla w poszukiwaniu niebezpiecznych tokenów (`deer_*_live_`, `ghp_`, `sk-`, `X-BLToken`, haseł).
|
|
242
|
+
- Próba wysłania niezanominizowanych kluczy kończy się natychmiastową blokadą z kodem błędu i listą wykrytych linii.
|
|
243
|
+
3. **Wersjonowanie SemVer i Wizualny Diff**:
|
|
244
|
+
- Zmiany są wersjonowane (`1.0.0` -> `1.0.1` -> `1.1.0`).
|
|
245
|
+
- W portalu Web dostępny jest interaktywny widok Side-by-Side Diff porównujący wersje.
|
|
246
|
+
- CLI wspiera flagę `--bump patch|minor|major` przy publikacji.
|
|
247
|
+
4. **Śledzenie Zależności (`.deertools-lock.json`)**:
|
|
248
|
+
- Zainstalowane skille są rejestrowane w pliku blokady z sumą kontrolną SHA-256 i zainstalowaną wersją.
|
|
249
|
+
- `deertools doctor` automatycznie wykrywa nieaktualne skille i proponuje aktualizację przez `deertools skill update`.
|
|
250
|
+
5. **Ścieżka Awansu ("Nominuj do Globalnych")**:
|
|
251
|
+
- Użytkownicy mogą promować swoje prywatne lub zespołowe skille do oficjalnego katalogu firmowego komendą `deertools skill promote <slug>`.
|
|
252
|
+
- Administrator weryfikuje zgłoszenie w panelu `/settings` i zatwierdza jednym kliknięciem.
|
|
253
|
+
6. **Integracja z Narzędziami AI (Cursor / Antigravity / Claude)**:
|
|
254
|
+
- DeerSkills udostępnia własny serwer MCP (`https://skills.deergroup.pl/functions/v1/skills-mcp`) implementujący specyfikację MCP 2024-11-05.
|
|
255
|
+
- Narzędzia: `hub_search_skills`, `hub_get_skill`, `hub_publish_skill_version`, `hub_list_mcp_servers`, `hub_get_ecosystem_products`.
|
|
139
256
|
|
|
140
257
|
---
|
|
141
258
|
|