baguet 1.0__py3-none-win_amd64.whl
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.
- baguet-1.0.data/purelib/DIST-INTEGRITY.json +1 -0
- baguet-1.0.data/purelib/baguet.toml +81 -0
- baguet-1.0.data/purelib/baguet_rust_core.dll +0 -0
- baguet-1.0.data/purelib/baguet_sdk.py +103 -0
- baguet-1.0.data/purelib/baguet_sdk_layer.py +8816 -0
- baguet-1.0.data/purelib/engine-baguet.py +11999 -0
- baguet-1.0.data/purelib/engine-baguet.pyc +0 -0
- baguet-1.0.data/purelib/studio/baguet-favicon-white-512.png +0 -0
- baguet-1.0.data/purelib/studio/baguet-icon-logo.png +0 -0
- baguet-1.0.data/purelib/studio/baguet-text-logo.png +0 -0
- baguet-1.0.data/purelib/studio/design-tokens.json +105 -0
- baguet-1.0.data/purelib/studio/index.html +14679 -0
- baguet-1.0.dist-info/METADATA +396 -0
- baguet-1.0.dist-info/RECORD +18 -0
- baguet-1.0.dist-info/WHEEL +5 -0
- baguet-1.0.dist-info/entry_points.txt +5 -0
- baguet-1.0.dist-info/licenses/LICENSE +81 -0
- baguet-1.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"files":{"baguet_rust_core.dll":"8acecfa4fbfb7dea82b6cf586ec5222862d33ee648cfef9379f9098bbe3cfaaf","baguet_sdk.py":"275a536a8b58067e5ef93fcca2646ea4d200afedf45534cee6cab02a9263ffc7","engine-baguet.py":"1018aeb1d107dd59ad7f6ce3b8a239a4ae607631ffed8a8c12f2c1fb97a526c0","engine-baguet.pyc":"3ef7033c78589289919136c8d58cc6ccda5f6c03112667e389875f48753156de"},"kid":"bgt-root-2026-01","schema":1,"signature":"TKae3GQchV6IBqMtzRjAwLRpMHkaxdzXIg8l5AOqWgYE2IzmsDTXNeKEZPnSqOxxZy4200eXA3yxcefMp+f8Bg=="}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# BAGUET 1.0 — Centralized Production & Runtime Configuration
|
|
2
|
+
# Edit this file directly or toggle modes via:
|
|
3
|
+
# baguet studio --dev / baguet studio --prod
|
|
4
|
+
# baguet config --dev / baguet config --prod / baguet config --show
|
|
5
|
+
|
|
6
|
+
[runtime]
|
|
7
|
+
mode = "production"
|
|
8
|
+
enforce_tier = true
|
|
9
|
+
use_rust = true
|
|
10
|
+
language = "auto"
|
|
11
|
+
|
|
12
|
+
[studio]
|
|
13
|
+
host = "127.0.0.1"
|
|
14
|
+
port = 8765
|
|
15
|
+
auto_open_browser = true
|
|
16
|
+
|
|
17
|
+
[governance]
|
|
18
|
+
lab_controller_enabled = false
|
|
19
|
+
governance_token = ""
|
|
20
|
+
governance_key_file = "~/.baguet/lab-governance.key"
|
|
21
|
+
|
|
22
|
+
[billing]
|
|
23
|
+
# Alterna automaticamente chaves, portal, produtos, preços e payment links entre [billing_test] e [billing_live]
|
|
24
|
+
stripe_mode = "live" # "test" ou "live"
|
|
25
|
+
|
|
26
|
+
[billing_test]
|
|
27
|
+
publishable_key = "pk_test_51NzkF8J51lBAnbGWeK8vpsHxBajaHh8EqejM5HK0rRCIZz4oAIFdUzbpfq7mgjJqBqfuFMYXTJrRtGXUV5NG1eNA00JSUwje6q"
|
|
28
|
+
billing_portal_url = "https://billing.stripe.com/p/login/test_6oEdSE52DgiBgmsaEF"
|
|
29
|
+
pro_product_id = "prod_VeYNI6A3Jv7Uj2"
|
|
30
|
+
growth_product_id = "prod_VeYNEHHC1pDk8s"
|
|
31
|
+
pro_price_mo = "price_1UdFGlJ51lBAnbGWSX2metks"
|
|
32
|
+
pro_price_yr = "price_1UdFGmJ51lBAnbGWtOq9iRKw"
|
|
33
|
+
growth_price_mo = "price_1UdFGoJ51lBAnbGWYg3Xr2z6"
|
|
34
|
+
growth_price_yr = "price_1UdFGpJ51lBAnbGW1G0Q30MJ"
|
|
35
|
+
pro_payment_link_mo = "https://buy.stripe.com/test_5kQ6oI3jU0e84HdeCt3Ru0J"
|
|
36
|
+
pro_payment_link_yr = "https://buy.stripe.com/test_9B6dRadYy3qk0qXdyp3Ru0K"
|
|
37
|
+
growth_payment_link_mo = "https://buy.stripe.com/test_fZu00k07IbWQa1xcul3Ru0L"
|
|
38
|
+
growth_payment_link_yr = "https://buy.stripe.com/test_14AcN6f2C5ys0qX2TL3Ru0M"
|
|
39
|
+
|
|
40
|
+
[billing_live]
|
|
41
|
+
# Preencha com os IDs criados no Stripe Live Mode quando for para produção (sem precisar alterar o código)
|
|
42
|
+
publishable_key = ""
|
|
43
|
+
billing_portal_url = "https://billing.stripe.com/p/login/9AQ9C3eO4gX38Jq5kk"
|
|
44
|
+
pro_product_id = "prod_Vglknq9hwJzJEZ"
|
|
45
|
+
growth_product_id = "prod_VglkkJzcNy3nDQ"
|
|
46
|
+
pro_price_mo = "price_1UfOCuJ51lBAnbGWzWEPfjQt"
|
|
47
|
+
pro_price_yr = "price_1UfOCuJ51lBAnbGWhw2QXCWh"
|
|
48
|
+
growth_price_mo = "price_1UfOCqJ51lBAnbGWYXv2mJ3N"
|
|
49
|
+
growth_price_yr = "price_1UfOCqJ51lBAnbGWhLW1TbPD"
|
|
50
|
+
pro_payment_link_mo = "https://buy.stripe.com/28E9AU1bMd0UflR65X3Ru05"
|
|
51
|
+
pro_payment_link_yr = "https://buy.stripe.com/4gMaEY4nYbWQ1v12TL3Ru04"
|
|
52
|
+
growth_payment_link_mo = "https://buy.stripe.com/3cIdRa5s29OIddJcul3Ru03"
|
|
53
|
+
growth_payment_link_yr = "https://buy.stripe.com/14A4gA5s2gd6gpV65X3Ru02"
|
|
54
|
+
|
|
55
|
+
[licensing]
|
|
56
|
+
home_dir = "~/.baguet"
|
|
57
|
+
refresh_url = ""
|
|
58
|
+
# Rotação de chaves Ed25519 (sem invalidar licenças já emitidas):
|
|
59
|
+
# 1. Gere novo par: baguet license keygen --kid "bgt-root-2027-01" --register-local --out ~/.baguet/secrets/baguet_license_2027.json
|
|
60
|
+
# 2. Adicione a nova chave pública em rotation_pubkeys_json (ex.: {"bgt-root-2027-01":"<64-hex>"}) ou via trusted_keys_file
|
|
61
|
+
# 3. Altere active_kid abaixo para "bgt-root-2027-01" e passe a assinar com a nova seed (as antigas de bgt-root-2026-01 continuam válidas)
|
|
62
|
+
active_kid = "bgt-root-2026-01"
|
|
63
|
+
trusted_keys_file = "~/.baguet/trusted_keys.json"
|
|
64
|
+
rotation_pubkeys_json = ""
|
|
65
|
+
|
|
66
|
+
[updates]
|
|
67
|
+
manifest_url = "https://baguet.soilore.com/releases/studio-manifest.json"
|
|
68
|
+
fallback_manifest_url = "https://raw.githubusercontent.com/soilore/baguet/main/docs/releases/studio-manifest.json"
|
|
69
|
+
# Frequência de consulta automática de avisos e atualizações no Studio (padrão: 14400s = 4h; notificações são raras)
|
|
70
|
+
poll_interval_seconds = 14400
|
|
71
|
+
# Janela mínima entre rechecagens ao voltar para a aba do Studio (padrão: 1800s = 30 min) e cache HTTP local (900s = 15 min)
|
|
72
|
+
focus_refresh_seconds = 1800
|
|
73
|
+
cache_ttl_seconds = 900
|
|
74
|
+
|
|
75
|
+
[smtp]
|
|
76
|
+
# Configurações não-sensíveis do servidor SMTP para envio de licenças.
|
|
77
|
+
# A senha permanece exclusivamente como segredo (GitHub Secret BAGUET_SMTP_PASS ou ~/.baguet/.env / ~/.baguet/smtp.env).
|
|
78
|
+
host = "smtp.hostinger.com"
|
|
79
|
+
port = 465
|
|
80
|
+
user = "contact@soilore.com"
|
|
81
|
+
from_email = "contact@soilore.com"
|
|
Binary file
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import importlib.util as _util
|
|
2
|
+
import sys as _sys
|
|
3
|
+
from pathlib import Path as _Path
|
|
4
|
+
_previous_dont_write_bytecode = _sys.dont_write_bytecode
|
|
5
|
+
_sys.dont_write_bytecode = True
|
|
6
|
+
_engine = _Path(__file__).with_name('engine-baguet.py')
|
|
7
|
+
_spec = _util.spec_from_file_location('_baguet_public_engine', _engine)
|
|
8
|
+
if _spec is None or _spec.loader is None:
|
|
9
|
+
raise ImportError('Baguet public engine loader unavailable')
|
|
10
|
+
_module = _util.module_from_spec(_spec)
|
|
11
|
+
_sys.modules[_spec.name] = _module
|
|
12
|
+
try:
|
|
13
|
+
_spec.loader.exec_module(_module)
|
|
14
|
+
finally:
|
|
15
|
+
_sys.dont_write_bytecode = _previous_dont_write_bytecode
|
|
16
|
+
def main(argv=None):
|
|
17
|
+
arguments = list(_sys.argv[1:] if argv is None else argv)
|
|
18
|
+
if arguments:
|
|
19
|
+
cmd = arguments[0]
|
|
20
|
+
if cmd in {'--version', '-V'}:
|
|
21
|
+
print('1.0')
|
|
22
|
+
return 0
|
|
23
|
+
if cmd == 'audit':
|
|
24
|
+
arguments = ['roi-audit', *arguments[1:]]
|
|
25
|
+
elif cmd in {'activate', 'Activate-Baguet'}:
|
|
26
|
+
return activate_main(arguments[1:])
|
|
27
|
+
elif cmd in {'verify-readiness', 'readiness'}:
|
|
28
|
+
return int(_module.run_cli(['release', 'verify-readiness', *arguments[1:]]))
|
|
29
|
+
elif cmd in {'desktop-action', 'one-click', 'action'}:
|
|
30
|
+
return desktop_action_main(arguments[1:])
|
|
31
|
+
elif cmd in {'desktop-decompress', 'decompress-desktop'}:
|
|
32
|
+
return desktop_decompress_main(arguments[1:])
|
|
33
|
+
return int(_module.run_cli(arguments))
|
|
34
|
+
def activate_main(argv=None):
|
|
35
|
+
arguments = _sys.argv[1:] if argv is None else argv
|
|
36
|
+
if not arguments or arguments[0] in {'-h', '--help'}:
|
|
37
|
+
print('Usage: Activate-Baguet TOKEN [--no-persist] [--kid KID]', file=_sys.stderr)
|
|
38
|
+
return 0 if arguments and arguments[0] in {'-h', '--help'} else 2
|
|
39
|
+
token = arguments[0]
|
|
40
|
+
extra = arguments[1:]
|
|
41
|
+
if token in {'--token', '-t'} and len(arguments) > 1:
|
|
42
|
+
token = arguments[1]
|
|
43
|
+
extra = arguments[2:]
|
|
44
|
+
return int(_module.run_cli(['license', 'activate', token, *extra]))
|
|
45
|
+
def studio_main():
|
|
46
|
+
return int(_module.run_cli(['studio']))
|
|
47
|
+
def desktop_action_main(argv=None):
|
|
48
|
+
import argparse as _argparse
|
|
49
|
+
arguments = list(_sys.argv[1:] if argv is None else argv)
|
|
50
|
+
if arguments and arguments[0] in {'desktop-action', 'one-click', 'action'}:
|
|
51
|
+
arguments = arguments[1:]
|
|
52
|
+
parser = _argparse.ArgumentParser(prog='baguet desktop-action')
|
|
53
|
+
parser.add_argument('paths', nargs='+')
|
|
54
|
+
parser.add_argument('--mode', default='auto', choices=['auto', 'compress', 'decompress'])
|
|
55
|
+
parser.add_argument('--lang', default=None)
|
|
56
|
+
parser.add_argument('--key', default=None)
|
|
57
|
+
parser.add_argument('--prior', default=None)
|
|
58
|
+
parser.add_argument('--no-reveal', dest='reveal', action='store_false', default=True)
|
|
59
|
+
parser.add_argument('--no-notify', dest='notify', action='store_false', default=True)
|
|
60
|
+
try:
|
|
61
|
+
opts = parser.parse_args(arguments)
|
|
62
|
+
action_fn = getattr(getattr(_module, 'studio', None), 'desktop_one_click_action', None)
|
|
63
|
+
if action_fn is None:
|
|
64
|
+
action_fn = getattr(_module, 'desktop_one_click_action')
|
|
65
|
+
res = action_fn(opts.paths, mode=opts.mode, lang=opts.lang, reveal=opts.reveal, notify=opts.notify, passphrase=opts.key, prior_path=opts.prior)
|
|
66
|
+
if res.get('action') == 'open_studio_inspector':
|
|
67
|
+
return 10
|
|
68
|
+
return 0 if res.get('success', False) else 1
|
|
69
|
+
except Exception as exc:
|
|
70
|
+
print(f'Baguet desktop-action error: {exc}', file=_sys.stderr)
|
|
71
|
+
return 1
|
|
72
|
+
def desktop_decompress_main(argv=None):
|
|
73
|
+
extra = list(_sys.argv[1:] if argv is None else argv)
|
|
74
|
+
return desktop_action_main(['--mode', 'decompress', *extra])
|
|
75
|
+
def desktop_compress_main():
|
|
76
|
+
import pathlib as _pathlib
|
|
77
|
+
arguments = _sys.argv[1:]
|
|
78
|
+
if any(a in {'--smart', '--mode', '--decompress', '--compress'} for a in arguments):
|
|
79
|
+
return desktop_action_main(arguments)
|
|
80
|
+
if len(arguments) != 1:
|
|
81
|
+
print('Usage: baguet-desktop-compress INPUT_FILE', file=_sys.stderr)
|
|
82
|
+
return 2
|
|
83
|
+
source = _pathlib.Path(arguments[0]).expanduser()
|
|
84
|
+
if source.is_symlink() or not source.is_file():
|
|
85
|
+
print('BAGUET: input must be a regular, non-symlink file.', file=_sys.stderr)
|
|
86
|
+
return 2
|
|
87
|
+
output = source.with_name(source.name + '.bgt')
|
|
88
|
+
if output.exists() or output.is_symlink():
|
|
89
|
+
print(f'BAGUET: refusing to overwrite existing output: {output}', file=_sys.stderr)
|
|
90
|
+
return 2
|
|
91
|
+
return int(_module.run_cli(['compress', str(source), str(output)]))
|
|
92
|
+
for _name in dir(_module):
|
|
93
|
+
if not _name.startswith('_'):
|
|
94
|
+
globals()[_name] = getattr(_module, _name)
|
|
95
|
+
_module.main = main
|
|
96
|
+
_module.activate_main = activate_main
|
|
97
|
+
_module.studio_main = studio_main
|
|
98
|
+
_module.desktop_action_main = desktop_action_main
|
|
99
|
+
_module.desktop_decompress_main = desktop_decompress_main
|
|
100
|
+
_module.desktop_compress_main = desktop_compress_main
|
|
101
|
+
_sys.modules[__name__] = _module
|
|
102
|
+
if __name__ == '__main__':
|
|
103
|
+
raise SystemExit(main())
|