@zerox1/sdk 0.1.26 → 0.1.28
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/dist/index.js +5 -1
- package/package.json +5 -5
- package/packages/darwin-arm64/bin/zerox1-node +0 -0
- package/packages/darwin-arm64/package.json +1 -1
- package/packages/darwin-x64/bin/zerox1-node +0 -0
- package/packages/darwin-x64/package.json +1 -1
- package/packages/linux-x64/bin/zerox1-node +0 -0
- package/packages/linux-x64/package.json +1 -1
- package/packages/win32-x64/bin/zerox1-node.exe +0 -0
- package/packages/win32-x64/package.json +1 -1
- package/src/index.ts +8 -1
package/dist/index.js
CHANGED
|
@@ -203,11 +203,15 @@ class Zerox1Agent {
|
|
|
203
203
|
this._checkVersion().catch(() => { });
|
|
204
204
|
// Open the inbox WebSocket.
|
|
205
205
|
this._connectInbox();
|
|
206
|
+
if (!this._config.satiMint) {
|
|
207
|
+
process.stderr.write(`\n⚠️ [zerox1] Running in Dev Mode (no satiMint).\n` +
|
|
208
|
+
` This agent is unregistered and will be dropped by production nodes.\n\n`);
|
|
209
|
+
}
|
|
206
210
|
}
|
|
207
211
|
/** Fetch /version from the aggregator and warn if this SDK is outdated. */
|
|
208
212
|
async _checkVersion() {
|
|
209
213
|
const AGGREGATOR = 'https://aggregator.0x01.world';
|
|
210
|
-
const CURRENT = '
|
|
214
|
+
const CURRENT = require('../package.json').version;
|
|
211
215
|
try {
|
|
212
216
|
const res = await fetch(`${AGGREGATOR}/version`, { signal: AbortSignal.timeout(4000) });
|
|
213
217
|
if (!res.ok)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerox1/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "0x01 mesh agent SDK — zero-config, binary bundled, works on every platform",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"ws": "^8.18.0"
|
|
13
13
|
},
|
|
14
14
|
"optionalDependencies": {
|
|
15
|
-
"@zerox1/sdk-darwin-arm64": "0.1.
|
|
16
|
-
"@zerox1/sdk-darwin-x64": "0.1.
|
|
17
|
-
"@zerox1/sdk-linux-x64": "0.1.
|
|
18
|
-
"@zerox1/sdk-win32-x64": "0.1.
|
|
15
|
+
"@zerox1/sdk-darwin-arm64": "0.1.28",
|
|
16
|
+
"@zerox1/sdk-darwin-x64": "0.1.28",
|
|
17
|
+
"@zerox1/sdk-linux-x64": "0.1.28",
|
|
18
|
+
"@zerox1/sdk-win32-x64": "0.1.28"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.0.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/index.ts
CHANGED
|
@@ -280,12 +280,19 @@ export class Zerox1Agent {
|
|
|
280
280
|
|
|
281
281
|
// Open the inbox WebSocket.
|
|
282
282
|
this._connectInbox()
|
|
283
|
+
|
|
284
|
+
if (!this._config.satiMint) {
|
|
285
|
+
process.stderr.write(
|
|
286
|
+
`\n⚠️ [zerox1] Running in Dev Mode (no satiMint).\n` +
|
|
287
|
+
` This agent is unregistered and will be dropped by production nodes.\n\n`
|
|
288
|
+
)
|
|
289
|
+
}
|
|
283
290
|
}
|
|
284
291
|
|
|
285
292
|
/** Fetch /version from the aggregator and warn if this SDK is outdated. */
|
|
286
293
|
private async _checkVersion(): Promise<void> {
|
|
287
294
|
const AGGREGATOR = 'https://aggregator.0x01.world'
|
|
288
|
-
const CURRENT = '
|
|
295
|
+
const CURRENT = require('../package.json').version
|
|
289
296
|
try {
|
|
290
297
|
const res = await fetch(`${AGGREGATOR}/version`, { signal: AbortSignal.timeout(4_000) })
|
|
291
298
|
if (!res.ok) return
|