@scriptmasterlabs/mcp-x402 2.1.0 → 2.1.2

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.
Files changed (64) hide show
  1. package/.well-known/agentcard.json +34 -34
  2. package/.well-known/ai.txt +32 -32
  3. package/CONTRIBUTING.md +76 -76
  4. package/LICENSE +21 -21
  5. package/README.md +304 -304
  6. package/agents.json +81 -81
  7. package/ai/faq.json +74 -74
  8. package/ai/summary.json +157 -157
  9. package/dist/server/apm/capabilities.d.ts +31 -0
  10. package/dist/server/apm/capabilities.d.ts.map +1 -0
  11. package/dist/server/apm/capabilities.js +157 -0
  12. package/dist/server/apm/capabilities.js.map +1 -0
  13. package/dist/server/apm/execute.d.ts +18 -0
  14. package/dist/server/apm/execute.d.ts.map +1 -0
  15. package/dist/server/apm/execute.js +37 -0
  16. package/dist/server/apm/execute.js.map +1 -0
  17. package/dist/server/apm/matcher.d.ts +17 -0
  18. package/dist/server/apm/matcher.d.ts.map +1 -0
  19. package/dist/server/apm/matcher.js +71 -0
  20. package/dist/server/apm/matcher.js.map +1 -0
  21. package/dist/server/apm/quote.d.ts +53 -0
  22. package/dist/server/apm/quote.d.ts.map +1 -0
  23. package/dist/server/apm/quote.js +82 -0
  24. package/dist/server/apm/quote.js.map +1 -0
  25. package/dist/server/apm/schema.d.ts +109 -0
  26. package/dist/server/apm/schema.d.ts.map +1 -0
  27. package/dist/server/apm/schema.js +31 -0
  28. package/dist/server/apm/schema.js.map +1 -0
  29. package/dist/server/payments/agent-payment.d.ts +71 -0
  30. package/dist/server/payments/agent-payment.d.ts.map +1 -0
  31. package/dist/server/payments/agent-payment.js +112 -0
  32. package/dist/server/payments/agent-payment.js.map +1 -0
  33. package/dist/server/payments/x402.d.ts +26 -0
  34. package/dist/server/payments/x402.d.ts.map +1 -1
  35. package/dist/server/payments/x402.js +112 -3
  36. package/dist/server/payments/x402.js.map +1 -1
  37. package/dist/server/registry/backends.d.ts +29 -0
  38. package/dist/server/registry/backends.d.ts.map +1 -0
  39. package/dist/server/registry/backends.js +61 -0
  40. package/dist/server/registry/backends.js.map +1 -0
  41. package/dist/server/registry/pricing.d.ts.map +1 -1
  42. package/dist/server/registry/pricing.js +25 -24
  43. package/dist/server/registry/pricing.js.map +1 -1
  44. package/dist/server/tools/apm-execute.d.ts +3 -0
  45. package/dist/server/tools/apm-execute.d.ts.map +1 -0
  46. package/dist/server/tools/apm-execute.js +94 -0
  47. package/dist/server/tools/apm-execute.js.map +1 -0
  48. package/dist/server/tools/apm.d.ts +3 -0
  49. package/dist/server/tools/apm.d.ts.map +1 -0
  50. package/dist/server/tools/apm.js +135 -0
  51. package/dist/server/tools/apm.js.map +1 -0
  52. package/dist/server/tools/discovery.d.ts.map +1 -1
  53. package/dist/server/tools/discovery.js +20 -27
  54. package/dist/server/tools/discovery.js.map +1 -1
  55. package/dist/server/tools/index.d.ts.map +1 -1
  56. package/dist/server/tools/index.js +4 -0
  57. package/dist/server/tools/index.js.map +1 -1
  58. package/dist/server/tools/squeezeos.d.ts.map +1 -1
  59. package/dist/server/tools/squeezeos.js +25 -7
  60. package/dist/server/tools/squeezeos.js.map +1 -1
  61. package/eslint.config.mjs +28 -0
  62. package/llms.txt +170 -170
  63. package/package.json +78 -78
  64. package/server.json +24 -52
package/ai/summary.json CHANGED
@@ -1,157 +1,157 @@
1
- {
2
- "product": "mcp-x402",
3
- "tagline": "The First MCP Server That Pays for Itself",
4
- "description": "mcp-x402 connects AI agents (Claude, Cursor, and any MCP-compatible agent) to ScriptMasterLabs financial intelligence products via the x402 payment protocol. Agents provision their own wallets, discover pricing from agents.json or llms.txt, pay autonomously with stablecoins, and receive cryptographic receipts — no API keys, no human billing required.",
5
- "url": "https://scriptmasterlabs.com",
6
- "npm": "https://www.npmjs.com/package/@scriptmasterlabs/mcp-x402",
7
- "install_command": "npx @scriptmasterlabs/mcp-x402",
8
- "license": "MIT",
9
- "version": "1.0.0",
10
- "launch_target": "2026-07-02",
11
- "organization": "ScriptMasterLabs / Script Master Labs LLC (SDVOSB)",
12
- "github": "https://github.com/timwal78/sml_portfolio/tree/main/mcp-x402",
13
-
14
- "transports": {
15
- "stdio": "Default — Claude Code, Claude Desktop",
16
- "sse": "Cursor/remote — run with MCP_TRANSPORT=sse, listens on port 3402"
17
- },
18
-
19
- "claude_config": {
20
- "mcpServers": {
21
- "sml": {
22
- "command": "npx",
23
- "args": ["@scriptmasterlabs/mcp-x402"]
24
- }
25
- }
26
- },
27
-
28
- "tools": [
29
- {
30
- "name": "leviathan_signal",
31
- "cost": "$0.05 USDC",
32
- "auth": "AP2 mandate required",
33
- "description": "Institutional-grade squeeze signals. Multi-engine verdict from OracleEngine + RDT + SML Fractal Cascade.",
34
- "example_params": {"ticker": "MSTR", "signal_type": "squeeze", "min_confidence": 75}
35
- },
36
- {
37
- "name": "xmit_edgar_decode",
38
- "cost": "$0.02 USDC",
39
- "auth": "AP2 mandate required",
40
- "description": "Parse SEC DEF 14A / 13F / 13D filings. Raw filing content never leaves SML servers.",
41
- "example_params": {"filing_url": "https://www.sec.gov/Archives/edgar/data/...", "parse_target": "executive_pay", "format": "json"}
42
- },
43
- {
44
- "name": "xdeo_earnings_estimate",
45
- "cost": "$0.02 USDC",
46
- "auth": "AP2 mandate required",
47
- "description": "Decentralized earnings oracle. Earns +2 Agent Credit Bureau score points per successful call.",
48
- "example_params": {"ticker": "NVDA", "fiscal_quarter": "Q12025", "estimate_type": "all"}
49
- },
50
- {
51
- "name": "ftd_threshold_scan",
52
- "cost": "Alerts FREE / Full $0.05 USDC",
53
- "auth": "None for alerts tier",
54
- "description": "SEC Reg SHO Failure-to-Deliver spike detection. 15-minute cache on full data.",
55
- "example_params": {"scan_type": "alerts"}
56
- },
57
- {
58
- "name": "nexus_agent_hire",
59
- "cost": "Query FREE / Hire: 5% commission",
60
- "auth": "None for query",
61
- "description": "Agent marketplace. Find and hire specialized AI agents by capability and budget.",
62
- "example_params": {"capability": "options flow analysis", "max_budget": "1.00", "action": "query"}
63
- },
64
- {
65
- "name": "crawl_paid_fetch",
66
- "cost": "$0.005 USDC",
67
- "auth": "None",
68
- "description": "Pay-per-fetch web scraping. Human users bypass automatically. Extracts tables, text, or raw HTML.",
69
- "example_params": {"url": "https://example.com/data", "extract": "tables"}
70
- }
71
- ],
72
-
73
- "payment_flow": [
74
- "Agent discovers tool prices from agents.json or llms.txt",
75
- "AP2 mandate checked — Agent Credit Bureau score ≥ 300 triggers auto-approve",
76
- "x402 stablecoin transfer on cheapest/fastest available chain",
77
- "402Proof cryptographic receipt returned in _meta block of every response",
78
- "Agent Credit Bureau score updated after successful call"
79
- ],
80
-
81
- "payment_response_meta": {
82
- "_meta": {
83
- "receipt_id": "uuid",
84
- "tx_hash": "0xabc...",
85
- "chain": "base",
86
- "amount_paid": "0.05 USDC",
87
- "timestamp": 1750000000000
88
- }
89
- },
90
-
91
- "payment_chains": [
92
- {"chain": "Base", "currency": "USDC", "role": "preferred", "latency": "<3s"},
93
- {"chain": "XRPL", "currency": "RLUSD", "role": "fallback", "latency": "~500ms"},
94
- {"chain": "Solana", "currency": "USDC", "role": "last resort", "latency": "varies"}
95
- ],
96
-
97
- "spend_controls": {
98
- "auto_approve_threshold": "$1.00 per session",
99
- "daily_spend_cap": "$50.00 per wallet",
100
- "price_cache_ttl": "60 seconds"
101
- },
102
-
103
- "agent_credit_bureau": {
104
- "score_range": "300–850 (FICO-style)",
105
- "registry": "XRPL wallet addresses",
106
- "auto_approve_min_score": 300,
107
- "score_gains": "+2 per successful xdeo_earnings_estimate call; more from other on-chain activity",
108
- "endpoint": "https://four02proof.onrender.com/v1/bureau/score/{wallet}"
109
- },
110
-
111
- "security": {
112
- "private_keys": "OS keychain only (macOS Keychain / Windows DPAPI / Linux Secret Service via keytar). Never in env vars or files.",
113
- "api_transport": "mTLS with pinned cert on all SML API calls",
114
- "input_validation": "Zod schema, 100% tool coverage",
115
- "audit_log": "Append-only SHA-256 HMAC chained log, 7-day local + cloud backup",
116
- "pii_in_logs": "Wallet addresses hashed (SHA-256 prefix), filing content redacted",
117
- "rate_limits": "100 req/min per tool, 1000 req/day per wallet",
118
- "ap2_mandate": "Verified before every paid call, fail-closed"
119
- },
120
-
121
- "sdk": {
122
- "package": "@scriptmasterlabs/mcp-x402-sdk",
123
- "install": "npm i @scriptmasterlabs/mcp-x402-sdk",
124
- "purpose": "Add x402 payments to any MCP server in 5 lines of TypeScript",
125
- "handles": ["wallet provisioning", "AP2 mandate", "chain routing", "receipts", "audit logging"]
126
- },
127
-
128
- "ecosystem": [
129
- {"service": "SqueezeOS API", "url": "https://squeezeos-api.onrender.com", "role": "Market intelligence (33 MCP tools, RLUSD/402Proof)"},
130
- {"service": "402Proof", "url": "https://four02proof.onrender.com", "role": "x402 payment receipts + Agent Credit Bureau"},
131
- {"service": "Ghost Layer", "url": "https://ghost-layer.onrender.com", "role": "XRPL+Base toll gateway"},
132
- {"service": "ScriptMasterLabs", "url": "https://scriptmasterlabs.com", "role": "Operator homepage"}
133
- ],
134
-
135
- "moat": [
136
- "Only MCP server with live x402 + AP2 + multi-chain production stack",
137
- "Only MCP server with Agent Credit Bureau (300–850 scores) built in",
138
- "Only one backed by live financial intelligence marketplace (SqueezeOS)",
139
- "SDVOSB federal credibility",
140
- "MIT licensed — no proprietary lock-in"
141
- ],
142
-
143
- "target_users": [
144
- "AI agent developers adding autonomous payments to their agents",
145
- "MCP server authors wanting to monetize via x402 (use the SDK)",
146
- "Quantitative analysts using AI agents for financial research",
147
- "Crypto-native developers building agent-to-agent commerce"
148
- ],
149
-
150
- "discovery": {
151
- "llms_txt": "https://mcp-x402.scriptmasterlabs.com/llms.txt",
152
- "agents_json": "https://mcp-x402.scriptmasterlabs.com/agents.json",
153
- "agentcard": "https://mcp-x402.scriptmasterlabs.com/.well-known/agentcard.json",
154
- "summary": "https://mcp-x402.scriptmasterlabs.com/ai/summary.json",
155
- "faq": "https://mcp-x402.scriptmasterlabs.com/ai/faq.json"
156
- }
157
- }
1
+ {
2
+ "product": "mcp-x402",
3
+ "tagline": "The First MCP Server That Pays for Itself",
4
+ "description": "mcp-x402 connects AI agents (Claude, Cursor, and any MCP-compatible agent) to ScriptMasterLabs financial intelligence products via the x402 payment protocol. Agents provision their own wallets, discover pricing from agents.json or llms.txt, pay autonomously with stablecoins, and receive cryptographic receipts — no API keys, no human billing required.",
5
+ "url": "https://scriptmasterlabs.com",
6
+ "npm": "https://www.npmjs.com/package/@scriptmasterlabs/mcp-x402",
7
+ "install_command": "npx @scriptmasterlabs/mcp-x402",
8
+ "license": "MIT",
9
+ "version": "1.0.0",
10
+ "launch_target": "2026-07-02",
11
+ "organization": "ScriptMasterLabs / Script Master Labs LLC (SDVOSB)",
12
+ "github": "https://github.com/timwal78/sml_portfolio/tree/main/mcp-x402",
13
+
14
+ "transports": {
15
+ "stdio": "Default — Claude Code, Claude Desktop",
16
+ "sse": "Cursor/remote — run with MCP_TRANSPORT=sse, listens on port 3402"
17
+ },
18
+
19
+ "claude_config": {
20
+ "mcpServers": {
21
+ "sml": {
22
+ "command": "npx",
23
+ "args": ["@scriptmasterlabs/mcp-x402"]
24
+ }
25
+ }
26
+ },
27
+
28
+ "tools": [
29
+ {
30
+ "name": "leviathan_signal",
31
+ "cost": "$0.05 USDC",
32
+ "auth": "AP2 mandate required",
33
+ "description": "Institutional-grade squeeze signals. Multi-engine verdict from OracleEngine + RDT + SML Fractal Cascade.",
34
+ "example_params": {"ticker": "MSTR", "signal_type": "squeeze", "min_confidence": 75}
35
+ },
36
+ {
37
+ "name": "xmit_edgar_decode",
38
+ "cost": "$0.02 USDC",
39
+ "auth": "AP2 mandate required",
40
+ "description": "Parse SEC DEF 14A / 13F / 13D filings. Raw filing content never leaves SML servers.",
41
+ "example_params": {"filing_url": "https://www.sec.gov/Archives/edgar/data/...", "parse_target": "executive_pay", "format": "json"}
42
+ },
43
+ {
44
+ "name": "xdeo_earnings_estimate",
45
+ "cost": "$0.02 USDC",
46
+ "auth": "AP2 mandate required",
47
+ "description": "Decentralized earnings oracle. Earns +2 Agent Credit Bureau score points per successful call.",
48
+ "example_params": {"ticker": "NVDA", "fiscal_quarter": "Q12025", "estimate_type": "all"}
49
+ },
50
+ {
51
+ "name": "ftd_threshold_scan",
52
+ "cost": "Alerts FREE / Full $0.05 USDC",
53
+ "auth": "None for alerts tier",
54
+ "description": "SEC Reg SHO Failure-to-Deliver spike detection. 15-minute cache on full data.",
55
+ "example_params": {"scan_type": "alerts"}
56
+ },
57
+ {
58
+ "name": "nexus_agent_hire",
59
+ "cost": "Query FREE / Hire: 5% commission",
60
+ "auth": "None for query",
61
+ "description": "Agent marketplace. Find and hire specialized AI agents by capability and budget.",
62
+ "example_params": {"capability": "options flow analysis", "max_budget": "1.00", "action": "query"}
63
+ },
64
+ {
65
+ "name": "crawl_paid_fetch",
66
+ "cost": "$0.005 USDC",
67
+ "auth": "None",
68
+ "description": "Pay-per-fetch web scraping. Human users bypass automatically. Extracts tables, text, or raw HTML.",
69
+ "example_params": {"url": "https://example.com/data", "extract": "tables"}
70
+ }
71
+ ],
72
+
73
+ "payment_flow": [
74
+ "Agent discovers tool prices from agents.json or llms.txt",
75
+ "AP2 mandate checked — Agent Credit Bureau score ≥ 300 triggers auto-approve",
76
+ "x402 stablecoin transfer on cheapest/fastest available chain",
77
+ "402Proof cryptographic receipt returned in _meta block of every response",
78
+ "Agent Credit Bureau score updated after successful call"
79
+ ],
80
+
81
+ "payment_response_meta": {
82
+ "_meta": {
83
+ "receipt_id": "uuid",
84
+ "tx_hash": "0xabc...",
85
+ "chain": "base",
86
+ "amount_paid": "0.05 USDC",
87
+ "timestamp": 1750000000000
88
+ }
89
+ },
90
+
91
+ "payment_chains": [
92
+ {"chain": "Base", "currency": "USDC", "role": "preferred", "latency": "<3s"},
93
+ {"chain": "XRPL", "currency": "RLUSD", "role": "fallback", "latency": "~500ms"},
94
+ {"chain": "Solana", "currency": "USDC", "role": "last resort", "latency": "varies"}
95
+ ],
96
+
97
+ "spend_controls": {
98
+ "auto_approve_threshold": "$1.00 per session",
99
+ "daily_spend_cap": "$50.00 per wallet",
100
+ "price_cache_ttl": "60 seconds"
101
+ },
102
+
103
+ "agent_credit_bureau": {
104
+ "score_range": "300–850 (FICO-style)",
105
+ "registry": "XRPL wallet addresses",
106
+ "auto_approve_min_score": 300,
107
+ "score_gains": "+2 per successful xdeo_earnings_estimate call; more from other on-chain activity",
108
+ "endpoint": "https://four02proof.onrender.com/v1/bureau/score/{wallet}"
109
+ },
110
+
111
+ "security": {
112
+ "private_keys": "OS keychain only (macOS Keychain / Windows DPAPI / Linux Secret Service via keytar). Never in env vars or files.",
113
+ "api_transport": "mTLS with pinned cert on all SML API calls",
114
+ "input_validation": "Zod schema, 100% tool coverage",
115
+ "audit_log": "Append-only SHA-256 HMAC chained log, 7-day local + cloud backup",
116
+ "pii_in_logs": "Wallet addresses hashed (SHA-256 prefix), filing content redacted",
117
+ "rate_limits": "100 req/min per tool, 1000 req/day per wallet",
118
+ "ap2_mandate": "Verified before every paid call, fail-closed"
119
+ },
120
+
121
+ "sdk": {
122
+ "package": "@scriptmasterlabs/mcp-x402-sdk",
123
+ "install": "npm i @scriptmasterlabs/mcp-x402-sdk",
124
+ "purpose": "Add x402 payments to any MCP server in 5 lines of TypeScript",
125
+ "handles": ["wallet provisioning", "AP2 mandate", "chain routing", "receipts", "audit logging"]
126
+ },
127
+
128
+ "ecosystem": [
129
+ {"service": "SqueezeOS API", "url": "https://squeezeos-api.onrender.com", "role": "Market intelligence (33 MCP tools, RLUSD/402Proof)"},
130
+ {"service": "402Proof", "url": "https://four02proof.onrender.com", "role": "x402 payment receipts + Agent Credit Bureau"},
131
+ {"service": "Ghost Layer", "url": "https://ghost-layer.onrender.com", "role": "XRPL+Base toll gateway"},
132
+ {"service": "ScriptMasterLabs", "url": "https://scriptmasterlabs.com", "role": "Operator homepage"}
133
+ ],
134
+
135
+ "moat": [
136
+ "Only MCP server with live x402 + AP2 + multi-chain production stack",
137
+ "Only MCP server with Agent Credit Bureau (300–850 scores) built in",
138
+ "Only one backed by live financial intelligence marketplace (SqueezeOS)",
139
+ "SDVOSB federal credibility",
140
+ "MIT licensed — no proprietary lock-in"
141
+ ],
142
+
143
+ "target_users": [
144
+ "AI agent developers adding autonomous payments to their agents",
145
+ "MCP server authors wanting to monetize via x402 (use the SDK)",
146
+ "Quantitative analysts using AI agents for financial research",
147
+ "Crypto-native developers building agent-to-agent commerce"
148
+ ],
149
+
150
+ "discovery": {
151
+ "llms_txt": "https://mcp-x402.scriptmasterlabs.com/llms.txt",
152
+ "agents_json": "https://mcp-x402.scriptmasterlabs.com/agents.json",
153
+ "agentcard": "https://mcp-x402.scriptmasterlabs.com/.well-known/agentcard.json",
154
+ "summary": "https://mcp-x402.scriptmasterlabs.com/ai/summary.json",
155
+ "faq": "https://mcp-x402.scriptmasterlabs.com/ai/faq.json"
156
+ }
157
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * APM capability index — the real, curated map of what each LIVE SML tool can do,
3
+ * how fresh its data is, which payment chains it settles on, and what it costs.
4
+ *
5
+ * Prices mirror src/server/registry/pricing.ts (BASE_PRICES). `product` MUST match a
6
+ * product key in src/server/registry/backends.ts so live-status can be resolved.
7
+ *
8
+ * This is the matchable surface APM negotiates against — not a simulation.
9
+ */
10
+ export interface Capability {
11
+ /** MCP tool name an agent would ultimately call. */
12
+ tool: string;
13
+ /** Backend product key (must match backends.ts `product`). */
14
+ product: string;
15
+ /** True if calling the tool costs USDC. */
16
+ paid: boolean;
17
+ /** Base price in USDC (string, '0.00' for free tools). */
18
+ basePrice: string;
19
+ /** Payment chains this tool settles on. Data tools accept all three. */
20
+ paymentChains: string[];
21
+ /** Worst-case data staleness in seconds (0 = live/realtime). */
22
+ freshnessSec: number;
23
+ /** True if the tool cites authoritative sources (e.g. SEC filings). */
24
+ attribution: boolean;
25
+ /** Match keywords. */
26
+ tags: string[];
27
+ /** One-line description. */
28
+ summary: string;
29
+ }
30
+ export declare const CAPABILITIES: Capability[];
31
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../src/server/apm/capabilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,UAAU;IACzB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,WAAW,EAAE,OAAO,CAAC;IACrB,sBAAsB;IACtB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,eAAO,MAAM,YAAY,EAAE,UAAU,EAsJpC,CAAC"}
@@ -0,0 +1,157 @@
1
+ "use strict";
2
+ /**
3
+ * APM capability index — the real, curated map of what each LIVE SML tool can do,
4
+ * how fresh its data is, which payment chains it settles on, and what it costs.
5
+ *
6
+ * Prices mirror src/server/registry/pricing.ts (BASE_PRICES). `product` MUST match a
7
+ * product key in src/server/registry/backends.ts so live-status can be resolved.
8
+ *
9
+ * This is the matchable surface APM negotiates against — not a simulation.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CAPABILITIES = void 0;
13
+ const ALL_CHAINS = ['base', 'xrpl', 'solana'];
14
+ exports.CAPABILITIES = [
15
+ // ── SqueezeOS (squeezeos-api.onrender.com) ────────────────────────────────
16
+ {
17
+ tool: 'squeezeos_council', product: 'SqueezeOS', paid: true, basePrice: '0.10',
18
+ paymentChains: ALL_CHAINS, freshnessSec: 60, attribution: false,
19
+ tags: ['squeeze', 'signal', 'equity', 'equities', 'stock', 'stocks', 'ticker', 'council', 'verdict', 'momentum', 'trading', 'ai', 'confidence'],
20
+ summary: 'Multi-engine AI council verdict for any symbol — highest-confidence squeeze signal.',
21
+ },
22
+ {
23
+ tool: 'squeezeos_scan', product: 'SqueezeOS', paid: true, basePrice: '0.05',
24
+ paymentChains: ALL_CHAINS, freshnessSec: 300, attribution: false,
25
+ tags: ['scan', 'screener', 'candidates', 'squeeze', 'list', 'stocks', 'ranked', 'discover'],
26
+ summary: 'Full $1–$50 squeeze candidate scanner — ranked by squeeze score.',
27
+ },
28
+ {
29
+ tool: 'squeezeos_options', product: 'SqueezeOS', paid: true, basePrice: '0.05',
30
+ paymentChains: ALL_CHAINS, freshnessSec: 60, attribution: false,
31
+ tags: ['options', 'flow', 'darkpool', 'sweep', 'greeks', 'derivatives', 'unusual'],
32
+ summary: 'Institutional options flow analysis — dark pool and sweep detection.',
33
+ },
34
+ {
35
+ tool: 'squeezeos_iwm', product: 'SqueezeOS', paid: true, basePrice: '0.03',
36
+ paymentChains: ALL_CHAINS, freshnessSec: 5, attribution: false,
37
+ tags: ['iwm', '0dte', 'options', 'greeks', 'realtime', 'index', 'russell', 'probability'],
38
+ summary: 'IWM 0DTE contract scorer — real-time Greeks and probability.',
39
+ },
40
+ {
41
+ tool: 'squeezeos_preview', product: 'SqueezeOS', paid: false, basePrice: '0.00',
42
+ paymentChains: ALL_CHAINS, freshnessSec: 900, attribution: false,
43
+ tags: ['preview', 'bias', 'signal', 'free', 'ticker', 'sample'],
44
+ summary: 'Free signal bias preview for any ticker (15-min cache).',
45
+ },
46
+ {
47
+ tool: 'squeezeos_oracle', product: 'SqueezeOS', paid: false, basePrice: '0.00',
48
+ paymentChains: ALL_CHAINS, freshnessSec: 5, attribution: false,
49
+ tags: ['oracle', 'directive', 'signal', 'aggregate', 'free', 'fractal'],
50
+ summary: 'Free oracle directive — aggregated signal across all engines.',
51
+ },
52
+ // ── Core SML Intelligence (served by squeezeos-api) ───────────────────────
53
+ {
54
+ tool: 'leviathan_signal', product: 'SqueezeOS', paid: true, basePrice: '0.05',
55
+ paymentChains: ALL_CHAINS, freshnessSec: 60, attribution: false,
56
+ tags: ['squeeze', 'signal', 'institutional', 'verdict', 'ticker', 'momentum', 'leviathan', 'proprietary'],
57
+ summary: 'Institutional squeeze signals — proprietary multi-engine verdict for any ticker.',
58
+ },
59
+ {
60
+ tool: 'xmit_edgar_decode', product: 'SqueezeOS', paid: true, basePrice: '0.02',
61
+ paymentChains: ALL_CHAINS, freshnessSec: 86400, attribution: true,
62
+ tags: ['sec', 'edgar', 'filing', 'filings', '13f', '13d', 'def14a', 'parse', 'proxy', 'institutional', 'holdings'],
63
+ summary: 'Parse SEC DEF 14A / 13F / 13D filings — raw text never leaves SML servers.',
64
+ },
65
+ {
66
+ tool: 'xdeo_earnings_estimate', product: 'SqueezeOS', paid: true, basePrice: '0.02',
67
+ paymentChains: ALL_CHAINS, freshnessSec: 3600, attribution: true,
68
+ tags: ['earnings', 'estimate', 'oracle', 'consensus', 'eps', 'finance', 'forecast'],
69
+ summary: 'Decentralized earnings oracle — consensus estimate across data sources.',
70
+ },
71
+ {
72
+ tool: 'ftd_threshold_scan', product: 'SqueezeOS', paid: false, basePrice: '0.05',
73
+ paymentChains: ALL_CHAINS, freshnessSec: 900, attribution: true,
74
+ tags: ['ftd', 'fail', 'deliver', 'regsho', 'threshold', 'sec', 'short', 'naked'],
75
+ summary: 'SEC Reg SHO FTD data — threshold alerts free, full scanner $0.05.',
76
+ },
77
+ {
78
+ tool: 'crawl_paid_fetch', product: 'SqueezeOS', paid: true, basePrice: '0.005',
79
+ paymentChains: ALL_CHAINS, freshnessSec: 0, attribution: false,
80
+ tags: ['crawl', 'scrape', 'fetch', 'web', 'url', 'page', 'data', 'http'],
81
+ summary: 'Pay-per-fetch web scraping for AI agents ($0.005/fetch).',
82
+ },
83
+ {
84
+ tool: 'nexus_agent_hire', product: 'SqueezeOS', paid: false, basePrice: '0.00',
85
+ paymentChains: ALL_CHAINS, freshnessSec: 0, attribution: false,
86
+ tags: ['agent', 'hire', 'marketplace', 'job', 'delegate', 'a2a', 'workforce'],
87
+ summary: 'Agent job marketplace — browse free, hire charges 5% commission.',
88
+ },
89
+ // ── Ghost Layer (cross-chain settlement) ──────────────────────────────────
90
+ {
91
+ tool: 'ghost_route', product: 'Ghost Layer', paid: true, basePrice: '0.01',
92
+ paymentChains: ['xrpl', 'base'], freshnessSec: 0, attribution: false,
93
+ tags: ['route', 'cross-chain', 'crosschain', 'bridge', 'settlement', 'xrpl', 'base', 'toll', 'transfer', 'private'],
94
+ summary: 'Route a transaction through the dual-chain XRPL+Base gateway with toll collection.',
95
+ },
96
+ // ── 402Proof (payment + trust) ────────────────────────────────────────────
97
+ {
98
+ tool: 'proof_invoice', product: '402Proof', paid: false, basePrice: '0.00',
99
+ paymentChains: ALL_CHAINS, freshnessSec: 0, attribution: false,
100
+ tags: ['invoice', 'x402', 'payment', 'bill', 'quote', 'pay'],
101
+ summary: 'Generate an x402 payment invoice for any SML endpoint.',
102
+ },
103
+ {
104
+ tool: 'proof_verify', product: '402Proof', paid: false, basePrice: '0.00',
105
+ paymentChains: ALL_CHAINS, freshnessSec: 0, attribution: false,
106
+ tags: ['verify', 'payment', 'tx', 'receipt', 'confirm', 'settlement'],
107
+ summary: 'Verify an XRPL or Base payment tx_hash — returns receipt and confirmation.',
108
+ },
109
+ {
110
+ tool: 'proof_credit_score', product: '402Proof', paid: false, basePrice: '0.00',
111
+ paymentChains: ALL_CHAINS, freshnessSec: 0, attribution: false,
112
+ tags: ['credit', 'score', 'reputation', 'bureau', 'trust', 'history', 'identity'],
113
+ summary: 'Get an agent credit score (300–850) and payment history by wallet.',
114
+ },
115
+ // ── RLUSD Rails (XRPL/Xahau settlement) ───────────────────────────────────
116
+ {
117
+ tool: 'rails_transfer', product: 'RLUSD Rails', paid: true, basePrice: '0.01',
118
+ paymentChains: ['xrpl'], freshnessSec: 0, attribution: false,
119
+ tags: ['rlusd', 'xrp', 'transfer', 'remittance', 'payment', 'settlement', 'xrpl', 'xahau', 'send'],
120
+ summary: 'Initiate an RLUSD or XRP transfer via SML Rails — returns tx_hash.',
121
+ },
122
+ // ── XRPL Copy-Trader ──────────────────────────────────────────────────────
123
+ {
124
+ tool: 'copytrader_subscribe', product: 'Copy-Trader', paid: true, basePrice: '0.05',
125
+ paymentChains: ['xrpl'], freshnessSec: 60, attribution: false,
126
+ tags: ['whale', 'copy', 'mirror', 'trade', 'xrpl', 'follow', 'position'],
127
+ summary: 'Subscribe to mirror a whale wallet — auto-copies future positions.',
128
+ },
129
+ // ── Memecoin Launchpad ────────────────────────────────────────────────────
130
+ {
131
+ tool: 'launchpad_create', product: 'Launchpad', paid: true, basePrice: '0.10',
132
+ paymentChains: ['xrpl'], freshnessSec: 0, attribution: false,
133
+ tags: ['memecoin', 'token', 'launch', 'create', 'bonding', 'curve', 'xrpl', 'mint'],
134
+ summary: 'Create a new memecoin with a bonding curve — supply, curve, metadata.',
135
+ },
136
+ {
137
+ tool: 'launchpad_buy', product: 'Launchpad', paid: true, basePrice: '0.01',
138
+ paymentChains: ['xrpl'], freshnessSec: 5, attribution: false,
139
+ tags: ['memecoin', 'token', 'buy', 'bonding', 'curve', 'xrpl', 'trade'],
140
+ summary: 'Buy tokens on a memecoin bonding curve — returns executed price and tx.',
141
+ },
142
+ // ── Shadow Desk (alpha intelligence) ──────────────────────────────────────
143
+ {
144
+ tool: 'shadow_query', product: 'Shadow Desk', paid: true, basePrice: '0.02',
145
+ paymentChains: ALL_CHAINS, freshnessSec: 300, attribution: false,
146
+ tags: ['alpha', 'signal', 'intelligence', 'feed', 'query', 'shadow', 'edge'],
147
+ summary: 'Query signal intelligence from the Shadow Desk alpha feed.',
148
+ },
149
+ // ── Forge Gateway (BYOK LLM proxy) ────────────────────────────────────────
150
+ {
151
+ tool: 'forge_llm', product: 'Forge Gateway', paid: true, basePrice: '0.02',
152
+ paymentChains: ALL_CHAINS, freshnessSec: 0, attribution: false,
153
+ tags: ['llm', 'ai', 'model', 'inference', 'completion', 'byok', 'proxy', 'gpt', 'claude'],
154
+ summary: 'BYOK LLM proxy — call any AI model, pay per request via x402.',
155
+ },
156
+ ];
157
+ //# sourceMappingURL=capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../src/server/apm/capabilities.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAuBH,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEjC,QAAA,YAAY,GAAiB;IACxC,6EAA6E;IAC7E;QACE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM;QAC9E,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK;QAC/D,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,CAAC;QAC/I,OAAO,EAAE,qFAAqF;KAC/F;IACD;QACE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM;QAC3E,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK;QAChE,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC;QAC3F,OAAO,EAAE,kEAAkE;KAC5E;IACD;QACE,IAAI,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM;QAC9E,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,EA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,OAAO,EAAE,4DAA4D;KACtE;IAED,6EAA6E;IAC7E;QACE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM;QAC1E,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK;QAC9D,IAAI,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC;QACzF,OAAO,EAAE,+DAA+D;KACzE;CACF,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * APM execution layer — what apm_execute can broker today and the brokerage math.
3
+ *
4
+ * v1 brokers the LIVE SqueezeOS family (verified online). Each executor maps a tool
5
+ * name to the real SML API client call; apm_execute collects the locked price +
6
+ * brokerage, then runs the tool through SML's own paid path.
7
+ */
8
+ export interface BrokerArgs {
9
+ symbol?: string;
10
+ wallet_address: string;
11
+ }
12
+ /** Locked price * (1 + brokerage%), at USDC-native (6-decimal) precision. */
13
+ export declare function brokeredTotal(priceUsd: string, brokeragePct: number): string;
14
+ /** Tools apm_execute can broker right now (live SqueezeOS family). */
15
+ export declare const BROKERABLE_TOOLS: Record<string, (args: BrokerArgs) => Promise<unknown>>;
16
+ export declare function isBrokerable(tool: string): boolean;
17
+ export declare function brokerableTools(): string[];
18
+ //# sourceMappingURL=execute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/server/apm/execute.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,6EAA6E;AAC7E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAG5E;AAED,sEAAsE;AACtE,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,OAAO,CAAC,CAQnF,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAElD;AAED,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAE1C"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /**
3
+ * APM execution layer — what apm_execute can broker today and the brokerage math.
4
+ *
5
+ * v1 brokers the LIVE SqueezeOS family (verified online). Each executor maps a tool
6
+ * name to the real SML API client call; apm_execute collects the locked price +
7
+ * brokerage, then runs the tool through SML's own paid path.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.BROKERABLE_TOOLS = void 0;
11
+ exports.brokeredTotal = brokeredTotal;
12
+ exports.isBrokerable = isBrokerable;
13
+ exports.brokerableTools = brokerableTools;
14
+ const squeezeos_js_1 = require("../../lib/sml-api/squeezeos.js");
15
+ /** Locked price * (1 + brokerage%), at USDC-native (6-decimal) precision. */
16
+ function brokeredTotal(priceUsd, brokeragePct) {
17
+ const total = parseFloat(priceUsd) * (1 + brokeragePct / 100);
18
+ return (Math.round(total * 1e6) / 1e6).toString();
19
+ }
20
+ /** Tools apm_execute can broker right now (live SqueezeOS family). */
21
+ exports.BROKERABLE_TOOLS = {
22
+ squeezeos_council: (a) => {
23
+ if (!a.symbol)
24
+ throw new Error('squeezeos_council requires a `symbol`.');
25
+ return squeezeos_js_1.SqueezeOSAPI.council(a.symbol, a.wallet_address);
26
+ },
27
+ squeezeos_scan: (a) => squeezeos_js_1.SqueezeOSAPI.scan(a.wallet_address),
28
+ squeezeos_options: (a) => squeezeos_js_1.SqueezeOSAPI.options(a.wallet_address),
29
+ squeezeos_iwm: (a) => squeezeos_js_1.SqueezeOSAPI.iwm(a.wallet_address),
30
+ };
31
+ function isBrokerable(tool) {
32
+ return Object.prototype.hasOwnProperty.call(exports.BROKERABLE_TOOLS, tool);
33
+ }
34
+ function brokerableTools() {
35
+ return Object.keys(exports.BROKERABLE_TOOLS);
36
+ }
37
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/server/apm/execute.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAUH,sCAGC;AAaD,oCAEC;AAED,0CAEC;AA9BD,iEAA8D;AAO9D,6EAA6E;AAC7E,SAAgB,aAAa,CAAC,QAAgB,EAAE,YAAoB;IAClE,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,YAAY,GAAG,GAAG,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;AACpD,CAAC;AAED,sEAAsE;AACzD,QAAA,gBAAgB,GAA2D;IACtF,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE;QACvB,IAAI,CAAC,CAAC,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACzE,OAAO,2BAAY,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC;IAC1D,CAAC;IACD,cAAc,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAY,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC;IAC1D,iBAAiB,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAY,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC;IAChE,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAY,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc,CAAC;CACzD,CAAC;AAEF,SAAgB,YAAY,CAAC,IAAY;IACvC,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,wBAAgB,EAAE,IAAI,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,eAAe;IAC7B,OAAO,MAAM,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC;AACvC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * APM matcher — deterministic, pure functions that turn an agent's stated need
3
+ * into a ranked list of SML capabilities with per-constraint fit. No randomness,
4
+ * no network: live-status is injected by the caller.
5
+ */
6
+ import type { Capability } from './capabilities.js';
7
+ import type { Constraints, ConstraintFit, ScoredMatch } from './schema.js';
8
+ export declare function tokenize(text: string): string[];
9
+ /** Keyword overlap score between a need and a capability. Tag hits weigh double. */
10
+ export declare function scoreCapability(cap: Capability, needTokens: string[]): number;
11
+ export declare function evaluateFit(cap: Capability, c: Constraints): ConstraintFit;
12
+ /**
13
+ * Rank capabilities against a need. Returns only positive-score matches,
14
+ * sorted by score desc, then price asc. `live` is the set of online product keys.
15
+ */
16
+ export declare function matchManifest(need: string, constraints: Constraints, capabilities: Capability[], live: Set<string>): ScoredMatch[];
17
+ //# sourceMappingURL=matcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matcher.d.ts","sourceRoot":"","sources":["../../../src/server/apm/matcher.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE3E,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAE/C;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,CAc7E;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,GAAG,aAAa,CAgB1E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,UAAU,EAAE,EAC1B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAChB,WAAW,EAAE,CAyBf"}