@meshad/sdk 0.2.0 → 0.2.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.
- package/README.md +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
SDK para embutir o MeshAd em agentes de IA e CLIs. O anúncio aparece **somente
|
|
4
4
|
enquanto o usuário está esperando** (modelo ou ferramenta) e some no primeiro
|
|
5
5
|
token ou na primeira tecla — com as mesmas garantias de privacidade do cliente
|
|
6
|
-
oficial (`meshad`). CommonJS, Node 22+, tipos `.d.ts` inclusos.
|
|
6
|
+
oficial (`meshad`). CommonJS, Node 22+, tipos `.d.ts` inclusos. Versão atual: **0.2.0** —
|
|
7
|
+
[npmjs.com/package/@meshad/sdk](https://www.npmjs.com/package/@meshad/sdk).
|
|
7
8
|
|
|
8
9
|
## Instalação
|
|
9
10
|
|
|
@@ -14,8 +15,11 @@ npm install @meshad/sdk
|
|
|
14
15
|
## Integração em 5 minutos
|
|
15
16
|
|
|
16
17
|
```js
|
|
18
|
+
const path = require('node:path');
|
|
19
|
+
const os = require('node:os');
|
|
17
20
|
const { init } = require('@meshad/sdk');
|
|
18
21
|
|
|
22
|
+
// init() é síncrono: retorna a instância, não uma Promise.
|
|
19
23
|
const meshad = init({
|
|
20
24
|
terminalType: 'other', // seu terminal_type registrado
|
|
21
25
|
stateDir: path.join(os.homedir(), '.meu-agente'), // anon id estável
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshad/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Embeddable MeshAd SDK for AI agents and CLIs — show a signed ad only while the user is actually waiting, with the same privacy guarantees as the official client.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"typecheck": "tsc -p tsconfig.json"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@meshad/creative": "
|
|
25
|
-
"@meshad/schema": "
|
|
24
|
+
"@meshad/creative": "^1.0.0",
|
|
25
|
+
"@meshad/schema": "^1.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"typescript": "^5.6.3"
|