spl-pay-per-suite 1.1.7 → 1.1.8
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 +25 -24
- package/src/cli.mjs +1 -8
- package/src/mcp-server.mjs +16 -0
- package/src/quote.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spl-pay-per-suite",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "SPL Pay Per Suite
|
|
3
|
+
"version": "1.1.8",
|
|
4
|
+
"description": "SPL Pay Per Suite — unpaid cap 6.9 GB / 3 h, then ~5¢/GB (~4¢ bulk). Stripe + x402. MCP client. No encoder in this package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
7
7
|
"exports": {
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"bin": {
|
|
12
12
|
"spl-pps": "src/cli.mjs",
|
|
13
13
|
"spl-pay-per-suite": "src/cli.mjs",
|
|
14
|
-
"pay-per-suite": "src/cli.mjs"
|
|
14
|
+
"pay-per-suite": "src/cli.mjs",
|
|
15
|
+
"spl-mcp": "src/mcp-server.mjs"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
18
|
"src",
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
],
|
|
53
54
|
"author": "Slid Phi Labs",
|
|
54
55
|
"license": "SEE LICENSE IN LICENSE",
|
|
55
|
-
"homepage": "https://slidphilabs.
|
|
56
|
+
"homepage": "https://www.slidphilabs.com",
|
|
56
57
|
"repository": {
|
|
57
58
|
"type": "git",
|
|
58
59
|
"url": "git+https://github.com/ceedot-rock/SlidPhiLabs.git",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
},
|
|
64
65
|
"funding": {
|
|
65
66
|
"type": "individual",
|
|
66
|
-
"url": "https://slidphilabs.
|
|
67
|
+
"url": "https://www.slidphilabs.com/pay"
|
|
67
68
|
},
|
|
68
69
|
"agentic": {
|
|
69
70
|
"modules": {
|
|
@@ -78,19 +79,19 @@
|
|
|
78
79
|
]
|
|
79
80
|
},
|
|
80
81
|
"commerce": "x402",
|
|
81
|
-
"discovery": "https://slidphilabs.
|
|
82
|
-
"catalog": "https://slidphilabs.
|
|
83
|
-
"web_codec": "https://slidphilabs.
|
|
84
|
-
"site": "https://slidphilabs.
|
|
85
|
-
"llms_txt": "https://slidphilabs.
|
|
86
|
-
"agents_json": "https://slidphilabs.
|
|
87
|
-
"one_liner": "Free first 100 GB suite \u00b7 then ~5\u00a2/GB then ~4\u00a2/GB. Pay: https://slidphilabs.
|
|
82
|
+
"discovery": "https://www.slidphilabs.com/api/agent",
|
|
83
|
+
"catalog": "https://www.slidphilabs.com/api/x402-products",
|
|
84
|
+
"web_codec": "https://www.slidphilabs.com/api/web-codec",
|
|
85
|
+
"site": "https://www.slidphilabs.com",
|
|
86
|
+
"llms_txt": "https://www.slidphilabs.com/llms.txt",
|
|
87
|
+
"agents_json": "https://www.slidphilabs.com/agents.json",
|
|
88
|
+
"one_liner": "Free first 100 GB suite \u00b7 then ~5\u00a2/GB then ~4\u00a2/GB. Pay: https://www.slidphilabs.com/pay \u00b7 GET https://www.slidphilabs.com/api/agent",
|
|
88
89
|
"agent_platform": {
|
|
89
90
|
"cuni": "https://cuni-studio.fly.dev/",
|
|
90
91
|
"agent_rider": "https://agentrider.vercel.app/",
|
|
91
92
|
"quikgater": "https://github.com/ceedot-rock/quikgater"
|
|
92
93
|
},
|
|
93
|
-
"suite": "https://slidphilabs.
|
|
94
|
+
"suite": "https://www.slidphilabs.com/pps",
|
|
94
95
|
"suite_pricing": {
|
|
95
96
|
"free_cap_gb": 100,
|
|
96
97
|
"min_paid_usd": 0.05,
|
|
@@ -100,14 +101,14 @@
|
|
|
100
101
|
"try_gate": "retired",
|
|
101
102
|
"model": "freemium_suite_v4_undercut"
|
|
102
103
|
},
|
|
103
|
-
"welcome": "https://slidphilabs.
|
|
104
|
-
"platform_json": "https://slidphilabs.
|
|
105
|
-
"pay_ui": "https://slidphilabs.
|
|
104
|
+
"welcome": "https://www.slidphilabs.com/api/welcome",
|
|
105
|
+
"platform_json": "https://www.slidphilabs.com/platform.json",
|
|
106
|
+
"pay_ui": "https://www.slidphilabs.com/pay",
|
|
106
107
|
"team_mesh": "https://spl-team-mesh.fly.dev"
|
|
107
108
|
},
|
|
108
109
|
"x402": {
|
|
109
|
-
"discovery": "https://slidphilabs.
|
|
110
|
-
"catalog": "https://slidphilabs.
|
|
110
|
+
"discovery": "https://www.slidphilabs.com/api/agent",
|
|
111
|
+
"catalog": "https://www.slidphilabs.com/api/x402-products",
|
|
111
112
|
"networks": [
|
|
112
113
|
"solana-mainnet-beta",
|
|
113
114
|
"eip155:8453"
|
|
@@ -121,12 +122,12 @@
|
|
|
121
122
|
"sku": "suite",
|
|
122
123
|
"amount_usd": "metered",
|
|
123
124
|
"currency": "usd",
|
|
124
|
-
"buy": "https://slidphilabs.
|
|
125
|
-
"checkout": "https://slidphilabs.
|
|
126
|
-
"access": "https://slidphilabs.
|
|
127
|
-
"catalog": "https://slidphilabs.
|
|
128
|
-
"pay_ui": "https://slidphilabs.
|
|
129
|
-
"doc": "https://slidphilabs.
|
|
125
|
+
"buy": "https://www.slidphilabs.com/pps",
|
|
126
|
+
"checkout": "https://www.slidphilabs.com/api/checkout",
|
|
127
|
+
"access": "https://www.slidphilabs.com/access?product=suite",
|
|
128
|
+
"catalog": "https://www.slidphilabs.com/api/x402-products",
|
|
129
|
+
"pay_ui": "https://www.slidphilabs.com/pay",
|
|
130
|
+
"doc": "https://www.slidphilabs.com/pps",
|
|
130
131
|
"suite_pricing": {
|
|
131
132
|
"free_cap_gb": 100,
|
|
132
133
|
"usd_per_gb_after_free": 0.05,
|
package/src/cli.mjs
CHANGED
|
@@ -102,14 +102,7 @@ async function main() {
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
if (cmd === "mcp") {
|
|
106
|
-
console.log("Start MCP: node src/mcp-server.mjs");
|
|
107
|
-
console.log("Or: npm run mcp --prefix packages/spl-pay-per-suite");
|
|
108
|
-
console.log("Config: { \"command\": \"npx\", \"args\": [\"-y\", \"spl-pay-per-suite\", \"mcp-serve\"] }");
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (cmd === "mcp-serve") {
|
|
105
|
+
if (cmd === "mcp" || cmd === "mcp-serve") {
|
|
113
106
|
await import("./mcp-server.mjs");
|
|
114
107
|
return;
|
|
115
108
|
}
|
package/src/mcp-server.mjs
CHANGED
|
@@ -45,6 +45,12 @@ const SUITE_LINE =
|
|
|
45
45
|
"Free first 100 GB per job · then ~5¢/GB (4¢ after 100 paid GB) · min $0.05 · under ~9¢ cloud egress. Try Gate retired.";
|
|
46
46
|
|
|
47
47
|
const TOOLS = [
|
|
48
|
+
{
|
|
49
|
+
name: "spl_lab_auth",
|
|
50
|
+
description:
|
|
51
|
+
"One lab account for every Slid Phi product. POST https://www.slidphilabs.com/api/auth {action:signup|login,email,password,name}. Then open CuNi, Rider, Chamber with the token. Humans: /signup /login /account.",
|
|
52
|
+
inputSchema: { type: "object", properties: {} },
|
|
53
|
+
},
|
|
48
54
|
{
|
|
49
55
|
name: "spl_pps_info",
|
|
50
56
|
description:
|
|
@@ -214,6 +220,16 @@ function err(id, code, message) {
|
|
|
214
220
|
|
|
215
221
|
async function callTool(name, args = {}) {
|
|
216
222
|
switch (name) {
|
|
223
|
+
case "spl_lab_auth":
|
|
224
|
+
return {
|
|
225
|
+
signup: "https://www.slidphilabs.com/signup",
|
|
226
|
+
login: "https://www.slidphilabs.com/login",
|
|
227
|
+
account: "https://www.slidphilabs.com/account",
|
|
228
|
+
api: "POST https://www.slidphilabs.com/api/auth",
|
|
229
|
+
body: { action: "signup|login", email: "", password: "", name: "" },
|
|
230
|
+
lead_product: "cuni",
|
|
231
|
+
cash_product: "chamber",
|
|
232
|
+
};
|
|
217
233
|
case "spl_pps_info":
|
|
218
234
|
return {
|
|
219
235
|
service: SERVICE_NAME,
|
package/src/quote.mjs
CHANGED
|
@@ -43,9 +43,9 @@ export const STRIPE_PAYMENT_LINK =
|
|
|
43
43
|
process.env.SPL_PPS_PAYMENT_LINK ||
|
|
44
44
|
"https://buy.stripe.com/aFa00k4B70OYetL0O46wE0g";
|
|
45
45
|
export const SITE_PPS =
|
|
46
|
-
process.env.SPL_PPS_SITE || "https://slidphilabs.
|
|
46
|
+
process.env.SPL_PPS_SITE || "https://www.slidphilabs.com/pps";
|
|
47
47
|
export const API_BASE =
|
|
48
|
-
process.env.SPL_PPS_API || "https://slidphilabs.
|
|
48
|
+
process.env.SPL_PPS_API || "https://www.slidphilabs.com";
|
|
49
49
|
|
|
50
50
|
export function usageFeeCents(billableBytes) {
|
|
51
51
|
const b = Math.max(0, Number(billableBytes) || 0);
|