Commit Graph

217 Commits

Author SHA1 Message Date
github-actions[bot] fed0ac2137 Version Packages (#313)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.19.0 @stripe/link-sdk@0.4.0
2026-09-09 09:27:05 -07:00
drapeau-stripe c6464e3750 feat: Add --attempt-trace to link-cli report (#289)
A step-by-step account of the path the agent took on a domain, written so
another agent could follow it. `--step` already records where the agent was
when the outcome occurred; `--attempt-trace` is the whole path.

Sent for every outcome, not just `success`. The dead ends on a failed attempt
are what stop the next agent from spending tokens on them.

The field's value is set almost entirely by how it is described, so the schema
description asks for a specific shape — one numbered line per step, each with
the URL path, the label acted on, the action, and the observed result — and
`skills/create-payment-credential/SKILL.md` carries a worked example. Agents
match an example far more reliably than they follow prose.

Deliberately no zod `.max()`. The API truncates past
`REPORT_ATTEMPT_TRACE_MAX_LENGTH` (8000) and still records the report, so
rejecting client-side would trade a long narrative for a lost outcome.
`--step` and `--freeform-context` keep their `.max(500)` because the API
rejects those outright.

Both the description and the docs tell agents to keep the buyer's personal
data out of it and write `[email]`/`[address]` instead.

Requires the server-side `attempt_trace` field on `POST /agent_observations`,
which ships separately and is not deployed yet. Until it is, the API ignores
the extra key, so sending it is a no-op rather than an error.

Test plan
- `pnpm run test` — 310 tests pass, including new SDK coverage for sending
  `attempt_trace` in the body, omitting it, and passing an over-cap value
  through unchanged for the server to truncate.
- `pnpm run typecheck` and `pnpm biome check .` clean.
- `node packages/cli/dist/cli.js report --schema` shows `attemptTrace` with no
  `maxLength`, while `step`/`freeformContext` keep theirs.


Committed-By-Agent: claude
Orbit-Session-Id: e89d7110-bf81-4181-974b-21b0d5dc0c30

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-09 09:18:16 -07:00
dependabot[bot] ab8e2bc7f6 chore(deps-dev): bump vitest from 4.1.10 to 4.1.11 (#311)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 4.1.10 to 4.1.11.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.11
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-09 11:24:23 -04:00
Steve Kaliski 863fe0a64b add golang sdk (#308) 2026-09-08 18:47:24 -04:00
Steve Kaliski 5a22efbb88 Fix biome formatting in spend-request schema (#309)
Committed-By-Agent: claude
2026-09-08 13:51:09 -04:00
dependabot[bot] b758ed20b7 chore(deps): bump qs from 6.15.3 to 6.16.0 (#301)
Bumps [qs](https://github.com/ljharb/qs) from 6.15.3 to 6.16.0.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.15.3...v6.16.0)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.16.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-08 13:48:03 -04:00
github-actions[bot] 6807413b15 Version Packages (#305)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.18.0
2026-09-08 11:54:38 -04:00
kreese-stripe a4ab1630b0 Remove explicit frontend amount validation (#304) 2026-09-08 11:52:28 -04:00
github-actions[bot] 6ffce88220 Version Packages (#303)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.17.3
2026-09-06 21:37:24 -04:00
sylwang-stripe 02d4dcfe1a Simplify user-info verification guidance (#302) 2026-09-06 21:33:32 -04:00
github-actions[bot] 87af291e01 Version Packages (#300)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.17.2 @stripe/link-sdk@0.3.2
2026-09-06 21:15:10 -04:00
sylwang-stripe 1fe657f23c Expose Agent Wallet verification action URL (#299) 2026-09-06 21:10:55 -04:00
github-actions[bot] 54756f4ae8 Version Packages (#296)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.17.1 @stripe/link-sdk@0.3.1
2026-09-04 16:18:16 -04:00
sylwang-stripe ca643dce42 Expand user info to include spend limits and step-up status (#295)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-09-04 16:05:24 -04:00
github-actions[bot] ed4d571f7a Version Packages (#286)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.17.0 @stripe/link-sdk@0.3.0
2026-09-03 13:48:21 -04:00
kreese-stripe ec7fc04217 Changeset (#291) 2026-09-03 13:39:29 -04:00
kreese-stripe b8b9dce9d1 Handle post-approval amount updates in CLI (#290) 2026-09-03 11:46:50 -04:00
bensandler-stripe f7661734d7 Document email-prefilled Link URLs (#287)
- Tell agents to add a URL-encoded fromEmail parameter when the user's email is already known.
- Cover OAuth verification and spend-request action URLs with one concise rule per skill.
- Add a patch changeset for the published Link CLI skill updates.

Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-09-02 15:20:57 -04:00
jlau-stripe bd20966ce2 [LINK_AI_WALLET-320] Do not render approval qr code for delegated spend requests (#285) 2026-09-01 13:40:56 -04:00
github-actions[bot] f2e143a6dd Version Packages (#284)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.16.0 @stripe/link-sdk@0.2.1
2026-08-31 17:04:38 -04:00
kreese-stripe 033cee0f07 fix: Sanitize shell quotes during mpp flow (#281)
* Sanitize shell quotes

* comments

* Changeset
2026-08-31 17:03:40 -04:00
mangeli-stripe bb3cc6bbee add link-cli skill (#283)
updates

update recommended text

updates:
2026-08-31 16:51:34 -04:00
kreese-stripe 526395e806 feat: Use pm.name from API in rendering payment methods list as PM label (#282)
* Use pm.name from API in rendering payment methods list as PM label

* Fix tests

* fmt

* Fix types
2026-08-31 15:57:45 -04:00
github-actions[bot] 771f8a077b Version Packages (#280)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.15.1
2026-08-28 16:19:04 -04:00
kreese-stripe a1c68720f6 Fix: allow shipping address nickname to be optional in resource (#279) 2026-08-28 19:50:45 +00:00
github-actions[bot] 72991457e7 Version Packages (#278)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.15.0
2026-08-28 09:37:48 -04:00
sylwang-stripe 91f5e8ecd1 Support Link Pay Token for delegated approval spend requests (#273)
* Support delegated approval for Link Pay Token spend requests

--approve now works with --execution-method link_pay_token as long as
--no-request-approval is also passed, so OAuth clients authorized for
spend_requests:approve can create already-approved LPT requests via
create_delegated without going through consumer approval.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Trim PR to just the delegated-approval guard change per review

Drop the README/CLAUDE.md docs and CLI help-text additions for
--approve/--request-approval — delegated LPT users already have their
own skill file, so the CLI's public docs and help text don't need to
cover this path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 09:31:59 -04:00
github-actions[bot] 8e1fd801a8 Version Packages (#277)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.14.2
2026-08-28 09:24:49 -04:00
Jason f77d7451d4 Split the Cursor plugin into plugins/cursor-link with MCP-first skills (#276)
* Split the Cursor plugin into plugins/cursor-link with MCP-first skills

Cursor reaches Link through the hosted MCP server at
api.cursor.com/rest-mcp/stripe-link/mcp, but the plugin's skills were the
CLI-oriented ones shared with Claude and Codex via a symlink to the repo
root. They told Cursor users to npm install @stripe/link-cli and to register
a second, local stdio MCP server, which conflicts with the hosted one.

Give Cursor its own self-contained plugin directory with no shared files, and
write its skills against the tools the hosted server actually exposes:
get_userinfo, list_spend_requests, get_spend_request, list_payment_methods,
list_shipping_addresses, sign_web_bot_auth, and report_agent_observation.

That server exposes no spend-request writes, so the purchase skill covers
finding and spending against a request the user already approved and stops
when none exists. Transactions, balances, and sources are not reachable yet,
so no financial-insights skill ships here; plugins/link still covers that for
CLI-based clients.

With a real .mcp.json in the new directory there is no longer a symlinked
.mcp.json to dodge, so the .link-cursor-mcp.json override is gone.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Route spend approvals through request_virtual_card

The skills described approval as something the agent could not do, which is
true of the Link MCP server but not of Cursor, where request_virtual_card
raises an approval card for exactly this. Rewrite the purchase flow around
that tool: its argument contract (cents including tax and shipping, a 7-word
title, a 100 to 140 character context, line items summing exactly to the
total), the turn ending on the call, the already-pending and denied outcomes,
and the 5/15/30/60 second poll of get_spend_request before retrieving the
card.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Call the product Link, not Stripe Link

Review feedback from @danhill-stripe on the marketplace description.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 09:12:57 -04:00
github-actions[bot] d80f4609ab Version Packages (#275)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.14.1
2026-08-27 19:33:23 -04:00
Dan Hill 7e18e3c812 fix: improve cursor plugin (#274) 2026-08-27 19:31:45 -04:00
Steve Kaliski 44aefbe93d fix ci permissions (#272) 2026-08-27 15:27:23 -04:00
Ryan Aubrey cf96ad08f2 Send link-cli User-Agent on mpp pay merchant requests (#269)
* Send link-cli User-Agent on mpp pay merchant requests.

MPP probes and paid retries used global fetch, so merchants saw Node's default User-Agent and LINK_HTTP_PROXY was skipped. Route those calls through the CLI's configured fetch so User-Agent applies unless -H overrides it.

Co-authored-by: Cursor <cursoragent@cursor.com>
Committed-By-Agent: cursor

* Set mpp pay User-Agent in buildHeaders instead of wrapping fetch.

The fetchImpl wiring was more than this needed; default the header on merchant requests and leave -H User-Agent as an override.

Co-authored-by: Cursor <cursoragent@cursor.com>
Committed-By-Agent: cursor

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-27 09:15:15 -04:00
Dan Hill 99532d0b81 Improve readme (#268)
* improve readme

* Readme cleanup

* Readme cleanup

* Readme cleanup

* Readme cleanup
2026-08-26 10:47:10 -04:00
Steve Kaliski 23c6468ac1 remove provenance entry in sdk package.json (#267) 2026-08-25 14:51:58 -04:00
github-actions[bot] 1fb33a35c2 Version Packages (#266)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-25 14:30:05 -04:00
Steve Kaliski 8ee4dea771 Prepare Link SDK for publication (#265)
Committed-By-Agent: codex

Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-25 14:19:10 -04:00
jlau-stripe 9395ba8bef Bump package version (#264)
* Add changesets for PRs #255, #257, #258, #260, #261

Covers spend-request expires-at, SDK transport hardening, canonical
SDK resource adoption, response validation, and moving auth ownership
into the CLI — none of which shipped with a changeset, so CI had
nothing to version since @stripe/link-cli@0.13.1.

Committed-By-Agent: claude

* Version Packages

Release @stripe/link-cli@0.14.0 via changesets: consume pending changesets and update CHANGELOG.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@stripe/link-cli@0.14.0
2026-08-25 11:51:25 -04:00
Steve Kaliski a29ae922ec Document the credential-only SDK (#262)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-25 11:23:07 -04:00
Steve Kaliski b098ef2f6e Move authentication ownership into CLI (#261)
* Move authentication ownership into CLI

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Test legacy CLI auth storage compatibility

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

---------

Co-authored-by: codex <noreply@openai.com>
2026-08-25 11:04:14 -04:00
Steve Kaliski c949b62610 Validate SDK resource responses (#260)
* Validate SDK resource responses

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Fix approval response fixtures

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Use Zod for SDK response validation

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Keep spend request responses forward-compatible

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

* Normalize approval response URLs

Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>

---------

Co-authored-by: codex <noreply@openai.com>
2026-08-25 10:29:37 -04:00
Steve Kaliski ac44abcbb6 Adopt canonical SDK resource methods in CLI (#258)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-24 12:39:56 -04:00
Steve Kaliski 2a5996def8 Harden SDK transport primitives (#257)
Committed-By-Agent: codex

Co-authored-by: codex <noreply@openai.com>
2026-08-24 11:45:47 -04:00
jlau-stripe ea1ed1d59b Add the ability to set extended spend request expiration (#255)
* Add --expires-at support to spend-request create

Mirrors the mint PR (stripe-internal/mint#2484603) that lets allow-listed
OAuth clients request a spend request expiration up to 7 days out instead
of the default 12 hours, for extended/repeat-use agent scenarios.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Hide --expires-at from docs and CLI schema output

Most OAuth clients aren't allow-listed for the server-side flag; leaving
it documented in SKILL.md/README.md/schema descriptions would prompt
general agents to try it and hit a 400. The flag stays functional
(same as the existing `approve` field) but drops its description so it
no longer shows up meaningfully in --schema/--llms-full.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Note the unit for --expires-at in its schema description

Bare field with no description gave zero signal, but agents seeing an
undocumented integer field could just as easily guess wrong (e.g.
milliseconds). Clarifying the unit alone doesn't explain the gating or
bounds, so it stays unlikely to be tried speculatively.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

* Fix biome formatting on expiresAt schema field

CI was failing pnpm biome check on the line-length wrap for the
one-line describe() call added in 1b6021f.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Committed-By-Agent: claude

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 10:17:21 -04:00
dependabot[bot] f7e62f792c chore(deps): bump nanoid from 3.3.17 to 3.3.18 (#253)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.17 to 3.3.18.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/3.3.18/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.17...3.3.18)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-version: 3.3.18
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-08-18 11:17:06 -04:00
github-actions[bot] d8ba5927d1 Version Packages (#252)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.13.1
2026-08-17 16:32:45 -04:00
shirleyz-stripe 138fa87ddc Clarify payment method confirmation in SKILL.md (#245)
Updated step 3 to clarify payment method confirmation process and adjusted related instructions. Agent no longer needs to list out payment methods and input into spend request; should make the buying process faster
2026-08-17 13:37:19 -04:00
Dan Hill b1640b208d Updates the published limits to $500 (#251)
* fix: correct limits

* fix: correct limits

* add changeset
2026-08-17 13:34:41 -04:00
github-actions[bot] d540389e03 Version Packages (#247)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@stripe/link-cli@0.13.0
2026-08-13 14:36:54 -04:00
Selina Feng 70453ff2d0 Add changelog entry for financial insights command and skill file changes (#249) 2026-08-13 14:26:11 -04:00