@zerox1/sdk 0.1.26 → 0.2.0
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/LICENSE +47 -0
- package/dist/index.js +5 -1
- package/package.json +6 -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/LICENSE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
hidden: false
|
|
2
|
+
|
|
3
|
+
description: A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
|
|
4
|
+
|
|
5
|
+
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace 2026 with the current year and 0x01-a2a with the name (or names) of the copyright holders.
|
|
6
|
+
|
|
7
|
+
using:
|
|
8
|
+
Babel: https://github.com/babel/babel/blob/master/LICENSE
|
|
9
|
+
.NET: https://github.com/dotnet/runtime/blob/main/LICENSE.TXT
|
|
10
|
+
Rails: https://github.com/rails/rails/blob/master/MIT-LICENSE
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
- commercial-use
|
|
14
|
+
- modifications
|
|
15
|
+
- distribution
|
|
16
|
+
- private-use
|
|
17
|
+
|
|
18
|
+
conditions:
|
|
19
|
+
- include-copyright
|
|
20
|
+
|
|
21
|
+
limitations:
|
|
22
|
+
- liability
|
|
23
|
+
- warranty
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
MIT License
|
|
28
|
+
|
|
29
|
+
Copyright (c) 2026 0x01-a2a
|
|
30
|
+
|
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
32
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
33
|
+
in the Software without restriction, including without limitation the rights
|
|
34
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
36
|
+
furnished to do so, subject to the following conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be included in all
|
|
39
|
+
copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
42
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
44
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
45
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
46
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
|
+
SOFTWARE.
|
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,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerox1/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "0x01 mesh agent SDK — zero-config, binary bundled, works on every platform",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
7
8
|
"scripts": {
|
|
@@ -12,10 +13,10 @@
|
|
|
12
13
|
"ws": "^8.18.0"
|
|
13
14
|
},
|
|
14
15
|
"optionalDependencies": {
|
|
15
|
-
"@zerox1/sdk-darwin-arm64": "0.
|
|
16
|
-
"@zerox1/sdk-darwin-x64": "0.
|
|
17
|
-
"@zerox1/sdk-linux-x64": "0.
|
|
18
|
-
"@zerox1/sdk-win32-x64": "0.
|
|
16
|
+
"@zerox1/sdk-darwin-arm64": "0.2.0",
|
|
17
|
+
"@zerox1/sdk-darwin-x64": "0.2.0",
|
|
18
|
+
"@zerox1/sdk-linux-x64": "0.2.0",
|
|
19
|
+
"@zerox1/sdk-win32-x64": "0.2.0"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"@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
|