@promte/app-upload 0.2.0 → 0.2.1
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/package.json +1 -1
- package/skill/SKILL.md +2 -0
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -123,6 +123,8 @@ Client API (`client.…`):
|
|
|
123
123
|
- **Data (JSON tree):** `data(scope).ref("a/b")` with `get()`, `set(v)`, `update({ "x/y": v })`, `remove()`, `push(v)`. Scope `"private"` (default, per user) or `"public"` (whole workspace; only admins can write). `get()` returns `null` if missing.
|
|
124
124
|
- **Files** (newer servers): `files(scope)` with `upload(blob, { name })`, `list({ prefix })`, `download(id)`, `remove(id)`.
|
|
125
125
|
- **Knowledge search:** `knowledge.search({ query, workspaceId?, maxResults?, generateSearchQuery? })` → `{ results: [{ title, text, sourceUrl }] }`.
|
|
126
|
+
- **Ask an assistant:** `assistant.ask({ assistantId, question, conversationId? })` → `{ conversationId, answer, sources: [{ title, link }] }`. Uses the assistant's own prompt, tools and knowledge, and logs the conversation in the assistant. Public apps can only ask publicly published assistants. Not streamed; for structured data, ask for JSON and parse `answer`. Limited to 30 questions per 10 minutes per IP for visitors without login and 2,000 per app per day; above that it fails with `rate_limited`. Footnotes like `^2^` or `^0,3^` in `answer` index into `sources`; `link` is empty for uploaded files.
|
|
127
|
+
- **Email:** `email.send({ to, subject, text, html?, replyTo? })` → `{ sent }`, rejects with `PromteEmailError` (`code`). Off until an app admin turns on email in the Login tab. Recipients: the signed-in user, app members, the app's visitor accounts, or the app's fixed recipients (for example an order inbox). Visitors without login may only write to the fixed recipients and may pass `replyTo` (unverified). Never send to arbitrary typed-in addresses; limited per user and per day, and visitors without login to 5 emails per hour per IP.
|
|
126
128
|
- **Web:** `web.scrapeUrl({ url })`.
|
|
127
129
|
- **Audio:** `audio.tts(...)`, `audio.stt(...)`, `audio.voices()`.
|
|
128
130
|
- **Guardrails:** `guardrails.check(value)` → `{ allowed, outcome: "allow"|"warn"|"block" }`.
|