@somewhere-cloud/cli 0.38.153 → 0.38.155
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 +11 -0
- package/dist/docs/adopt.md +39 -0
- package/dist/docs/analytics.md +161 -0
- package/dist/docs/api-reference.md +339 -0
- package/dist/docs/api-surface.md +2067 -0
- package/dist/docs/app-mcp.md +162 -0
- package/dist/docs/architecture-patterns.md +334 -0
- package/dist/docs/auth-client.md +531 -0
- package/dist/docs/billing.md +76 -0
- package/dist/docs/browser.md +639 -0
- package/dist/docs/calendar.md +298 -0
- package/dist/docs/changes.md +323 -0
- package/dist/docs/cli.md +407 -0
- package/dist/docs/common-mistakes.md +199 -0
- package/dist/docs/connect-agent.md +72 -0
- package/dist/docs/cors.md +114 -0
- package/dist/docs/cron.md +167 -0
- package/dist/docs/database-engine.md +167 -0
- package/dist/docs/declared-data.md +1656 -0
- package/dist/docs/declared-files.md +475 -0
- package/dist/docs/deploy-intelligence.md +188 -0
- package/dist/docs/deploy.md +733 -0
- package/dist/docs/design-system.md +273 -0
- package/dist/docs/dev-environments.md +496 -0
- package/dist/docs/domain-ownership.md +31 -0
- package/dist/docs/domains.md +370 -0
- package/dist/docs/feedback.md +88 -0
- package/dist/docs/file-tools.md +116 -0
- package/dist/docs/functions.md +489 -0
- package/dist/docs/getting-started.md +238 -0
- package/dist/docs/github.md +95 -0
- package/dist/docs/google-calendar.md +212 -0
- package/dist/docs/groups.md +836 -0
- package/dist/docs/guarantees.md +58 -0
- package/dist/docs/handled-for-you.md +224 -0
- package/dist/docs/inspect.md +171 -0
- package/dist/docs/limits.md +68 -0
- package/dist/docs/live-data.md +197 -0
- package/dist/docs/live.md +92 -0
- package/dist/docs/local-dev.md +30 -0
- package/dist/docs/migration-supabase.md +58 -0
- package/dist/docs/payments.md +1102 -0
- package/dist/docs/portability.md +194 -0
- package/dist/docs/postgres.md +301 -0
- package/dist/docs/pricing-comparison.md +42 -0
- package/dist/docs/pricing.md +39 -0
- package/dist/docs/project-groups.md +107 -0
- package/dist/docs/projects.md +380 -0
- package/dist/docs/recipe-ai-agent.md +112 -0
- package/dist/docs/recipe-ai-features.md +227 -0
- package/dist/docs/recipe-ai-receipts.md +783 -0
- package/dist/docs/recipe-background-jobs.md +369 -0
- package/dist/docs/recipe-booking.md +348 -0
- package/dist/docs/recipe-csv-import.md +390 -0
- package/dist/docs/recipe-ecommerce.md +127 -0
- package/dist/docs/recipe-email.md +282 -0
- package/dist/docs/recipe-escalation.md +133 -0
- package/dist/docs/recipe-file-uploads.md +159 -0
- package/dist/docs/recipe-import-app.md +110 -0
- package/dist/docs/recipe-login.md +457 -0
- package/dist/docs/recipe-multi-chat.md +198 -0
- package/dist/docs/recipe-paid-api.md +161 -0
- package/dist/docs/recipe-pdfs.md +205 -0
- package/dist/docs/recipe-push-notifications.md +107 -0
- package/dist/docs/recipe-seo.md +200 -0
- package/dist/docs/recipe-signed-in-app.md +330 -0
- package/dist/docs/render.md +99 -0
- package/dist/docs/rooms.md +554 -0
- package/dist/docs/sdk.md +287 -0
- package/dist/docs/sdks.md +24 -0
- package/dist/docs/search.md +199 -0
- package/dist/docs/security-model.md +168 -0
- package/dist/docs/setup.md +212 -0
- package/dist/docs/smoke.md +102 -0
- package/dist/docs/speed.md +298 -0
- package/dist/docs/sql-compatibility.md +96 -0
- package/dist/docs/sw.agent.md +248 -0
- package/dist/docs/sw.ai.md +1291 -0
- package/dist/docs/sw.auth.md +1811 -0
- package/dist/docs/sw.billing.md +171 -0
- package/dist/docs/sw.db.md +2128 -0
- package/dist/docs/sw.email.md +661 -0
- package/dist/docs/sw.endpoint.md +187 -0
- package/dist/docs/sw.env.md +303 -0
- package/dist/docs/sw.fetch.md +115 -0
- package/dist/docs/sw.fs.md +424 -0
- package/dist/docs/sw.groups.md +836 -0
- package/dist/docs/sw.image.md +69 -0
- package/dist/docs/sw.jobs.md +520 -0
- package/dist/docs/sw.logs.md +61 -0
- package/dist/docs/sw.mail.md +106 -0
- package/dist/docs/sw.notifications.md +78 -0
- package/dist/docs/sw.push.md +161 -0
- package/dist/docs/sw.rateLimit.md +67 -0
- package/dist/docs/sw.web.md +128 -0
- package/dist/docs/tasks.md +269 -0
- package/dist/docs/test.md +220 -0
- package/dist/docs/tool-reference-account.md +7 -0
- package/dist/docs/tool-reference-ai.md +121 -0
- package/dist/docs/tool-reference-analytics.md +37 -0
- package/dist/docs/tool-reference-api.md +19 -0
- package/dist/docs/tool-reference-artifacts.md +35 -0
- package/dist/docs/tool-reference-auth.md +163 -0
- package/dist/docs/tool-reference-browser.md +114 -0
- package/dist/docs/tool-reference-code.md +26 -0
- package/dist/docs/tool-reference-connect.md +21 -0
- package/dist/docs/tool-reference-cron.md +48 -0
- package/dist/docs/tool-reference-db.md +282 -0
- package/dist/docs/tool-reference-domains.md +107 -0
- package/dist/docs/tool-reference-email.md +55 -0
- package/dist/docs/tool-reference-env.md +19 -0
- package/dist/docs/tool-reference-feedback.md +56 -0
- package/dist/docs/tool-reference-fs.md +265 -0
- package/dist/docs/tool-reference-github.md +57 -0
- package/dist/docs/tool-reference-groups.md +85 -0
- package/dist/docs/tool-reference-help.md +29 -0
- package/dist/docs/tool-reference-jobs.md +39 -0
- package/dist/docs/tool-reference-live.md +48 -0
- package/dist/docs/tool-reference-logs.md +16 -0
- package/dist/docs/tool-reference-payments.md +44 -0
- package/dist/docs/tool-reference-project.md +706 -0
- package/dist/docs/tool-reference-push.md +78 -0
- package/dist/docs/tool-reference-rate-limit.md +18 -0
- package/dist/docs/tool-reference-search.md +68 -0
- package/dist/docs/tool-reference-security.md +42 -0
- package/dist/docs/tool-reference-smoke.md +17 -0
- package/dist/docs/tool-reference-stock-photos.md +20 -0
- package/dist/docs/tool-reference-tasks.md +73 -0
- package/dist/docs/tool-reference-telegram.md +32 -0
- package/dist/docs/tool-reference-usage.md +9 -0
- package/dist/docs/tool-reference-web.md +71 -0
- package/dist/docs/tool-reference-webhooks.md +9 -0
- package/dist/docs/troubleshooting.md +411 -0
- package/dist/docs/typed-functions.md +94 -0
- package/dist/docs/verify-before-deploy.md +67 -0
- package/dist/docs/vs-supabase.md +75 -0
- package/dist/docs/vs-vercel.md +103 -0
- package/dist/lib/bundle.js +303 -221
- package/dist/lib/bundle.js.map +3 -3
- package/dist/types/lib/test-session.d.ts +8 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -2
- package/runtime/DECLARED-DATA-VENDOR.json +5 -5
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/SOURCE-LINT-VENDOR.json +2 -2
- package/runtime/declared-data.cjs +37 -19
- package/runtime/source-lint.cjs +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Push tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## push-vapid-key
|
|
6
|
+
|
|
7
|
+
**Building notifications that must arrive after the app tab closes?** The flow starts with the VAPID public key of the project, which the browser passes to `PushManager.subscribe({ applicationServerKey })`. The key is auto-generated and stable for the project's lifetime.
|
|
8
|
+
|
|
9
|
+
**Example:**
|
|
10
|
+
|
|
11
|
+
Example transcript or fragment
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
{ "project_id": "my-saas" }
|
|
15
|
+
// Returns: { "vapid_public_key": "BN..." }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## push-subscribe
|
|
19
|
+
|
|
20
|
+
**Register your own browser as a developer device** for operator alerts, after it returns a `PushManager.subscribe()` result. Developer devices carry no app-user id; reach them with `push_send with audience set to developer`. App users register their own browsers from a signed-in session (`somewhere:push` `enablePush()` or `sw.push.subscribe` in a function), never through this tool. Idempotent on (project_id, endpoint).
|
|
21
|
+
|
|
22
|
+
**Example:**
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"project_id": "my-saas",
|
|
27
|
+
"subscription": { "endpoint": "https://fcm.googleapis.com/fcm/send/...", "keys": { "p256dh": "...", "auth": "..." } },
|
|
28
|
+
"label": "My laptop"
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## push-unsubscribe
|
|
33
|
+
|
|
34
|
+
**When a user disables notifications or a browser subscription is replaced,** remove the old subscription by endpoint. The operation is idempotent.
|
|
35
|
+
|
|
36
|
+
**Example:**
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{ "project_id": "my-saas", "endpoint": "https://fcm.googleapis.com/..." }
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## push-send
|
|
43
|
+
|
|
44
|
+
**Need an alert to reach a user even when the app tab is closed?** `push_send` sends a web push notification to one device, one app-user's devices, your developer devices, or the whole project.
|
|
45
|
+
|
|
46
|
+
Recipient targeting (exactly one; a missing, null or empty target is refused):
|
|
47
|
+
- `user_id`: every device that signed-in app user registered.
|
|
48
|
+
- `subscription_id` or `endpoint`: one device. Sending again sends another notification.
|
|
49
|
+
- `audience: 'developer'`: devices registered with `push_subscribe`.
|
|
50
|
+
- `audience: 'all'`: every device in the project (refused whole above 500).
|
|
51
|
+
|
|
52
|
+
`payload` may be a JSON object (recommended — your service worker parses it) or a string. Subscriptions that the push provider reports as gone (404/410) are auto-deleted. Inside a deployed function the equivalent call is `sw.push.send({ payload, user_id })` — one object, payload nested; there is no second options argument.
|
|
53
|
+
|
|
54
|
+
**Example:**
|
|
55
|
+
|
|
56
|
+
Example transcript or fragment
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
{
|
|
60
|
+
"project_id": "my-saas",
|
|
61
|
+
"user_id": "u_alice",
|
|
62
|
+
"payload": { "title": "New message", "body": "From Bob", "url": "/inbox/123" }
|
|
63
|
+
}
|
|
64
|
+
// Returns: { "sent": 1, "failed": 0, "gone": 0, "captured": 0, "recipients": 1, "history_recorded": true, "devices": [{ "subscription_id": "psub_...", "device_label": "Chrome on Android", "outcome": "sent", "http_status": 201, ... }] }
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## push-deliveries
|
|
68
|
+
|
|
69
|
+
**Why didn't a notification arrive?** Read per-device push history, newest first: each send's device, outcome (`sent`, `failed` with the HTTP status and a reason, `gone` when the browser revoked the device, `captured` for a test inbox device), title, URL and time. Test-inbox deliveries include the full payload, so a hosted browser can prove a user was notified. Returns the last seven days.
|
|
70
|
+
|
|
71
|
+
**Example:**
|
|
72
|
+
|
|
73
|
+
Example transcript or fragment
|
|
74
|
+
|
|
75
|
+
```text
|
|
76
|
+
{ "project_id": "my-saas", "user_id": "usr_123", "limit": 10 }
|
|
77
|
+
// Returns: { "deliveries": [{ "device_label": "Chrome on Android", "outcome": "failed", "http_status": 403, "error": "The push service refused the signing key (403). Re-subscribe this device.", "title": "New message", "created_at": "..." }] }
|
|
78
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Rate Limit tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## rate-limit-check
|
|
6
|
+
|
|
7
|
+
Atomically check and increment a rate-limit counter. Each call counts as one hit against `key` for the current fixed window. Returns whether this hit is allowed and how many remain.
|
|
8
|
+
|
|
9
|
+
It replaces hand-rolled per-IP / per-user throttling. Window granularity is per-second; `window_seconds` sets the cadence (60 for per-minute, 3600 for per-hour, etc.). The platform handles atomicity; race-safe for typical throttling use.
|
|
10
|
+
|
|
11
|
+
**Example:**
|
|
12
|
+
|
|
13
|
+
Example transcript or fragment
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
{ "project_id": "my-saas", "key": "ip:1.2.3.4:signup", "max": 5, "window_seconds": 60 }
|
|
17
|
+
// Returns: { "allowed": true, "remaining": 4, "reset": 1715212800, "limit": 5, "window_seconds": 60 }
|
|
18
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Search tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## search-index-create
|
|
6
|
+
|
|
7
|
+
**Adding natural-language search to FAQs, docs, products, or other app content?** Create the named search index once, then feed it with `search_upsert`. Indexes hold items you can later find by keyword or meaning. Idempotent — returns the existing index if one already has this name.
|
|
8
|
+
|
|
9
|
+
**Example:**
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{ "project_id": "my-saas", "name": "help-articles" }
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## search-delete
|
|
16
|
+
|
|
17
|
+
Delete from a search index. `ids` removes specific items; without `ids` it deletes the entire index and all its items.
|
|
18
|
+
|
|
19
|
+
**Example:**
|
|
20
|
+
|
|
21
|
+
Example transcript or fragment
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
// Remove specific items:
|
|
25
|
+
{ "project_id": "my-saas", "index": "help-articles", "ids": ["art-1", "art-2"] }
|
|
26
|
+
|
|
27
|
+
// Delete the whole index:
|
|
28
|
+
{ "project_id": "my-saas", "index": "help-articles" }
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## search-upsert
|
|
32
|
+
|
|
33
|
+
**Did searchable content get created or edited?** Call `search_upsert` with its stable `id` and `content`; the platform creates the index if needed and generates embeddings for you. Reusing an id updates that item. It takes up to 100 items per call.
|
|
34
|
+
|
|
35
|
+
**Example:**
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"project_id": "my-saas",
|
|
40
|
+
"index": "help-articles",
|
|
41
|
+
"items": [
|
|
42
|
+
{ "id": "art-1", "content": "How to reset your password: Go to Settings > Security > Reset Password...", "metadata": { "category": "account" } },
|
|
43
|
+
{ "id": "art-2", "content": "Billing FAQ: We charge monthly on the date you signed up...", "metadata": { "category": "billing" } }
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## search-query
|
|
49
|
+
|
|
50
|
+
Search an index. The default `hybrid` ranking fuses exact-keyword matching (typo-tolerant, great for SKUs, usernames, IDs, and any literal term) with meaning-based matching — so a document containing the query words ranks first, AND conceptually related documents are still found. Each result has its original content and metadata, a relevance score, a `snippet` that highlights the match (wrapped in <mark>…</mark>), and a `signals` breakdown of which signal(s) matched. `offset` pages through results — the response carries a `page` object with `total` and `has_more`.
|
|
51
|
+
|
|
52
|
+
**Example:**
|
|
53
|
+
|
|
54
|
+
Example transcript or fragment
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
{
|
|
58
|
+
"project_id": "my-saas",
|
|
59
|
+
"index": "help-articles",
|
|
60
|
+
"query": "reset password",
|
|
61
|
+
"limit": 5
|
|
62
|
+
}
|
|
63
|
+
// Returns: {
|
|
64
|
+
// "results": [{ "id": "art-1", "content": "How to reset your password...", "metadata": { "category": "account" }, "score": 0.031, "snippet": "How to <mark>reset</mark> your <mark>password</mark>...", "signals": { "lexical": -3.1, "semantic": 0.92 } }, ...],
|
|
65
|
+
// "page": { "offset": 0, "limit": 5, "total": 12, "has_more": true },
|
|
66
|
+
// "mode": "hybrid"
|
|
67
|
+
// }
|
|
68
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Security tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## security-sitekey
|
|
6
|
+
|
|
7
|
+
Get the CAPTCHA site key to embed in your frontend HTML. This is safe to expose publicly — it identifies the widget, not the user.
|
|
8
|
+
|
|
9
|
+
**Example:**
|
|
10
|
+
|
|
11
|
+
Example transcript or fragment
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
{}
|
|
15
|
+
// Returns: { "sitekey": "0x..." }
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
**Usage in HTML:**
|
|
19
|
+
|
|
20
|
+
```html
|
|
21
|
+
<div class="cf-captcha" data-sitekey="0x..."></div>
|
|
22
|
+
<script src="https://your-captcha-provider.example/widget.js" async defer></script>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## security-review
|
|
26
|
+
|
|
27
|
+
On-demand LLM security review of a project's deployed functions. Returns a structured Markdown report — findings (one per real risk), severity, and a fix.
|
|
28
|
+
|
|
29
|
+
Every plan can request a review. Paid plans get a longer report. Eligible paid plans also review when a preview is promoted. All plans use the same review model and minimal reasoning; only the report length limit differs.
|
|
30
|
+
|
|
31
|
+
Advisory only — never blocks anything. The deploy path never blocks on a pattern scan; it surfaces hits as warnings, and this tool is how you get the deep dive.
|
|
32
|
+
|
|
33
|
+
project_id is required (returns VALIDATION_ERROR if omitted). Backend failures are distinguishable, so a retry is never wasted on a persistent failure: a transient outage returns UPSTREAM_DOWN / UPSTREAM_RATE_LIMITED (retryable), while a persistent platform problem returns UPSTREAM_ERROR / CONFIG_ERROR (not retryable — a retry loop does not clear it).
|
|
34
|
+
|
|
35
|
+
**Example:**
|
|
36
|
+
|
|
37
|
+
Example transcript or fragment
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
{ "project_id": "my-saas" }
|
|
41
|
+
// Returns: { "findings": "## Findings\n### Auth bypass at api/checkout.ts ...\n...", "review_depth": "standard", "tier_unlocks_deep_review": false, ... }
|
|
42
|
+
```
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Smoke tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## site-check-status
|
|
6
|
+
|
|
7
|
+
Get the latest smoke-test run for a project plus a short history. Smoke runs are auto-wired — homepage and any attached custom domains are probed every ~20 min and after every deploy. Status is "pass" / "fail" / "partial". Each run includes per-target details (URL, HTTP code, duration).
|
|
8
|
+
|
|
9
|
+
## site-check
|
|
10
|
+
|
|
11
|
+
Trigger an on-demand site check for a project. Usually returns the finished run with per-target details within ~10s; if probes are still executing it returns { run: { id, status: "running" } } — site_check_status has the result a moment later. It answers "is it back yet" after a fix, and serves as a post-deploy check.
|
|
12
|
+
|
|
13
|
+
To run part of the live app's after-deploy check, pass `check: "access"`, `check: "crawl"`, or the path of one saved check, such as `check: "checks/add-note.json"`. Pass the returned `run_id` as `check_run_id` with the same project to read the result. It reports `scope: "partial"`, `checked_parts`, and `not_checked`. Starting and reading a targeted run both require editor access.
|
|
14
|
+
|
|
15
|
+
## smoke-config-get
|
|
16
|
+
|
|
17
|
+
Read the per-project smoke configuration. Returns enabled (false if opted out), test_auth_flow (auto-detected), test_user_email (the designated test user for authed checks), alert_cooldown_seconds, last_alert_at, and any developer-defined extra checks.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Stock Photos tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
Search before choosing a photo. Results provide candidate image URLs, attribution, and download information. The selected image can be used in the app design. Keep the provider attribution with the image and use its recorded download URL where the provider requires it. A failed search leaves the project source unchanged. A live page screenshot belongs to the browser tool.
|
|
6
|
+
|
|
7
|
+
## stock-photos-search
|
|
8
|
+
|
|
9
|
+
Search a free library of royalty-free stock photos by keyword. It returns real photographs (not AI-generated). Free — no activation required.
|
|
10
|
+
|
|
11
|
+
Each photo includes a photographer name and source URL. Display attribution somewhere on the page when you use the image.
|
|
12
|
+
|
|
13
|
+
**Example:**
|
|
14
|
+
|
|
15
|
+
Example transcript or fragment
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
{ "project_id": "my-app", "query": "mountain sunset", "per_page": 5 }
|
|
19
|
+
// Returns: [{ "url": "https://...", "width": 4000, "height": 2667, "photographer": "Jane Doe", "source_url": "https://..." }, ...]
|
|
20
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Tasks tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## tasks-create
|
|
6
|
+
|
|
7
|
+
Create a task in a project. Tasks are per-project tickets — useful for bugs, todos, or end-user-filed feedback inside your app. Tasks live in the project's own database.
|
|
8
|
+
|
|
9
|
+
**Example:**
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"project_id": "my-saas",
|
|
14
|
+
"title": "Fix login redirect",
|
|
15
|
+
"description": "After OAuth, users land on /home instead of /dashboard.",
|
|
16
|
+
"priority": "high",
|
|
17
|
+
"labels": ["bug", "auth"]
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## tasks-bulk-update
|
|
22
|
+
|
|
23
|
+
Apply the same field changes to many tasks in one call (cap 100 per call). One request → one batch DB write per target + one activity-log row per changed field. Failures are returned per-task so partial errors do not roll back the whole batch.
|
|
24
|
+
|
|
25
|
+
## tasks-overview
|
|
26
|
+
|
|
27
|
+
Start with a bounded project brief: vision, SOPs, recorded priorities, work underway, blockers and completed work with release links. Uses existing records, no model ranking. Two records per section; a focused section returns up to five. Counts, ordering and continuation are explicit. Reviewed guidance is distinguished from newer drafts. Excerpts are partial; tasks_get has the source and linked guidance. Closed tasks without a release link are not presented as shipped.
|
|
28
|
+
|
|
29
|
+
## tasks-list
|
|
30
|
+
|
|
31
|
+
Read tasks. view=board returns a board scan: 50 concise current-state rows by default, no descriptions/comments. Other reads default to a small task page (10, bounded response). The same filters with page.next_cursor as cursor continue; pages are not concatenated automatically. Task ordering is live keyset: edits to sort/filter fields may skip or repeat rows; a new read starts a fresh queue. Fields in omitted are partial; tasks_get view=field expands them. detail=full explicitly permits unbounded descriptions. task_id reads one current task; tasks_get covers history/field options. review_for_closure reports its source candidate limit. tasks_overview covers project direction and work; tasks_summary gives counts and memory_search durable guidance. waiting="me" is a separate read: what is waiting for the signed-in person, everything agents have asked that person to do across all their projects, most urgent first, 25 projects per call (next_cursor continues as cursor). This is how an agent finds out what the person still has to do. Each item has its task id, project_id and project_name, the title, the steps as written (steps) and as a list (step_list), the reason (why), who asked (asked_by) and when (asked_at); answered lists what was answered and through which credential (answered_by). An agent may walk the person through an item’s steps. An item is answered with tasks_update: answer "done" or "cannot", with an optional note; "done" is only for an item the person did or asked to have marked done.
|
|
32
|
+
|
|
33
|
+
## tasks-get
|
|
34
|
+
|
|
35
|
+
Read current task state by default, bounded to about 12,000 JSON characters, with history counts and expansion instructions. view=relationships pages explicit links and parent/replacement-field links, current target state and supersession pointers; task_id leads to the target. Missing targets and partial pointers are explicit. view=history pages comments, activity, guidance revisions or review records (kind), newest first with stable ID ties; default 5. view=field expands an omitted top-level field as bounded JSON-text chunks; a history field also takes kind and event_id. The same read options with next_cursor as cursor continue. History uses a keyset and initial rowid/time upper bounds; appends do not restart it, deletions disappear, and edited bodies are live. Membership is not frozen: deletion followed by a same-timestamp insert can admit a new event on a later page. Field chunks reject changed content with CURSOR_STALE; a new field read returns the current content. view=full explicitly requests the unbounded compatibility response with all comments/activity ordered oldest first (created_at ASC, id ASC). Prefix task IDs work when unique.
|
|
36
|
+
|
|
37
|
+
## tasks-summary
|
|
38
|
+
|
|
39
|
+
At-a-glance ticket counts for a project with ZERO rows returned — total plus counts grouped by status, priority, area, and assignee, plus a stale count (in_progress tasks untouched beyond stale_days). It returns a dashboard number ("urgent: 3, high: 28, blocked: 5") instead of listing every task; it scales to thousands of tickets. tasks_list returns the rows themselves.
|
|
40
|
+
|
|
41
|
+
## tasks-update
|
|
42
|
+
|
|
43
|
+
Update a task's fields, append a comment, or upload and attach authorized file references. `comment` adds a comment without changing other fields. Status transitions to 'done' automatically stamp completed_at. **Closing a task (status: 'done') takes a `resolution_note`** — it's persisted as a comment AND included in the resolution email/webhook so the reporter knows what was done. Omitting it when transitioning to done returns a non-blocking `suggestions` entry asking for a resolution note.
|
|
44
|
+
|
|
45
|
+
**Progress belongs in `status_note` (and `health`), not a comment per step.** The three fields have distinct jobs: `description` is the living document (intent and contract, rewritten as the truth changes), `status_note` is the current state (overwritten each update, so one read tells you where things stand), and comments are append-only EVIDENCE — commit hashes, verification output, links. Appending status as comments is what makes a long-lived task unreadable: the thread renders oldest-first, so a reader meets the superseded version before the live one. Overwriting `status_note` loses nothing; the old value is kept in the activity log.
|
|
46
|
+
|
|
47
|
+
## tasks-comment-add
|
|
48
|
+
|
|
49
|
+
Append a comment to a task without changing its fields. Each comment is a new entry; it is announced to the project's configured task webhook and notification email when those are set. Progress is recorded in tasks_update status_note, and a task closes through tasks_update with status 'done' and resolution_note.
|
|
50
|
+
|
|
51
|
+
## tasks-attachment-upload
|
|
52
|
+
|
|
53
|
+
Upload native files and append them to a task's attachments. Each file is stored privately under /tasks/{task_id}/attachments/<name>; a file with the same name as an earlier attachment on that task replaces the stored file (its previous version stays in file history). The saved paths are returned. The change is announced to the project's configured task webhook and notification email when those are set. tasks_update with attachments replaces the attachment list itself.
|
|
54
|
+
|
|
55
|
+
## tasks-relationship-remove
|
|
56
|
+
|
|
57
|
+
Delete one explicit relationship from a task by its relationship id, as listed in the task's relationships. A parent link set through parent_id is removed by clearing parent_id with tasks_update instead. The deletion cannot be undone except by adding the relationship again.
|
|
58
|
+
|
|
59
|
+
## tasks-delete
|
|
60
|
+
|
|
61
|
+
Delete a task that should never have existed (a duplicate, a mistake, wrong direction). Gone from normal task reads on the next read; restorable for 30 days; purged after. Other tasks keep their history; attachment files remain. Raw database dumps may include trash until purge. Only the board owner's account can delete; anything else gets TASK_DELETE_FORBIDDEN. To keep a record as history, archive it or set superseded_by instead.
|
|
62
|
+
|
|
63
|
+
## tasks-settings-update
|
|
64
|
+
|
|
65
|
+
Configure where task events are delivered. webhook_url receives signed POSTs (X-Somewhere-Signature: t=<ms>,v1=<hmac-sha256-hex>) and/or notify_email receives emails. An empty string clears a field. The first time webhook_url is set, the response includes webhook_secret exactly once — it is stored server-side to verify the signature.
|
|
66
|
+
|
|
67
|
+
## memory-search
|
|
68
|
+
|
|
69
|
+
Search a bounded page of the org's memory before building, when unsure about a past call, or when the user references something not in context. The same filters with page.next_cursor as cursor continue the page; pages are not drained automatically. Expand omitted fields with tasks_get view=field.
|
|
70
|
+
|
|
71
|
+
## tasks-list-connector
|
|
72
|
+
|
|
73
|
+
Read a bounded page of project tasks. The same filters with next_cursor continue the list. Omitted fields can be retrieved separately; sorting and filters reflect live edits. With waiting set to me, the read is instead what is waiting for the signed-in person across their projects: what agents have asked that person to do, with the steps, the reason, who asked and when, and what was answered and through which credential. It is how an agent finds out what the person still has to do, and an agent may walk the person through the steps. tasks_update answers an item (done or cannot, with a note); done is only for an item the person did or asked to have marked done.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Telegram tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## telegram-link
|
|
6
|
+
|
|
7
|
+
Mint a one-time link code and return a t.me URL the user clicks to connect their Telegram account to the platform. The link expires in 10 minutes. After the user clicks /start in Telegram, the link is finalized server-side.
|
|
8
|
+
|
|
9
|
+
It supports a "Connect Telegram" setup step inside an app flow. Once linked, the user can talk to the bot to control their hosted workspace.
|
|
10
|
+
|
|
11
|
+
**Example:**
|
|
12
|
+
|
|
13
|
+
Example transcript or fragment
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
{}
|
|
17
|
+
// Returns: { "link_url": "https://t.me/somewheretech_bot?start=LINK_abc123", "expires_in": "10 minutes", "bot_username": "somewheretech_bot" }
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## telegram-status
|
|
21
|
+
|
|
22
|
+
Check whether the developer's account is linked to Telegram. Returns `linked: false` (with `bot_configured` flag) before linking, or the linked telegram username + active project after.
|
|
23
|
+
|
|
24
|
+
**Example:**
|
|
25
|
+
|
|
26
|
+
Example transcript or fragment
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
{}
|
|
30
|
+
// Linked: { "linked": true, "telegram_username": "alice", "active_project": "my-saas", "linked_at": "2026-04-01T..." }
|
|
31
|
+
// Unlinked: { "linked": false, "bot_configured": true }
|
|
32
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Usage tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## usage-summary
|
|
6
|
+
|
|
7
|
+
Get account usage totals, owned-project count, limits, and aggregate database/file storage with no arguments. Project AI calls and costs exclude Advisor calls, which are accounted separately. From this change onward, new release-based production publications count once on successful completion, excluding previews, dry runs, unchanged deploys, rollbacks and retries. Historical counters retain their original meaning.
|
|
8
|
+
|
|
9
|
+
`view: "projects"` returns a bounded page of owned-project details (default 20, maximum 100); the returned `cursor` fetches the next page. Account totals remain account-wide. Passing `project_id` or `period` uses the historical usage call (deploys, project AI calls/costs, emails), without storage or pagination.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Web tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
## web-scrape
|
|
6
|
+
|
|
7
|
+
Fetch a public web page and return its content as clean markdown (default), with optional html, raw_html, links, and screenshot. Strips nav/footer/sidebar by default so you get the main article body.
|
|
8
|
+
|
|
9
|
+
It reads pages that are not otherwise locally accessible — docs, blog posts, marketing pages, articles. The response is page metadata (title, description, language) plus the requested formats. If the page served a bot-challenge interstitial ("verify you are human") instead of real content, the response carries `challenge_detected: true` — that content is not the page, and an immediate retry usually returns the same challenge.
|
|
10
|
+
|
|
11
|
+
**Screenshot format** (`formats: ["screenshot"]`) uses the same three-tier answer as `browser`: small enough (auto-downscaled) → inline `data:image/...;base64,...`; too large with no `storage` → a short-TTL `scratch_url` you don't have to clean up; `storage: "/path.jpg"` set → written permanently to project files, returned as `{ storage_path, size_bytes }`.
|
|
12
|
+
|
|
13
|
+
**Example:**
|
|
14
|
+
|
|
15
|
+
Example transcript or fragment
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
{ "project_id": "my-saas", "url": "https://somewhere.cloud/docs/getting-started.txt" }
|
|
19
|
+
// Returns: { "url": "...", "title": "Start an app", "markdown": "# Start an app\n...", "status_code": 200 }
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```json
|
|
23
|
+
{ "project_id": "my-saas", "url": "https://example.com", "formats": ["markdown", "links"], "only_main": false }
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{ "project_id": "my-saas", "url": "https://example.com", "formats": ["screenshot"], "storage": "/scratch/hero.jpg" }
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## web-search
|
|
31
|
+
|
|
32
|
+
Search the public web by keyword. Returns up to 20 results — each with url, title, description, age, and source — without page bodies. `web_scrape` returns the full content of a specific result.
|
|
33
|
+
|
|
34
|
+
It finds current information — recent news, comparison pages, error references, library docs by name. Results are ranked by the upstream search index, not your project.
|
|
35
|
+
|
|
36
|
+
**Example:**
|
|
37
|
+
|
|
38
|
+
Example transcript or fragment
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
{ "project_id": "my-saas", "query": "react server components streaming", "count": 5 }
|
|
42
|
+
// Returns: { "query": "...", "results": [{ "url": "...", "title": "...", "description": "...", "age": "2 days ago", "source": "react.dev" }, ...], "count": 5 }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{ "project_id": "my-saas", "query": "react server components", "freshness": "pw", "count": 10 }
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## ingest
|
|
50
|
+
|
|
51
|
+
Point an app at a website and it becomes data: crawl a site, land every page as markdown in the project's files, and index it into the project's search — one call instead of wiring up a crawler, a file store, and a search index yourself. Always runs as a background job (crawls take minutes) — this call returns immediately with a `job_id`; the jobs API reports its status, and `search_query` against the `"ingest"` index returns results once it completes.
|
|
52
|
+
|
|
53
|
+
The crawl never follows a link off the seed URL's exact host — it can't wander onto another site. Re-ingesting the same URL overwrites the same file and search item rather than duplicating it, so re-running ingest after a docs site updates is safe.
|
|
54
|
+
|
|
55
|
+
**Example:**
|
|
56
|
+
|
|
57
|
+
Example transcript or fragment
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
{ "project_id": "my-saas", "url": "https://docs.example.com", "max_pages": 40 }
|
|
61
|
+
// Returns: { "job_id": "job_...", "status": "queued" }
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Then, once the job completes:
|
|
65
|
+
|
|
66
|
+
Example transcript or fragment
|
|
67
|
+
|
|
68
|
+
```text
|
|
69
|
+
{ "project_id": "my-saas", "index": "ingest", "query": "how do I authenticate" }
|
|
70
|
+
// via search_query — returns hits pulled straight from the crawled pages.
|
|
71
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Webhooks tool reference
|
|
2
|
+
|
|
3
|
+
Use the section for the tool and connection in the current workflow. Each tool’s input schema defines the accepted arguments.
|
|
4
|
+
|
|
5
|
+
Webhook subscriptions send events from a project to a configured endpoint. Give the destination a stable URL and keep the verification secret server-side. The subscription list is the first place to confirm the current destination and event selection. Registering or deleting a subscription changes delivery. An app that only needs to inspect existing subscriptions can use the list operation.
|
|
6
|
+
|
|
7
|
+
## webhook-delivery-redrive
|
|
8
|
+
|
|
9
|
+
Redrive one project outbound webhook delivery using the exact immutable request bytes and the same stable event and delivery ids. The new attempt is appended to delivery history. The receiver-facing delivery id supports dedupe, especially when the prior outcome is indeterminate.
|