@jsm-mit/sultana-agent-tools-package 0.6.0 → 0.8.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 +71 -0
- package/dist/booksy/fetch-page.d.ts +25 -0
- package/dist/booksy/fetch-page.d.ts.map +1 -0
- package/dist/booksy/fetch-page.js +93 -0
- package/dist/booksy/import-tools.d.ts +22 -0
- package/dist/booksy/import-tools.d.ts.map +1 -0
- package/dist/booksy/import-tools.js +413 -0
- package/dist/booksy/nuxt-payload.d.ts +15 -0
- package/dist/booksy/nuxt-payload.d.ts.map +1 -0
- package/dist/booksy/nuxt-payload.js +96 -0
- package/dist/booksy/parse-salon.d.ts +61 -0
- package/dist/booksy/parse-salon.d.ts.map +1 -0
- package/dist/booksy/parse-salon.js +212 -0
- package/dist/booksy/to-sultana.d.ts +62 -0
- package/dist/booksy/to-sultana.d.ts.map +1 -0
- package/dist/booksy/to-sultana.js +77 -0
- package/dist/booksy/tools.d.ts +57 -0
- package/dist/booksy/tools.d.ts.map +1 -0
- package/dist/booksy/tools.js +227 -0
- package/dist/customer/customer-core-port.d.ts +3 -3
- package/dist/customer/customer-core-port.d.ts.map +1 -1
- package/dist/customer/ic-customer-core-port.d.ts +2 -3
- package/dist/customer/ic-customer-core-port.d.ts.map +1 -1
- package/dist/customer/ic-customer-core-port.js +4 -9
- package/dist/customer/persona.d.ts.map +1 -1
- package/dist/customer/persona.js +4 -1
- package/dist/customer/texts.d.ts +2 -0
- package/dist/customer/texts.d.ts.map +1 -1
- package/dist/customer/texts.js +6 -2
- package/dist/customer/tools.d.ts.map +1 -1
- package/dist/customer/tools.js +22 -4
- package/dist/ic-salon-core-port.d.ts +4 -0
- package/dist/ic-salon-core-port.d.ts.map +1 -1
- package/dist/ic-salon-core-port.js +19 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/persona.d.ts +5 -0
- package/dist/persona.d.ts.map +1 -1
- package/dist/persona.js +17 -0
- package/package.json +2 -1
package/dist/persona.js
CHANGED
|
@@ -58,3 +58,20 @@ Zasady pracy:
|
|
|
58
58
|
- Jeśli narzędzie zwróci status "error", przeczytaj summary i powiedz właścicielowi,
|
|
59
59
|
co poszło nie tak. Nie powtarzaj tego samego wywołania w kółko.
|
|
60
60
|
- Nie obiecuj zmian, których nie możesz wykonać.`;
|
|
61
|
+
/**
|
|
62
|
+
* The rules for the Booksy set (`createBooksyTools`) — appended to `SALON_AGENT_PERSONA_PL` by a
|
|
63
|
+
* host that hands those tools to the agent. Separate, because a host may run without them.
|
|
64
|
+
*/
|
|
65
|
+
export const SALON_BOOKSY_PERSONA_PL = `Kopiowanie salonu z Booksy:
|
|
66
|
+
- Gdy właścicielka chce przenieść coś z Booksy, poproś o adres jej profilu
|
|
67
|
+
(https://booksy.com/pl-pl/<numer>_<nazwa>…), jeśli go nie podała.
|
|
68
|
+
- read_booksy_salon i read_booksy_services tylko czytają profil — niczego nie zapisują.
|
|
69
|
+
- Usługi kopiuj WYŁĄCZNIE przez import_booksy_services (wszystkie naraz, jedno potwierdzenie).
|
|
70
|
+
Nie przepisuj ich pojedynczo przez add_service.
|
|
71
|
+
- Podgląd importu pokaż właścicielce w całości, razem z uwagami pod listą. Poprawki
|
|
72
|
+
(„pomiń X”, „X to inny typ”) podaj w overrides i pokaż nowy podgląd.
|
|
73
|
+
- Gdy import wypisze usługi, którym nie dobrał typu, dobierz typy przez find_service_type,
|
|
74
|
+
podaj je w overrides i pokaż nowy podgląd.
|
|
75
|
+
- Kopiowania pracowników jeszcze nie ma: wywołaj import_booksy_workers i przekaż, co odpowie.
|
|
76
|
+
- Nazwy, adresu, opisu i godzin otwarcia salonu nie da się jeszcze zmienić przez czat — powiedz to
|
|
77
|
+
wprost. Nie wymyślaj innego powodu.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsm-mit/sultana-agent-tools-package",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Agent tool layer for Sultana: framework-agnostic tools over the Sultana core canister wrapper — a salon owner's set (services, promos, schedule) and a customer's set (search, free times, booking), each with a read-only set that needs no identity.",
|
|
5
5
|
"homepage": "https://github.com/JSM-Sultana/sultana-agent-tools-package#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"prepare": "npm run build",
|
|
33
33
|
"test-tools": "npx tsx --env-file-if-exists=.env --test tests/integration/test-salon-tools.ts",
|
|
34
34
|
"test-customer-tools": "npx tsx --env-file-if-exists=.env --test tests/integration/test-customer-tools.ts",
|
|
35
|
+
"booksy": "npx tsx sandbox/booksy.ts",
|
|
35
36
|
"whoami": "npx tsx --env-file-if-exists=.env sandbox/whoami.ts",
|
|
36
37
|
"publish-public": "bash scripts/publish-public.sh"
|
|
37
38
|
},
|