Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
351a952
feat(skill): guide private D1 and R2 exports with CLI commands
dxiongya Oct 11, 2026
634ebc5
fix(workers)!: remove manual pause and preserve deployment transport …
dxiongya Oct 11, 2026
db7faf7
fix(workers): support native assets import and initial Secret setup
dxiongya Oct 12, 2026
d257169
fix(cli): correct Action discovery and bundled skill workflows (#57)
Glacier-Luo Oct 16, 2026
84bc44b
chore(main): release 0.3.0 (#53)
github-actions[bot] Oct 16, 2026
8801acc
feat(provider): upload local LOGO images when creating services (#59)
dxiongya Oct 19, 2026
7bcc1d3
test(cli): handle escaped paths and native timer rounding (#56)
AmazingAng Oct 20, 2026
3f1d089
fix(deps): prevent undici EventSource memory exhaustion
Glacier-Luo Oct 22, 2026
8555509
test(cli): verify slow uploads without socket buffer timing assumptions
Glacier-Luo Oct 22, 2026
ae878b8
chore(main): release 0.3.1 (#60)
github-actions[bot] Oct 22, 2026
550171c
feat(skill): guide Tripo async provider registration (#61)
Glacier-Luo Oct 22, 2026
889c15e
fix(skill): handle Binance candle boundaries and USD volume (#63)
AmazingAng Oct 29, 2026
73696a4
feat(skill): guide service tags, official categories and token usage …
dxiongya Nov 10, 2026
810f89a
feat(provider): show a service's review and lifecycle timeline
dxiongya Nov 10, 2026
3a7c3d7
fix(skill): stop recommending the retired provider event feed (#66)
AmazingAng Nov 12, 2026
a0b9d88
fix(agent): report failed calls and protect generated chat routes
dxiongya Nov 12, 2026
af0a957
fix(cli): reuse the login session for balance and oauth
dxiongya Nov 12, 2026
786041b
feat(cli): show service, price and 30-day stats in action tables
dxiongya Nov 12, 2026
ef90979
docs(skill): how to choose between similar services and read a call's…
dxiongya Nov 12, 2026
80522c1
docs(skill): tags and categories in search results
dxiongya Nov 12, 2026
a00ed05
feat(sandbox): server-side lifetime and spending caps, concise run ou…
dxiongya Nov 12, 2026
33f20eb
feat(workers): key-free local plan, secrets in init's next steps, sho…
dxiongya Nov 12, 2026
194601d
feat(provider): import YAML with explicit default pricing
dxiongya Nov 13, 2026
fc59690
fix(oauth): inspect endpoint requirements before account binding
dxiongya Nov 13, 2026
6849d71
feat(sandbox): show termination reasons and clarify budget limits
dxiongya Nov 13, 2026
960796c
feat(skill): explain import lifecycle and trusted discovery metadata
dxiongya Nov 13, 2026
a009785
feat(call): save complete JSON responses to private files
dxiongya Nov 13, 2026
96ddd6a
fix(call): clarify uncertain failures and response evidence
dxiongya Nov 13, 2026
ac85a83
fix(call): preserve replaced files and complete JSON errors
dxiongya Nov 13, 2026
24e0b71
docs(provider): explain readiness and interrupted review recovery
dxiongya Nov 16, 2026
3d50300
docs(action): explain mixed billing states and overlapping amounts
dxiongya Nov 16, 2026
bf86fa8
docs(action): name the separate raw cost-state headers
dxiongya Nov 16, 2026
ea4a49c
docs(skill): describe the restored Twitter search fallback behavior
dxiongya Nov 16, 2026
fbad100
fix(skill): explain referenced response schemas
dxiongya Nov 17, 2026
4b72ccc
fix(skill): describe text search and provider tag compatibility
dxiongya Nov 17, 2026
7bf9d2f
Merge pull request #70 from xapi-labs/feature/agent-service-selection…
dxiongya Nov 19, 2026
cdcfef3
merge: integrate CLI execution envelopes into staging
dxiongya Nov 19, 2026
fe5c3c3
docs(cli): keep the staging skill guide concise
dxiongya Nov 19, 2026
a265814
Merge pull request #71 from xapi-labs/integration/cli-execution-envel…
dxiongya Nov 19, 2026
1540b1b
Merge pull request #72 from xapi-labs/feature/provider-readiness-revi…
dxiongya Nov 19, 2026
7b08dc0
feat(cli): improve service discovery and execution workflows (#73)
dxiongya Nov 19, 2026
5349530
chore(main): release 0.3.2 (#62)
github-actions[bot] Nov 19, 2026
c42797a
chore(release): merge main into dev
dxiongya Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.1"
".": "0.3.2"
}
79 changes: 79 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,84 @@
# Changelog

## [0.3.2](https://github.com/xapi-labs/xapi-cli/compare/v0.3.1...v0.3.2) (2026-11-19)


### Features

* **call:** save complete JSON responses to private files ([a009785](https://github.com/xapi-labs/xapi-cli/commit/a009785e5944d1b63ae461e6b2e35a8eb96b190b))
* **cli:** improve service discovery and execution workflows ([#73](https://github.com/xapi-labs/xapi-cli/issues/73)) ([7b08dc0](https://github.com/xapi-labs/xapi-cli/commit/7b08dc0f6c8bbe9bfbde77cda438031c98e2100f))
* **cli:** improve service discovery, call output, and provider onboarding ([7b08dc0](https://github.com/xapi-labs/xapi-cli/commit/7b08dc0f6c8bbe9bfbde77cda438031c98e2100f))
* **cli:** promote execution envelopes to staging ([a265814](https://github.com/xapi-labs/xapi-cli/commit/a265814bf7d60145833675f3d0f8a72703abb76a))
* **cli:** show service, price and 30-day stats in action tables ([786041b](https://github.com/xapi-labs/xapi-cli/commit/786041bfc4dfaf778cc5aac18a6bc935799d1700))
* **cli:** validate discovery and provider onboarding in staging ([7bf9d2f](https://github.com/xapi-labs/xapi-cli/commit/7bf9d2faf0cc3b1850cb9145a3bfde5315adaf65))
* **provider:** import YAML with explicit default pricing ([194601d](https://github.com/xapi-labs/xapi-cli/commit/194601de767d44fdb4db926393e892da432b66d9))
* **provider:** show a service's review and lifecycle timeline ([810f89a](https://github.com/xapi-labs/xapi-cli/commit/810f89aec0eaa37e9c8df28511340c8166b523db))
* **sandbox:** server-side lifetime and spending caps, concise run output ([a00ed05](https://github.com/xapi-labs/xapi-cli/commit/a00ed054e0133a820dc09daea47cbc3b7a9f9f41))
* **sandbox:** show termination reasons and clarify budget limits ([6849d71](https://github.com/xapi-labs/xapi-cli/commit/6849d71394f2617c8752223bfbf507a64760db89))
* **skill:** explain import lifecycle and trusted discovery metadata ([960796c](https://github.com/xapi-labs/xapi-cli/commit/960796c68f65396ac72579e5144ab6b4e1e2f6e1))
* **skill:** guide service tags, official categories and token usage rules ([73696a4](https://github.com/xapi-labs/xapi-cli/commit/73696a4f7904d8fdc29535988093a43f1d20ab23))
* **skill:** guide Tripo async provider registration ([#61](https://github.com/xapi-labs/xapi-cli/issues/61)) ([550171c](https://github.com/xapi-labs/xapi-cli/commit/550171c4522d5d5a0d0ad0ce936d11e56d48dbef))
* **workers:** key-free local plan, secrets in init's next steps, shortest path in the skill ([33f20eb](https://github.com/xapi-labs/xapi-cli/commit/33f20eb0c1fc109ba3cc5282d7144050d301f6b1))


### Bug Fixes

* **agent:** report failed calls and protect generated chat routes ([a0b9d88](https://github.com/xapi-labs/xapi-cli/commit/a0b9d88897f2630ea015dd647612f258d1b3fa42))
* **call:** clarify uncertain failures and response evidence ([96ddd6a](https://github.com/xapi-labs/xapi-cli/commit/96ddd6accddc5890e938ba080ebd1ed444fe8aa6))
* **call:** preserve replaced files and complete JSON errors ([ac85a83](https://github.com/xapi-labs/xapi-cli/commit/ac85a83225321e28fc89b0f4d9915c30952380fa))
* **cli:** reuse the login session for balance and oauth ([af0a957](https://github.com/xapi-labs/xapi-cli/commit/af0a9571867c080ab747329bb3e1a3c5c075f129))
* **oauth:** inspect endpoint requirements before account binding ([fc59690](https://github.com/xapi-labs/xapi-cli/commit/fc596907dc8ab2c1e7900d177906b7d64c1fcbf2))
* **skill:** describe text search and provider tag compatibility ([4b72ccc](https://github.com/xapi-labs/xapi-cli/commit/4b72ccc446ea914ae5e76f1a7ace58eec28c2572))
* **skill:** explain referenced response schemas ([fbad100](https://github.com/xapi-labs/xapi-cli/commit/fbad100e7fe025eb86bca6f2da886d989c5dcc90))
* **skill:** handle Binance candle boundaries and USD volume ([#63](https://github.com/xapi-labs/xapi-cli/issues/63)) ([889c15e](https://github.com/xapi-labs/xapi-cli/commit/889c15ee0747757c57d6a6179ae27210c8222fca))
* **skill:** stop recommending the retired provider event feed ([#66](https://github.com/xapi-labs/xapi-cli/issues/66)) ([3a7c3d7](https://github.com/xapi-labs/xapi-cli/commit/3a7c3d7cd46348ed680c74451aa90231af2007bd))


### Documentation

* **action:** explain mixed billing states and overlapping amounts ([3d50300](https://github.com/xapi-labs/xapi-cli/commit/3d50300dddd3ce63d301093b1e4b17b8cbf3669c))
* **action:** name the separate raw cost-state headers ([bf86fa8](https://github.com/xapi-labs/xapi-cli/commit/bf86fa828ee7667268e3eed9b6a42ed0c0edca32))
* **cli:** keep the staging skill guide concise ([fe5c3c3](https://github.com/xapi-labs/xapi-cli/commit/fe5c3c32c155650f4de4516ee8fa5bdcee7b6dab))
* **provider:** explain readiness and interrupted review recovery ([24e0b71](https://github.com/xapi-labs/xapi-cli/commit/24e0b71db385da78ba4c2fead1b5f1e350b5a5be))
* **provider:** promote readiness and review guidance to staging ([1540b1b](https://github.com/xapi-labs/xapi-cli/commit/1540b1b9b063eeda0e9c3ee55866941c05791fc6))
* **skill:** describe the restored Twitter search fallback behavior ([ea4a49c](https://github.com/xapi-labs/xapi-cli/commit/ea4a49c9b5caa3b2170bf3862d1c762a7e095706))
* **skill:** how to choose between similar services and read a call's cost ([ef90979](https://github.com/xapi-labs/xapi-cli/commit/ef909791441c8bd354f04aa95063081fbbb48591))
* **skill:** tags and categories in search results ([80522c1](https://github.com/xapi-labs/xapi-cli/commit/80522c1ffc2c8faa880bb600949b2a5590207345))

## [0.3.1](https://github.com/xapi-labs/xapi-cli/compare/v0.3.0...v0.3.1) (2026-10-22)


### Features

* **provider:** upload local LOGO images when creating services ([#59](https://github.com/xapi-labs/xapi-cli/issues/59)) ([8801acc](https://github.com/xapi-labs/xapi-cli/commit/8801acc80fa59468c946af7edf2110b0a19f6154))


### Bug Fixes

* **deps:** prevent undici EventSource memory exhaustion ([3f1d089](https://github.com/xapi-labs/xapi-cli/commit/3f1d08965fd474d07a00eb68e1d568b4ba4efd43))

## [0.3.0](https://github.com/xapi-labs/xapi-cli/compare/v0.2.1...v0.3.0) (2026-10-16)


### ⚠ BREAKING CHANGES

* **workers:** remove manual pause and preserve deployment transport ([#51](https://github.com/xapi-labs/xapi-cli/issues/51))

Migration: remove whole-project `workers retention pause` and `keep-paused` calls from scripts. System financial protection remains automatic; after funding, explicitly use `workers retention resume`. Schedule pause/resume and Queue consumer controls remain available outside financial retention. See the [lifecycle guide](skills/xapi-workers/references/lifecycle.md).

### Features

* **skill:** guide private D1 and R2 exports with CLI commands ([351a952](https://github.com/xapi-labs/xapi-cli/commit/351a9521d5e1e2aaef7f0b9477f8881eac9c65e5))


### Bug Fixes

* **cli:** correct Action discovery and bundled skill workflows ([#57](https://github.com/xapi-labs/xapi-cli/issues/57)) ([d257169](https://github.com/xapi-labs/xapi-cli/commit/d257169b5555bd2a0ebc94f004bda5dd7286262c))
- Single Action schema queries preserve bare root IDs and endpoint UUIDs, and use batch lookup to avoid collection-route collisions. Missing IDs return an error; literal `/root` remains a distinct Action.
- Bundled skills explain typed Decisions requests, model discovery and DYNAMIC settlement; HTTP/2 configuration and transport boundaries; and BlockPI/Aptos JSON and BCS workflows. These guides do not add gRPC support or native CLI BCS request uploads.
* **workers:** remove manual pause and preserve deployment transport ([#51](https://github.com/xapi-labs/xapi-cli/issues/51)) ([634ebc5](https://github.com/xapi-labs/xapi-cli/commit/634ebc5484422010f427b206798d42fb454d8674))
* **workers:** support native assets import and initial Secret setup ([db7faf7](https://github.com/xapi-labs/xapi-cli/commit/db7faf7d0b88c7c017f0c98b27c9a67524e736b3))

## [0.2.1](https://github.com/xapi-labs/xapi-cli/compare/v0.2.0...v0.2.1) (2026-10-10)


Expand Down
93 changes: 79 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Unified interface for capabilities (built-in) and APIs (third-party). Use `--sou
```bash
xapi-to list # list all actions
xapi-to list --source capability # only built-in capabilities
xapi-to list --source api --category DeFi # filter by source and category
xapi-to list --source api --category Crypto # filter by source and category
xapi-to list --page 2 --page-size 20 # pagination
xapi-to list --service-id <id> # filter by service

Expand Down Expand Up @@ -110,6 +110,48 @@ one request object or a mini-batch array; `serper.reviews` accepts only one
object. See the bundled [Serper guide](skills/xapi/guides/serper.md) for the
Action list, examples, and dynamic per-credit billing.

For API Actions, `/` uses the bare service ID (`solana`), while literal `/root`
uses `solana.root`; `.root` is not a root alias. Use exact discovered IDs and
endpoint UUIDs without rewriting them. A replacement serving revision can
invalidate old UUIDs, so rediscover and inspect the new schema on 404 rather
than falling back to a service alias. Multiple HTTP methods still require
`--method` when selecting an endpoint.

Single-schema lookup uses `POST /v1/actions/batch` with one ID, retaining
compatibility with backends without the dedicated `GET /v1/actions/by-id/{id}`
route. The legacy dynamic GET can collide with collection names such as
`search`, `categories` and `services`.

For typed Decisions (`state/questions/answers`, no SSE or chat translation),
use the [AI Gateway guide](skills/xapi/guides/ai_gateway.md). For dedicated
non-EVM RPC or Aptos JSON/BCS, use the [BlockPI guide](skills/xapi/guides/blockpi.md).
`call --output` saves a binary response; raw BCS request input currently needs
the service HTTP Gateway, not JSON Action execution.

For large JSON results, save the complete response envelope locally:

```bash
xapi-to call twitter.tweet_detail --input '{"tweet_id":"1234567890"}' --output-json result.json
```

`--output-json` creates a new private file before executing once, then prints
only `{success, output, bytes}`. The file retains all returned fields, including
`data`, billing and request IDs; it does not fetch media URLs or execute again.
Existing files are never overwritten. The flag cannot be combined with raw
`--output`, `--stream` or `--code`; `--format` affects only the receipt.
Without this flag, JSON stdout is unchanged. Treat saved files as private data.

HTTP errors with a JSON body and HTTP 200 `success: false` responses are saved
in full and still exit nonzero. Network failures, non-JSON/empty responses and
file-write failures remove the incomplete file only if its path still points
to the file this command created, and exit nonzero. A replacement file or
symlink is preserved. If the output path changes during execution, the command
refuses a success receipt; the original file may have been moved. Keep the
output directory stable: identity checks and deletion are separate filesystem
operations, so this is not atomic publication in an adversarial shared directory.
A failed save does not mean execution failed: inspect the request outcome before
any manual retry. No automatic execution retry or second download occurs.

Search uses `--sort default|relevance|price`. `default` is the recommended
order: it considers keyword coverage and match quality first, then favors
stable built-in capabilities when matches are otherwise comparable.
Expand Down Expand Up @@ -159,18 +201,17 @@ replace its upstream URL, service details, and endpoint contract, then run:
# Inspect current rules; no API key required
xapi-to provider spec-rules --format pretty

# Import a raw OpenAPI 3.0.3 JSON object (not a {openApiSpec: ...} envelope)
# Import a raw OpenAPI JSON or YAML object (not a {openApiSpec: ...} envelope)
# Explicit prices in this example are preserved.
xapi-to provider import --file openapi.json > imported.json

# Use the serviceId and revisionId from imported.json (jq is optional)
PROVIDER_SERVICE_ID=$(jq -er '.serviceId' imported.json)
PROVIDER_REVISION_ID=$(jq -er '.revisionId' imported.json)

# Save version configuration to move the draft revision to SANDBOX.
# config.json can be {"description":"Initial release"} when the imported
# endpoints, authentication, and pricing are already complete.
xapi-to provider update "$PROVIDER_SERVICE_ID" \
--revision "$PROVIDER_REVISION_ID" --file config.json
# Imports with endpoints start in SANDBOX on updated backends.
# Inspect configuration and prices before submission.
xapi-to provider get "$PROVIDER_SERVICE_ID" --format pretty

# Submit the specified revision, then wait for the actual publication result
xapi-to provider submit "$PROVIDER_SERVICE_ID" \
Expand All @@ -190,14 +231,27 @@ Import returns the backend validation/preview plus `serviceId`, `revisionId`,
and `state`. An HTTP 201 with `success: false` is a validation failure and exits
nonzero; its structured validation errors are preserved. Registration creates
a new service each time. If a response is lost, inspect `provider list` before
retrying to avoid duplicate services.
retrying to avoid duplicate services. An older deployed backend may still return
`DRAFT` for an import with endpoints; only then save its configuration once with
`provider update --revision <id> --file config.json` to enter `SANDBOX`.

For an authenticated upstream, store credentials in a local JSON object such
as `{"Authorization":"Bearer YOUR_UPSTREAM_KEY"}` and pass
`--private-headers-file private-headers.json` to `provider import`. Keep this
file out of version control. `--file -` and `--private-headers-file -` accept
stdin, but only one input can consume stdin per command. Files must be JSON;
YAML and URL imports are not supported in this command group.
stdin, but only one input can consume stdin per command. Raw imports accept
JSON or single-document YAML; configuration and credentials remain JSON-only.
The CLI does not fetch URLs or external references. Swagger 2.0 conversion and
OpenAPI version/feature validation happen on the server; inspect `spec-rules`
and structured validation errors rather than changing a version label.

Missing per-call prices stop import before a write. Choose an explicit default
with `--default-price 0.001`, or use `--default-price 0` when free access is
intended. The default fills only missing `PER_CALL` prices (including hidden
operations) and preserves authored prices and billing types. Resource, token
and dynamic operations need their own pricing configuration in the spec; a
per-call default cannot fill those. Hidden endpoints remain callable, so they
also need an explicit pricing choice.

`provider update --revision <id>` reads a version configuration object, using the backend
fields `description`, `baseUrl`, `baseUrls`, `authType`, `privateHeaders`,
Expand All @@ -211,8 +265,9 @@ Saving that field alone does not re-import endpoint definitions; configure
- `--mode merge` (default) sends PATCH and preserves omitted fields/endpoints.
Existing endpoint edits require `id`, e.g.
`{"endpoints":[{"id":"ENDPOINT_ID","costPerCall":"0.002"}]}`.
- `--allow-new-endpoints` explicitly permits ID-less merge entries to create
endpoints. Repeating such a merge can create duplicates.
- `--allow-new-endpoints` permits ID-less merge entries past the CLI guard;
backend matching by stable `endpointKey` or derived method/path still applies.
Prefer IDs from the target working revision for ordinary updates.
- `--mode replace` sends PUT. If `endpoints` is provided, it replaces the
endpoint list; include every endpoint you intend to keep. Omitted fields
otherwise follow backend PUT semantics. Use full configuration for replacement.
Expand All @@ -222,6 +277,9 @@ configuration returned by the backend. Find endpoint IDs in
`currentVersion.endpoints`; `provider versions` returns working revision IDs
in `majors[].working.id`. For an already-published API, use the existing
`provider revision start <service-id> <major>` command to create a working revision.
Cloning creates new endpoint UUIDs and preserves `endpointKey`; re-read the
working contract after cloning. Use `majors[].servingRevisionId` to identify
the serving revision. A working revision in `IN_REVIEW` cannot be edited.
`provider update` without `--revision` continues to update service metadata
and rate limits. Existing `version update`, `publish`, and positional `review`
commands remain available. The `submit` and `review --revision` forms are
Expand All @@ -234,7 +292,8 @@ rebuilds the derived authentication configuration. An empty map without an
explicit `authConfig` clears those credentials. Omitting both fields preserves them.

`submit` returns `{serviceId, revisionId, submission}`. A successful submission
does not guarantee publication. `wait` checks the requested revision, succeeds
does not guarantee publication, but a passing review can automatically publish
and switch live traffic. `wait` checks the requested revision, succeeds
only for `PUBLISHED`, and outputs the review report with `success` and `reason`.
`--changelog` is limited to 2,000 characters by both the CLI and backend.
Rejection, a draft/sandbox/suspended revision, or a legacy manual-review hold
Expand All @@ -251,6 +310,12 @@ to inspect the result before repeating the operation. No npm release is implied
by a local source checkout; use `bun run src/index.ts provider ...` or build and
run `node dist/index.js provider ...` while testing unreleased changes.

Use the [AI provider reference](skills/xapi-provider/reference/ai-spec-and-models.md)
for Decisions and DYNAMIC upstream-cost billing, and
[HTTP transport](skills/xapi-provider/reference/http-transport.md) for HTTP/2
OpenAPI metadata, HTTPS/ALPN and update/clear behavior. Import and version update
already pass these fields; no HTTP/2 CLI client or flag is required.

### Sandbox Commands

Sandbox commands provide an AI-friendly cloud computer lifecycle. The fastest
Expand Down Expand Up @@ -867,7 +932,7 @@ xapi-to provider version update <service-id> <version-id> --file ./contract.json
xapi-to provider diff <service-id> 1
xapi-to provider publish <service-id> <revision-id> --changelog-file ./CHANGELOG.md
xapi-to provider metrics <service-id> --days 7
xapi-to provider events --after '<opaque-next-cursor>'
xapi-to provider timeline <service-id> --limit 50
```

Service rate limits are optional and supported only for proxied services. Both
Expand Down
5 changes: 3 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xapi-to",
"version": "0.2.1",
"version": "0.3.2",
"description": "Agent-friendly CLI for xapi - discover and call capabilities and APIs",
"type": "module",
"bin": {
Expand Down Expand Up @@ -58,10 +58,11 @@
"@openai/agents": "0.15.0",
"acorn": "^8.18.0",
"busboy": "1.6.0",
"confbox": "0.1.8",
"jsonc-parser": "^3.3.1",
"smol-toml": "^1.8.0",
"zod": "^4.0.0",
"undici": "6.29.0"
"undici": "6.29.1",
"zod": "^4.0.0"
},
"devDependencies": {
"@types/bun": "^1.3.9",
Expand Down
Loading
Loading