b4n1net 0.4.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.
- checksums.yaml +7 -0
- data/EULA.txt +85 -0
- data/LICENSE +95 -0
- data/README.md +41 -0
- data/bin/b4n1net-linux-amd64 +0 -0
- data/lib/b4n1net.rb +86 -0
- metadata +49 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 8f67cafb09f7d8dbc96045698454c0fc55ed15e506216bcdb40cd466b0820a4c
|
|
4
|
+
data.tar.gz: cebabb0b862b7849e13ae8423157f92ae94db7a0cd4eb4ae0bdef0a9225e62ae
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 6a37842bd08a50a72a08ad507cfd720bb5ef408b695c09f58301696f7b031e2a4bcdf38615a144e3e6e605763fac211db855f7d0d976daed89adf4cf5c55e212
|
|
7
|
+
data.tar.gz: 8de4951c5626874c8e95d0d706a2ac61f4e271123b83fd192982cfd198a727bc8c635cc41be4deb4faeaa362f7fe371f09a5089eb375ef12600c2db7af709484
|
data/EULA.txt
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
B4N1-NET — END USER LICENSE AGREEMENT (BINARIES)
|
|
2
|
+
==================================================
|
|
3
|
+
|
|
4
|
+
Version: 1.0 | Effective: 2026-11-18 | Applies to: b4n1-net 0.4.0+
|
|
5
|
+
|
|
6
|
+
This End User License Agreement ("EULA") governs your use of the B4N1
|
|
7
|
+
BINARY ARTIFACTS of b4n1-net — the bundled per-platform `b4n1net`
|
|
8
|
+
executables (`b4n1net-linux-amd64`, `b4n1net-linux-arm64`,
|
|
9
|
+
`b4n1net-macos-x64`, `b4n1net-macos-arm64`, `b4n1net-windows-amd64.exe`
|
|
10
|
+
and the remaining platform builds shipped under each SDK's `bin/`
|
|
11
|
+
directory), the packaged per-language bindings (`*.whl`, npm tarball,
|
|
12
|
+
`*.jar`, `*.nupkg`, gem, composer package, Go module), and the
|
|
13
|
+
`b4n1net` standalone executable.
|
|
14
|
+
|
|
15
|
+
The SDK wrapper source files (the thin per-language bindings) are licensed
|
|
16
|
+
separately under the Business Source License 1.1 — see the `LICENSE` file
|
|
17
|
+
and each registry's license metadata.
|
|
18
|
+
|
|
19
|
+
1. DEFINITIONS
|
|
20
|
+
"Binaries" means the compiled artifacts described above.
|
|
21
|
+
"SDK" means the BUSL-1.1 licensed wrapper source distributed for each language.
|
|
22
|
+
"Source" means the Rust implementation, wire protocol, build scripts,
|
|
23
|
+
internal tests and internal documentation of the B4N1 engine. Source is
|
|
24
|
+
NOT distributed under this EULA or any other license and remains
|
|
25
|
+
proprietary.
|
|
26
|
+
|
|
27
|
+
2. GRANT OF LICENSE
|
|
28
|
+
Subject to your compliance with this EULA and payment of any applicable
|
|
29
|
+
subscription, B4N1 grants you a limited, non-exclusive, non-transferable,
|
|
30
|
+
revocable license to install and use the Binaries within your own products
|
|
31
|
+
and internal tooling, in object form only.
|
|
32
|
+
|
|
33
|
+
3. RESTRICTIONS (strictly enforced)
|
|
34
|
+
a. NO REDISTRIBUTION OF SOURCE. You may not publish, disclose, sublicense
|
|
35
|
+
or otherwise make the B4N1 Rust Source available, in whole or in part,
|
|
36
|
+
modified or unmodified, by any means, including in public repositories.
|
|
37
|
+
b. NO DECOMPILATION OR REVERSE ENGINEERING. You may not decompile,
|
|
38
|
+
disassemble, deobfuscate, or otherwise reverse engineer the Binaries
|
|
39
|
+
except to the extent such restriction is prohibited by applicable law
|
|
40
|
+
that cannot be waived.
|
|
41
|
+
c. NO REMOVAL OF NOTICES. You may not remove, alter, or obscure any
|
|
42
|
+
copyright, license, watermark, or proprietary notices in the Binaries.
|
|
43
|
+
d. NO RESALE AS A STANDALONE PRODUCT. The Binaries may not be resold,
|
|
44
|
+
sublicensed, or offered as a competing product.
|
|
45
|
+
e. NO PROTOCOL DISCLOSURE AS A PRODUCT. You may interoperate with the
|
|
46
|
+
Binaries under this EULA, but you may not publish the wire format,
|
|
47
|
+
message sequence or key schedule as a specification or as the basis of
|
|
48
|
+
a competing transport.
|
|
49
|
+
f. COMPLIANCE AND AUDIT. You will cooperate with reasonable verification of
|
|
50
|
+
license status, including honoring embedded license validation.
|
|
51
|
+
|
|
52
|
+
4. SUBSCRIPTION TIERS
|
|
53
|
+
The Binaries operate under the applicable tier, validated offline against a
|
|
54
|
+
license file (`.b4n1lic`):
|
|
55
|
+
- Community: free, with attribution/watermark obligations.
|
|
56
|
+
- Pro / Corporate / Enterprise: paid tiers, no watermark, per the
|
|
57
|
+
commercial license purchased from B4N1.
|
|
58
|
+
License files are validated fully offline; no network calls are made at
|
|
59
|
+
runtime to verify entitlement.
|
|
60
|
+
|
|
61
|
+
5. TERMINATION
|
|
62
|
+
This EULA terminates automatically if you breach any term. Upon
|
|
63
|
+
termination you must cease all use and destroy the Binaries and copies.
|
|
64
|
+
|
|
65
|
+
6. DISCLAIMER OF WARRANTY
|
|
66
|
+
The Binaries are provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or
|
|
67
|
+
implied, including merchantability, fitness for a particular purpose, and
|
|
68
|
+
non-infringement. B4N1 does not warrant that the Binaries will be
|
|
69
|
+
uninterrupted or error-free.
|
|
70
|
+
|
|
71
|
+
7. LIMITATION OF LIABILITY
|
|
72
|
+
To the maximum extent permitted by law, B4N1 shall not be liable for any
|
|
73
|
+
indirect, incidental, special, consequential, or punitive damages, or for
|
|
74
|
+
any loss of profits, revenue, data, or goodwill, arising out of your use
|
|
75
|
+
of the Binaries, regardless of the legal theory, even if advised of the
|
|
76
|
+
possibility of such damages.
|
|
77
|
+
|
|
78
|
+
8. GOVERNING LAW AND SEVERABILITY
|
|
79
|
+
This EULA is governed by applicable law. If any provision is held
|
|
80
|
+
unenforceable, the remaining provisions stay in full force.
|
|
81
|
+
|
|
82
|
+
9. CONTACT
|
|
83
|
+
Licensing questions: licensing@b4n1.com | https://b4n1.com
|
|
84
|
+
|
|
85
|
+
B4N1 — All rights reserved. Proprietary source: private and secret.
|
data/LICENSE
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
|
|
4
|
+
"Business Source License" is a trademark of MariaDB Corporation Ab.
|
|
5
|
+
|
|
6
|
+
-----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
Parameters
|
|
9
|
+
|
|
10
|
+
Licensor: B4N1 (b4n1.com)
|
|
11
|
+
Licensed Work: b4n1-web — Agentic browser engine for web automation,
|
|
12
|
+
testing, and AI-powered browsing tasks.
|
|
13
|
+
Additional Use Grant: You may use the Licensed Work in production, free of
|
|
14
|
+
charge, provided that your organization's total annual
|
|
15
|
+
gross revenue does not exceed USD $100,000. Organizations
|
|
16
|
+
whose annual gross revenue exceeds USD $100,000 must
|
|
17
|
+
obtain a commercial license from the Licensor before any
|
|
18
|
+
production use. You may not resell or provide the
|
|
19
|
+
Licensed Work as a managed commercial service without
|
|
20
|
+
authorization from the Licensor.
|
|
21
|
+
Change Date: Four years after the first publicly available
|
|
22
|
+
distribution of the Licensed Work under this License.
|
|
23
|
+
Change License: Apache License, Version 2.0
|
|
24
|
+
|
|
25
|
+
For information about alternative licensing arrangements for the Licensed
|
|
26
|
+
Work, please contact b4n1@b4n1.com.
|
|
27
|
+
|
|
28
|
+
-----------------------------------------------------------------------------
|
|
29
|
+
|
|
30
|
+
Terms
|
|
31
|
+
|
|
32
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
33
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
34
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
35
|
+
production use.
|
|
36
|
+
|
|
37
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
38
|
+
available distribution of a specific version of the Licensed Work under this
|
|
39
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
40
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
41
|
+
above terminate.
|
|
42
|
+
|
|
43
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
44
|
+
currently in effect as described in this License, you must purchase a
|
|
45
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
46
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
47
|
+
|
|
48
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
49
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
50
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
51
|
+
for each version of the Licensed Work released by Licensor.
|
|
52
|
+
|
|
53
|
+
You must conspicuously display this License on each original or modified copy
|
|
54
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
55
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
56
|
+
License apply to your use of that work.
|
|
57
|
+
|
|
58
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
59
|
+
terminate your rights under this License for the current and all other
|
|
60
|
+
versions of the Licensed Work.
|
|
61
|
+
|
|
62
|
+
This License does not grant you any right in any trademark or logo of
|
|
63
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
64
|
+
Licensor as expressly required by this License).
|
|
65
|
+
|
|
66
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
67
|
+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
68
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
69
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
70
|
+
TITLE. MariaDB hereby grants you permission to use this License's text to
|
|
71
|
+
license your works, and to refer to it using the trademark "Business Source
|
|
72
|
+
License", as long as you comply with the Covenants of Licensor below.
|
|
73
|
+
|
|
74
|
+
Covenants of Licensor
|
|
75
|
+
|
|
76
|
+
In consideration of the right to use this License's text and the "Business
|
|
77
|
+
Source License" name and trademark, Licensor covenants to MariaDB, and to all
|
|
78
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
79
|
+
|
|
80
|
+
To specify as the Change License a license that is compatible with GPL
|
|
81
|
+
Version 2.0 or a later version, where "compatible" means that software
|
|
82
|
+
provided under the Change License can be included in a program with software
|
|
83
|
+
provided under GPL Version 2.0 or a later version. Licensor may specify
|
|
84
|
+
additional Change Licenses without limitation.
|
|
85
|
+
|
|
86
|
+
To either: (a) specify an additional grant of rights to use that does not
|
|
87
|
+
impose any additional restriction on the right granted in this License, as
|
|
88
|
+
the Additional Use Grant; or (b) insert the text "None" to specify a Change
|
|
89
|
+
License. Not to modify this License in any other way.
|
|
90
|
+
|
|
91
|
+
Notice
|
|
92
|
+
|
|
93
|
+
The Business Source License (this document, or the "License") is not an Open
|
|
94
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
95
|
+
under an Open Source License, as stated in this License.
|
data/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# b4n1-net Ruby SDK
|
|
2
|
+
|
|
3
|
+
Sovereign transport — thin Ruby wrapper around the bundled `b4n1net` engine.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
gem install b4n1net
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require "b4n1net"
|
|
15
|
+
|
|
16
|
+
client = B4n1Net::Client.new
|
|
17
|
+
puts client.version
|
|
18
|
+
puts client.demo # real sealed round trip over loopback
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What you get
|
|
22
|
+
|
|
23
|
+
| Call | Purpose |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `version` | Engine banner |
|
|
26
|
+
| `status(json: true)` | Running state; "not running" is a valid answer |
|
|
27
|
+
| `demo` | Offline demonstration with live numbers |
|
|
28
|
+
| `docs(section:)` | Bundled manual, no network |
|
|
29
|
+
| `licenses` | Full license text, no key required |
|
|
30
|
+
| `serve / send / start / stop` | The transport verbs |
|
|
31
|
+
|
|
32
|
+
## Override the engine
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
B4N1NET_BIN_PATH=/opt/b4n1net ruby app.rb
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
Business Source License 1.1 (BUSL-1.1) for this wrapper. Engine binaries are
|
|
41
|
+
covered by `EULA.txt`.
|
|
Binary file
|
data/lib/b4n1net.rb
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# b4n1-net SDK — sovereign transport, Ruby wrapper.
|
|
4
|
+
#
|
|
5
|
+
# The gem ships the engine for each supported platform under bin/ and resolves
|
|
6
|
+
# the one that matches this machine. Every call is a thin spawn into that
|
|
7
|
+
# binary: the SDK never reimplements the wire protocol.
|
|
8
|
+
#
|
|
9
|
+
# require "b4n1net"
|
|
10
|
+
# client = B4n1Net::Client.new
|
|
11
|
+
# puts client.version
|
|
12
|
+
# puts client.demo
|
|
13
|
+
#
|
|
14
|
+
# Override the engine with B4N1NET_BIN_PATH.
|
|
15
|
+
|
|
16
|
+
require "open3"
|
|
17
|
+
|
|
18
|
+
module B4n1Net
|
|
19
|
+
SDK_VERSION = "0.4.0"
|
|
20
|
+
|
|
21
|
+
BINARIES = {
|
|
22
|
+
["linux", "x86_64"] => "b4n1net-linux-amd64",
|
|
23
|
+
["linux", "aarch64"] => "b4n1net-linux-arm64",
|
|
24
|
+
["darwin", "x86_64"] => "b4n1net-macos-x64",
|
|
25
|
+
["darwin", "arm64"] => "b4n1net-macos-arm64",
|
|
26
|
+
["mingw32", "x86_64"] => "b4n1net-windows-amd64.exe"
|
|
27
|
+
}.freeze
|
|
28
|
+
|
|
29
|
+
# Absolute path of the engine, or nil when this platform is not bundled.
|
|
30
|
+
def self.binary
|
|
31
|
+
override = ENV["B4N1NET_BIN_PATH"]
|
|
32
|
+
return override if override && File.executable?(override)
|
|
33
|
+
|
|
34
|
+
name = BINARIES[[RbConfig::CONFIG["host_os"].split("-").first, RbConfig::CONFIG["host_cpu"]]]
|
|
35
|
+
return nil unless name
|
|
36
|
+
|
|
37
|
+
bundled = File.expand_path(File.join(__dir__, "..", "bin", name))
|
|
38
|
+
File.executable?(bundled) ? bundled : nil
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class Client
|
|
42
|
+
def initialize(binary_path = nil)
|
|
43
|
+
@binary = binary_path || B4n1Net.binary
|
|
44
|
+
raise "b4n1-net engine not found. Set B4N1NET_BIN_PATH." unless @binary
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def version = text("--version")
|
|
48
|
+
def help = text("help")
|
|
49
|
+
def licenses = text("licenses")
|
|
50
|
+
def status(json: false) = text("status", *(json ? ["--json"] : []))
|
|
51
|
+
def demo(json: false) = text("demo", *(json ? ["--json"] : []))
|
|
52
|
+
def docs(section: nil) = text("docs", *(section ? ["--section", section] : []))
|
|
53
|
+
|
|
54
|
+
def serve(addr:, secret: nil, json: false)
|
|
55
|
+
args = ["serve", "--addr", addr]
|
|
56
|
+
args += ["--secret", secret] if secret
|
|
57
|
+
args << "--json" if json
|
|
58
|
+
text(*args)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def send(addr:, secret: nil, message: nil, json: false)
|
|
62
|
+
args = ["send", "--addr", addr]
|
|
63
|
+
args += ["--secret", secret] if secret
|
|
64
|
+
args += ["--message", message] if message
|
|
65
|
+
args << "--json" if json
|
|
66
|
+
text(*args)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def start(addr: nil, secret: nil, json: false)
|
|
70
|
+
args = ["start"]
|
|
71
|
+
args += ["--addr", addr] if addr
|
|
72
|
+
args += ["--secret", secret] if secret
|
|
73
|
+
args << "--json" if json
|
|
74
|
+
text(*args)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def stop(json: false) = text("stop", *(json ? ["--json"] : []))
|
|
78
|
+
|
|
79
|
+
private
|
|
80
|
+
|
|
81
|
+
def text(*args)
|
|
82
|
+
stdout, stderr, _status = Open3.capture3(@binary, *args)
|
|
83
|
+
(stdout.empty? ? stderr : stdout).strip
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: b4n1net
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.4.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Bani Montoya
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-11-19 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description:
|
|
14
|
+
email:
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- EULA.txt
|
|
20
|
+
- LICENSE
|
|
21
|
+
- README.md
|
|
22
|
+
- bin/b4n1net-linux-amd64
|
|
23
|
+
- lib/b4n1net.rb
|
|
24
|
+
homepage: https://b4n1.com
|
|
25
|
+
licenses:
|
|
26
|
+
- BUSL-1.1
|
|
27
|
+
metadata:
|
|
28
|
+
source_code_uri: https://b4n1.com
|
|
29
|
+
eula: EULA.txt
|
|
30
|
+
post_install_message:
|
|
31
|
+
rdoc_options: []
|
|
32
|
+
require_paths:
|
|
33
|
+
- lib
|
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - ">="
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '3.0'
|
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '0'
|
|
44
|
+
requirements: []
|
|
45
|
+
rubygems_version: 3.4.20
|
|
46
|
+
signing_key:
|
|
47
|
+
specification_version: 4
|
|
48
|
+
summary: 'Sovereign transport: sealed UDP frames with HMAC, AEAD and acknowledgements.'
|
|
49
|
+
test_files: []
|