Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(license): wire the live add-seats Payment Link

enes56b089f46d06
diff --git a/src/core/license.test.ts b/src/core/license.test.ts
index 61effd416..fb84cc5d6 100644
--- a/src/core/license.test.ts
+++ b/src/core/license.test.ts
@@ -278,7 +278,7 @@ describe('license seats entitlement', () => {
}
})
- it('the add-seats link falls back to the base Pro link when unset', async () => {
+ it('the add-seats link uses its own built-in URL when the env override is unset', async () => {
process.env.NODETERM_CHECKOUT_URL = 'https://pay.test/pro'
delete process.env.NODETERM_SEATS_CHECKOUT_URL
try {
@@ -286,7 +286,11 @@ describe('license seats entitlement', () => {
initLicense()
await flush() // let the launch refresh settle so its rejection isn't left unhandled
await fake.handlers[IPC.licenseUpgrade]('seats')
- expect(fake.opened).toEqual(['https://pay.test/pro?client_reference_id=test-device'])
+ // 'seats' opens the dedicated seats Payment Link — NOT the base Pro link — with the deviceId.
+ const opened = fake.opened[0]
+ expect(opened).not.toContain('pay.test/pro')
+ expect(opened).toContain('buy.stripe.com/')
+ expect(opened).toContain('client_reference_id=test-device')
} finally {
delete process.env.NODETERM_CHECKOUT_URL
}
diff --git a/src/core/license.ts b/src/core/license.ts
index 2ee0f6551..d1cb0455c 100644
--- a/src/core/license.ts
+++ b/src/core/license.ts
@@ -19,10 +19,9 @@ const API_BASE = process.env.NODETERM_API_BASE || 'https://api.nodeterm.dev'
// → keyless ("device-bound") activation. NODETERM_CHECKOUT_URL overrides it (e.g. the test link).
const CHECKOUT_URL = process.env.NODETERM_CHECKOUT_URL || 'https://buy.stripe.com/eVq00lbeY0qNbwz90w7EQ02'
-// Add-seats checkout: a quantity-based Payment Link for buying seats BEYOND the free 3 (the buyer
-// picks the total; extra seats are $5/seat/mo). Falls back to the base Pro link when unset, so a
-// single quantity-based link can serve both flows until a dedicated seats link exists.
-const SEATS_CHECKOUT_URL = process.env.NODETERM_SEATS_CHECKOUT_URL || CHECKOUT_URL
+// Add-seats checkout: the live quantity-based Payment Link for buying seats BEYOND the free 3 (the
+// buyer picks the total; extra seats are $5/seat/mo). NODETERM_SEATS_CHECKOUT_URL overrides it.
+const SEATS_CHECKOUT_URL = process.env.NODETERM_SEATS_CHECKOUT_URL || 'https://buy.stripe.com/28E9AV6YI8Xj303a4A7EQ03'
// Tokens are short-lived (the server mints 7-day entitlements) and the app is designed to
// stay open for days, so a launch-only refresh would let the token expire mid-session and