@muxoai/platform 1.2.3 → 1.3.1

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 (41) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.claude-plugin/marketplace.json +19 -4
  3. package/.codex/config.toml +9 -2
  4. package/README.md +72 -28
  5. package/dist/cli.js +1047 -43
  6. package/dist/engine.d.ts +29 -0
  7. package/dist/engine.js +221 -16
  8. package/dist/mcp.d.ts +6 -1
  9. package/dist/mcp.js +120 -26
  10. package/dist/nl.d.ts +34 -0
  11. package/dist/nl.js +601 -0
  12. package/dist/providers/composio-instant.d.ts +1 -0
  13. package/dist/providers/composio-instant.js +6 -5
  14. package/dist/providers/composio-sdk.d.ts +1 -0
  15. package/dist/providers/composio-sdk.js +6 -2
  16. package/dist/providers/stripe-billing.d.ts +13 -3
  17. package/dist/providers/stripe-billing.js +250 -36
  18. package/dist/providers/stripe-projects.js +61 -4
  19. package/dist/providers/supermemory.d.ts +2 -0
  20. package/dist/providers/supermemory.js +58 -40
  21. package/dist/sdk.d.ts +77 -1
  22. package/dist/sdk.js +46 -0
  23. package/dist/server.js +202 -29
  24. package/dist/store.d.ts +19 -2
  25. package/dist/store.js +216 -11
  26. package/dist/types.d.ts +14 -2
  27. package/dist/ui/console-html.js +329 -119
  28. package/package.json +1 -1
  29. package/plugins/muxo/.app.json +1 -1
  30. package/plugins/muxo/.claude-plugin/plugin.json +2 -2
  31. package/plugins/muxo/.codex-plugin/plugin.json +7 -5
  32. package/plugins/muxo/.mcp.json +1 -33
  33. package/plugins/muxo/assets/logo.png +0 -0
  34. package/plugins/muxo/hooks/session-start.sh +1 -1
  35. package/plugins/muxo/plugin.json +63 -6
  36. package/plugins/muxo/skills/muxo/SKILL.md +92 -14
  37. package/plugins/muxo/skills/muxo/agents/openai.yaml +12 -0
  38. package/plugins/muxo/skills/muxo/references/cli.md +4 -2
  39. package/plugins/muxo/skills/muxo/references/mcp.md +15 -9
  40. package/plugins/muxo/skills/setup/SKILL.md +8 -2
  41. package/plugins/muxo/skills/setup/agents/openai.yaml +12 -0
@@ -6,7 +6,7 @@
6
6
  "plugins": [
7
7
  {
8
8
  "name": "muxo",
9
- "version": "1.2.3",
9
+ "version": "1.3.1",
10
10
  "description": "Governed execution across 1,000+ Connected Apps, Instant Tools (search, scrape, crawl, SEO audit), Cloud Infrastructure provisioning, Supermemory v5 recall, and Microsoft Agent Governance Ed25519 receipts.",
11
11
  "source": {
12
12
  "source": "local",
@@ -1,17 +1,32 @@
1
1
  {
2
2
  "name": "muxo",
3
+ "description": "Official Muxo plugin marketplace for governed execution across Connected Apps, Instant Tools, Cloud Infrastructure, and Workspace Memory.",
3
4
  "owner": {
4
5
  "name": "Muxo",
5
6
  "email": "founders@muxo.ai",
6
7
  "url": "https://muxo.ai"
7
8
  },
9
+ "metadata": {
10
+ "description": "Official Muxo plugin marketplace for governed execution across Connected Apps, Instant Tools, Cloud Infrastructure, and Workspace Memory.",
11
+ "version": "1.3.1"
12
+ },
8
13
  "plugins": [
9
14
  {
10
15
  "name": "muxo",
11
- "source": "./plugins/muxo",
12
- "description": "Governed execution across 1,000+ Connected Apps, Instant Tools (search, scrape, crawl, SEO audit), Cloud Infrastructure provisioning, Supermemory v5 recall, and Microsoft Agent Governance Ed25519 receipts.",
13
- "version": "1.2.3",
14
- "category": "Productivity"
16
+ "source": {
17
+ "source": "npm",
18
+ "package": "@muxoai/cli"
19
+ },
20
+ "strict": false,
21
+ "description": "Governed execution across 1,000+ Connected Apps, Instant Tools (search, scrape, crawl, SEO audit), Cloud Infrastructure provisioning, Workspace Memory recall, and verifiable audit records.",
22
+ "version": "1.3.1",
23
+ "category": "Productivity",
24
+ "skills": [
25
+ "./plugins/muxo/skills/muxo",
26
+ "./plugins/muxo/skills/setup"
27
+ ],
28
+ "hooks": "./plugins/muxo/hooks/hooks.json",
29
+ "mcpServers": "./plugins/muxo/.mcp.json"
15
30
  }
16
31
  ]
17
32
  }
@@ -1,5 +1,12 @@
1
- # OpenAI Codex Local Plugin Configuration for Muxo
2
- # Reference: https://developers.openai.com/plugins/build/plugins
1
+ # OpenAI Codex Configuration for Muxo
2
+ # Reference: https://developers.openai.com/codex/plugins
3
3
 
4
4
  [plugins."muxo@muxo"]
5
5
  enabled = true
6
+
7
+ # TOML MCP Alternative (~/.codex/config.toml):
8
+ [mcp_servers.muxo]
9
+ url = "https://api.muxo.ai/mcp"
10
+ # Or for local stdio proxy (requires Node.js 22+):
11
+ # command = "npx"
12
+ # args = ["-y", "@muxoai/cli@latest", "mcp"]
package/README.md CHANGED
@@ -1,53 +1,97 @@
1
1
  # Muxo (`@muxoai/platform` / `@muxoai/cli` / `@muxoai/sdk`)
2
2
 
3
- Muxo (`v1.2.3`) is the unified execution, cloud infrastructure provisioning, contextual memory, and cryptographic governance platform for AI agents and applications. Customers and their agents interact exclusively with **Muxo** — never with underlying tool or cloud infrastructure providers directly.
3
+ Muxo (`v1.3.1`) is the unified execution, cloud infrastructure provisioning, contextual memory, and cryptographic governance platform for AI agents and applications. Customers and their agents interact exclusively with **Muxo** — either via structured tool slugs or free-form **Natural Language** (`muxo do`, `POST /api/v1/do`, `client.do()`, and MCP `plan_action`).
4
4
 
5
5
  See [`ARCHITECTURE.md`](./ARCHITECTURE.md) for the complete internal engineering blueprint, open-source ecosystem Keep/Adopt/Drop matrix, and 4-pillar architecture.
6
6
 
7
- Under the hood, Muxo unifies **four core pillars** behind one **19-operation MCP contract**, OpenAI Plugin (`agent-plugins.org/1.0.0`), REST API, CLI (`@muxoai/cli`), TypeScript SDK (`@muxoai/sdk`), and Web Console (`https://app.muxo.ai`):
7
+ Under the hood, Muxo unifies **four core pillars** plus **Natural Language Routing** and **BYOK (Bring Your Own Key) 0-Credit Execution** behind one **19-operation MCP contract**, OpenAI Plugin (`agent-plugins.org/1.0.0`), REST API, Interactive CLI/TUI (`@muxoai/cli`), TypeScript SDK (`@muxoai/sdk`), and Web Console (`https://app.muxo.ai`):
8
8
 
9
- 1. **Composio Connected Apps (`app.*`) & Instant (`instant.*`)** — Managed OAuth SaaS integrations (`app.github.*`, `app.gmail.*`, `app.slack.*`, `app.notion.*`, `app.linear.*`) with live browser OAuth handoff (`wait_for_connection`), zero-OAuth instant capabilities (`instant.web.search`, `instant.web.scrape`, `instant.web.crawl`, `instant.seo.audit`, `instant.hackernews.top_stories`, `instant.github.repo_intel`, `instant.dns.lookup`, `instant.composio.workbench`), plus **Autonomous 2-Call Agent Signup & Claim** (`POST /api/v1/agents/signup` + `POST /api/v1/agents/claim`).
10
- 2. **Stripe Projects Cloud Infrastructure (`resource.*`) + Merchant-of-Record Billing (`muxo_funded`)** — Governed cloud resource provisioning across 60+ providers (`Turso`, `Neon`, `Supabase`, `Cloudflare`, `Vercel`, `Upstash`, `Resend`, `Railway`, `Render`, etc.) with automatic companion plan resolution, AES-256-GCM encrypted secret custody (`muxo env pull`), and unified credit settlement where users purchase Muxo credits and Muxo settles supplier costs from its master accounts.
11
- 3. **Supermemory v5 Contextual Brain (`/ns/muxo-v5-*`)** — Isolated per-workspace long-term static facts, dynamic session context, and hybrid semantic search recalled before every tool plan (`plan_action` & `get_run_context`), with strict secret redaction before memory ingestion.
12
- 4. **Microsoft Agent Governance Toolkit (`@microsoft/agent-governance-sdk` v5.0.0)** — Every planned and executed operation passes through `Agent ──► McpSecurityScanner ──► PolicyEngine ──► AgentIdentity (Ed25519 DID) ──► AuditLogger (SHA-256 chain) ──► DecisionRecord` and produces an HMAC-SHA256 verifiable receipt.
9
+ 1. **Connected Apps (`app.*`) & Instant Tools (`instant.*`)** — Managed OAuth SaaS integrations (`app.github.*`, `app.gmail.*`, `app.slack.*`, `app.notion.*`, `app.linear.*`) with live browser OAuth handoff (`wait_for_connection`), zero-OAuth instant capabilities (`instant.web.search`, `instant.web.scrape`, `instant.web.crawl`, `instant.seo.audit`, `instant.hackernews.top_stories`, `instant.github.repo_intel`, `instant.dns.lookup`, `instant.composio.workbench`), plus **CLI-first Autonomous 2-Call Agent Signup & Claim** (`POST /api/v1/agents/signup` + `POST /api/v1/agents/claim`).
10
+ 2. **Cloud Infrastructure (`resource.*`) + Unified Credit Billing (`muxo_funded`) & BYOK (`byok`)** — Governed cloud resource provisioning across 60+ providers (`Turso`, `Neon`, `Supabase`, `Cloudflare`, `Vercel`, `Upstash`, `Resend`, `Railway`, `Render`, etc.) with automatic companion plan resolution, AES-256-GCM encrypted secret custody (`muxo env pull`), unified credit settlement (`muxo_funded`), and **0-credit BYOK mode** (`muxo byok set <provider>`) when you bring your own supplier or LLM API keys.
11
+ 3. **Workspace Memory (`/ns/muxo-v5-*`)** — Isolated per-workspace long-term static facts, dynamic session context, and hybrid semantic search recalled before every tool plan (`plan_action` & `get_run_context`), with strict secret redaction before memory ingestion.
12
+ 4. **Safety & Approvals (Muxo Guardrails)** — Every planned and executed operation passes through prompt-injection security scanning, workspace policy evaluation, cryptographic agent identity (`did:agent:muxo:*`), and produces a verifiable execution audit record.
13
13
 
14
14
  ---
15
15
 
16
- ## Install & Quickstart (External Users & Agents)
16
+ ## Install & Quickstart (Humans, Harnesses & Agents)
17
+
18
+ > **Requirement:** `@muxoai/cli` requires **Node.js 22+** (`node >= 22.0.0`).
17
19
 
18
20
  ```bash
19
- # 1. Install the Muxo CLI or run directly via npx
21
+ # 1. Install the Muxo CLI or run directly via npx (requires Node.js 22+)
20
22
  npm install -g @muxoai/cli@latest
21
23
 
22
- # 2. Zero-browser autonomous signup (creates ~/.muxo/config.json with mk_live_* key + 250 starter credits)
24
+ # 2. CLI-first autonomous signup against the hosted workspace (creates ~/.muxo/config.json with mk_live_* key + 250 starter credits)
23
25
  muxo login --signup --name "my-agent"
24
26
 
25
- # 3. Verify workspace, governance DID, and credit balance
26
- muxo whoami
27
+ # 3. Launch the Interactive Terminal TUI (Natural Language bar, BYOK Vault, Billing & Status)
28
+ muxo tui
27
29
 
28
- # 4. Run zero-OAuth Instant Tools (Crawl, SEO Audit, DNS, Web Search)
29
- muxo exec instant.seo.audit --input '{"url":"https://muxo.ai","keywords":["muxo","agent","governance"]}'
30
- muxo exec instant.web.crawl --input '{"url":"https://muxo.ai","maxPages":3}'
30
+ # 4. Run tools in plain English via the Natural Language Router
31
+ muxo do "check dns A records for muxo.ai"
32
+ muxo do "get top 5 hacker news stories"
33
+ muxo do "audit seo for https://muxo.ai"
31
34
 
32
- # 5. Connect an OAuth SaaS App (Gmail, GitHub, Slack, Notion, Linear)
33
- muxo link gmail --wait
35
+ # 5. Bring Your Own Key (BYOK) for LLM routing or 0-credit supplier execution
36
+ muxo byok set openai # Interactive hidden/line prompt if key omitted
37
+ muxo byok set composio # Executes app.* and instant.* tools at 0 Muxo credit cost
38
+ muxo byok list
39
+
40
+ # 6. Manage Billing, Credits & Starter Plan ($29/mo)
41
+ muxo billing status
42
+ muxo billing topup 1000
43
+ muxo billing upgrade
34
44
 
35
- # 6. Provision Live Cloud Infrastructure (Turso, Neon, Supabase, Upstash) & Pull Encrypted Secrets
45
+ # 7. Connect an OAuth SaaS App (browser consent handoff) & Provision Live Cloud Infrastructure
46
+ muxo link gmail --wait
36
47
  muxo provision turso --input '{"database_name":"my-agent-db"}' --approve
37
48
  muxo env pull --out .env.muxo
38
49
  ```
39
50
 
40
- ## Official OpenAI Plugin & MCP Server (`https://api.muxo.ai/mcp`)
41
-
42
- Muxo ships a portable OpenAI Plugin (`plugins/muxo/plugin.json` & `plugins/muxo/mcp.json`) and Streamable HTTP MCP Server compliant with [OpenAI Plugins](https://developers.openai.com/plugins/build/plugins) and [OpenAI MCP Server](https://developers.openai.com/plugins/build/mcp-server) specifications:
43
-
44
- - **Streamable HTTP MCP Endpoint**: `https://api.muxo.ai/mcp` (and `https://app.muxo.ai/mcp`)
45
- - **Local Stdio MCP Command**: `npx -y @muxoai/cli@latest mcp`
46
- - **OAuth 2.1 Discovery & DCR/PKCE**:
47
- - `https://api.muxo.ai/.well-known/oauth-protected-resource/mcp` (RFC 9728)
48
- - `https://api.muxo.ai/.well-known/oauth-authorization-server` (RFC 8414)
49
- - `POST https://api.muxo.ai/oauth/register` (Dynamic Client Registration)
50
- - `GET https://api.muxo.ai/oauth/authorize` & `POST https://api.muxo.ai/oauth/token` (PKCE `S256`)
51
+ ## Official Plugins, Marketplaces & MCP Setup (`https://api.muxo.ai/mcp`)
52
+
53
+ Muxo ships a portable OpenAI Plugin (`plugins/muxo/plugin.json` & `plugins/muxo/mcp.json`), Claude Code Plugin (`plugins/muxo/.claude-plugin/plugin.json`), and Streamable HTTP MCP Server:
54
+
55
+ - **Streamable HTTP MCP Endpoints**: `https://api.muxo.ai/mcp` and `https://app.muxo.ai/mcp`
56
+ - **Local Stdio MCP Command** (requires Node.js 22+, proxies to hosted workspace): `npx -y @muxoai/cli@latest mcp`
57
+ - **Claude Code Marketplace (`muxo@muxo`)**:
58
+ ```bash
59
+ claude plugin marketplace add https://api.muxo.ai/.claude-plugin/marketplace.json
60
+ claude plugin install muxo@muxo
61
+ ```
62
+ - **OpenAI Codex Marketplace & TOML MCP Alternative**:
63
+ - **Marketplace (Git Repository or Local Directory)**: Add a Git repository or local directory containing `.agents/plugins/marketplace.json`, then enable `[plugins."muxo@muxo"]` in `.codex/config.toml`.
64
+ - **TOML MCP Alternative (`~/.codex/config.toml`)**:
65
+ ```toml
66
+ [mcp_servers.muxo]
67
+ url = "https://api.muxo.ai/mcp"
68
+ ```
69
+ Or for local stdio proxy (requires Node.js 22+):
70
+ ```toml
71
+ [mcp_servers.muxo]
72
+ command = "npx"
73
+ args = ["-y", "@muxoai/cli@latest", "mcp"]
74
+ ```
75
+ - **Claude Desktop**:
76
+ - **Hosted MCP (Custom Connectors)**: Open **Settings → Connectors → Add custom connector** and enter `https://api.muxo.ai/mcp`.
77
+ - **Local Stdio Server (`claude_desktop_config.json`, requires Node.js 22+)**:
78
+ ```json
79
+ {
80
+ "mcpServers": {
81
+ "muxo": {
82
+ "command": "npx",
83
+ "args": ["-y", "@muxoai/cli@latest", "mcp"]
84
+ }
85
+ }
86
+ }
87
+ ```
88
+ - **ChatGPT**:
89
+ - Open **Plugins → + → Add custom MCP server** (at `https://chatgpt.com/plugins`) and enter `https://api.muxo.ai/mcp`.
90
+ - **OAuth 2.1 Discovery (CIMD or DCR + PKCE)**:
91
+ - `https://api.muxo.ai/.well-known/oauth-protected-resource/mcp` (RFC 9728)
92
+ - `https://api.muxo.ai/.well-known/oauth-authorization-server` (RFC 8414)
93
+ - Client registration can use **Client ID Metadata Documents (CIMD)** or **Dynamic Client Registration (DCR)** (`POST https://api.muxo.ai/oauth/register`); `/oauth/register` is supported when a client uses DCR rather than running on every flow.
94
+ - `GET https://api.muxo.ai/oauth/authorize` & `POST https://api.muxo.ai/oauth/token` (PKCE `S256`)
51
95
  - **SEP-2640 Skills Import Extension (`io.modelcontextprotocol/skills`)**: `skills/list`, `skills/get`, and `resources/read` serving `skill://muxo/muxo/SKILL.md` and `skill://muxo/setup/SKILL.md` with `sha256` integrity digests.
52
96
  - **Tool Annotations & Multi-Account Profile**: All 19 tools include `title` and `annotations` (`readOnlyHint`, `destructiveHint`, `openWorldHint`), plus `_meta["openai/profile"]: true` on `get_profile` and Company Knowledge `search`/`fetch` compatibility.
53
97