delimit-cli 4.1.44 → 4.1.47
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/CHANGELOG.md +6 -0
- package/bin/delimit-cli.js +365 -30
- package/bin/delimit-setup.js +100 -64
- package/gateway/ai/activate_helpers.py +253 -7
- package/gateway/ai/backends/gateway_core.py +236 -13
- package/gateway/ai/backends/repo_bridge.py +80 -16
- package/gateway/ai/backends/tools_infra.py +49 -32
- package/gateway/ai/checksums.sha256 +6 -0
- package/gateway/ai/continuity.py +462 -0
- package/gateway/ai/deliberation.pyi +53 -0
- package/gateway/ai/governance.pyi +32 -0
- package/gateway/ai/governance_hardening.py +569 -0
- package/gateway/ai/inbox_daemon_runner.py +217 -0
- package/gateway/ai/ledger_manager.py +40 -0
- package/gateway/ai/license.py +104 -3
- package/gateway/ai/license_core.py +177 -36
- package/gateway/ai/license_core.pyi +50 -0
- package/gateway/ai/loop_engine.py +786 -22
- package/gateway/ai/reddit_scanner.py +150 -5
- package/gateway/ai/server.py +254 -19
- package/gateway/ai/swarm.py +86 -0
- package/gateway/ai/swarm_infra.py +656 -0
- package/gateway/ai/tweet_corpus_schema.sql +76 -0
- package/gateway/core/diff_engine_v2.py +6 -2
- package/gateway/core/generator_drift.py +242 -0
- package/gateway/core/json_schema_diff.py +375 -0
- package/gateway/core/openapi_version.py +124 -0
- package/gateway/core/spec_detector.py +47 -7
- package/gateway/core/spec_health.py +5 -2
- package/lib/cross-model-hooks.js +4 -12
- package/package.json +8 -1
- package/scripts/sync-gateway.sh +13 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# This file was generated by Nuitka
|
|
2
|
+
|
|
3
|
+
# Stubs included by default
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
import hashlib
|
|
7
|
+
import json
|
|
8
|
+
import time
|
|
9
|
+
|
|
10
|
+
LICENSE_FILE = Path.home() / '.delimit' / 'license.json'
|
|
11
|
+
USAGE_FILE = Path.home() / '.delimit' / 'usage.json'
|
|
12
|
+
LS_VALIDATE_URL = 'https://api.lemonsqueezy.com/v1/licenses/validate'
|
|
13
|
+
REVALIDATION_INTERVAL = 30 * 86400
|
|
14
|
+
GRACE_PERIOD = 7 * 86400
|
|
15
|
+
HARD_BLOCK = 14 * 86400
|
|
16
|
+
PRO_TOOLS = frozenset({'delimit_gov_health', 'delimit_gov_status', 'delimit_gov_evaluate', 'delimit_gov_policy', 'delimit_gov_run', 'delimit_gov_verify', 'delimit_deploy_plan', 'delimit_deploy_build', 'delimit_deploy_publish', 'delimit_deploy_verify', 'delimit_deploy_rollback', 'delimit_deploy_site', 'delimit_deploy_npm', 'delimit_memory_store', 'delimit_memory_search', 'delimit_memory_recent', 'delimit_vault_search', 'delimit_vault_snapshot', 'delimit_vault_health', 'delimit_evidence_collect', 'delimit_evidence_verify', 'delimit_deliberate', 'delimit_models', 'delimit_obs_metrics', 'delimit_obs_logs', 'delimit_obs_status', 'delimit_release_plan', 'delimit_release_status', 'delimit_release_sync', 'delimit_cost_analyze', 'delimit_cost_optimize', 'delimit_cost_alert'})
|
|
17
|
+
FREE_TRIAL_LIMITS = {'delimit_deliberate': 3}
|
|
18
|
+
def load_license() -> dict:
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
def check_premium() -> bool:
|
|
22
|
+
...
|
|
23
|
+
|
|
24
|
+
def gate_tool(tool_name: str) -> dict | None:
|
|
25
|
+
...
|
|
26
|
+
|
|
27
|
+
def activate(key: str) -> dict:
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
def _revalidate(data: dict) -> dict:
|
|
31
|
+
...
|
|
32
|
+
|
|
33
|
+
def _get_monthly_usage(tool_name: str) -> int:
|
|
34
|
+
...
|
|
35
|
+
|
|
36
|
+
def _increment_usage(tool_name: str) -> int:
|
|
37
|
+
...
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
__name__ = ...
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# Modules used internally, to allow implicit dependencies to be seen:
|
|
45
|
+
import hashlib
|
|
46
|
+
import json
|
|
47
|
+
import time
|
|
48
|
+
import pathlib
|
|
49
|
+
import urllib
|
|
50
|
+
import urllib.request
|