@muxoai/sdk 0.3.1 → 0.4.0-preview.20261010.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.
- package/README.md +14 -48
- package/dist/index.d.ts +1350 -347
- package/dist/index.js +1446 -301
- package/package.json +12 -29
- package/LICENSE +0 -21
- package/dist/brain.d.ts +0 -107
- package/dist/brain.d.ts.map +0 -1
- package/dist/brain.js +0 -83
- package/dist/brain.js.map +0 -1
- package/dist/cjs/brain.js +0 -86
- package/dist/cjs/index.js +0 -313
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/types.js +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types.d.ts +0 -388
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,52 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Muxo SDK preview
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Install with `npm install @muxoai/sdk@preview`. Node.js 22.18 or newer is required.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
npm install @muxoai/sdk
|
|
5
|
+
```js
|
|
6
|
+
import { MuxoClient } from '@muxoai/sdk';
|
|
7
|
+
const client = new MuxoClient({
|
|
8
|
+
baseUrl: 'https://app.muxo.ai',
|
|
9
|
+
credential: () => process.env.MUXO_API_KEY,
|
|
10
|
+
});
|
|
11
|
+
const profile = await client.call('get_profile', {});
|
|
13
12
|
```
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const muxo = new Muxo({ key: process.env.MUXO_KEY! })
|
|
21
|
-
|
|
22
|
-
const results = await muxo.web.search({ query: 'agent infrastructure', limit: 5 })
|
|
23
|
-
if (results.ok) console.log(results.data, results.usage)
|
|
24
|
-
|
|
25
|
-
const chat = await muxo.llm.chat({ prompt: 'Summarize muxo in one line.' })
|
|
26
|
-
const run = await muxo.workflows.run('daily-prices', { region: 'us' })
|
|
27
|
-
const credits = await muxo.credits.balance()
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Every call returns a uniform envelope: `{ ok: true, data, usage }` or
|
|
31
|
-
`{ ok: false, error: { code, message } }`.
|
|
32
|
-
|
|
33
|
-
## Surface
|
|
34
|
-
|
|
35
|
-
- `muxo.call(capability, input)` — any capability
|
|
36
|
-
- `muxo.web` · `muxo.browser` · `muxo.llm` · `muxo.compute` · `muxo.deploy`
|
|
37
|
-
· `muxo.domains` · `muxo.dns`
|
|
38
|
-
· `muxo.kv` · `muxo.db` · `muxo.storage` · `muxo.vectors`
|
|
39
|
-
· `muxo.email` · `muxo.observability` · `muxo.queue` · `muxo.sms`
|
|
40
|
-
· `muxo.analytics` · `muxo.appsearch` · `muxo.memory` · `muxo.featureflags`
|
|
41
|
-
· `muxo.video` · `muxo.auth` · `muxo.payments` · `muxo.tools`
|
|
42
|
-
- `muxo.context` · `muxo.memoryPlane` · `muxo.entity` · `muxo.sessions`
|
|
43
|
-
· `muxo.actions` — context plane, memory, entity spine, sessions, actions
|
|
44
|
-
- `muxo.workflows` · `muxo.manifest` · `muxo.keys` · `muxo.credits`
|
|
45
|
-
· `muxo.status` · `muxo.usage` · `muxo.capabilities` · `muxo.rollback`
|
|
46
|
-
|
|
47
|
-
The SDK reads no environment variables — pass `key` (and optionally `baseUrl`,
|
|
48
|
-
default `https://api.muxo.ai/v1`) to the constructor.
|
|
49
|
-
|
|
50
|
-
## License
|
|
51
|
-
|
|
52
|
-
MIT © Muxo AI, LLC
|
|
14
|
+
Use a protected scoped credential. Never embed credentials in browser bundles.
|
|
15
|
+
Discover and inspect exact available tools before planning. Human approval remains separate.
|
|
16
|
+
No automatic retry, supplier signup, payment or approval is performed by the client.
|
|
17
|
+
The latest tag remains the incompatible legacy SDK. Cloudflare inbox/artifact capabilities remain local-only until separately qualified and activated.
|
|
18
|
+
See https://docs.muxo.ai for current endpoint contracts and availability.
|