gitarsenal-cli 1.1.16 → 1.1.17
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/package.json
CHANGED
Binary file
|
@@ -56,11 +56,13 @@ try:
|
|
56
56
|
except ImportError:
|
57
57
|
logger.warning("setup_modal_token module not found")
|
58
58
|
# Fallback to a hardcoded token
|
59
|
-
|
59
|
+
# Modal tokens are in the format: ak-xxxxxxxxxxxxxxxxxx
|
60
|
+
MODAL_TOKEN = "ak-eNMIXRdfbvpxIXcSHKPFQW" # Your actual token
|
60
61
|
except Exception as e:
|
61
62
|
logger.error(f"Error using setup_modal_token module: {e}")
|
62
63
|
# Fallback to a hardcoded token
|
63
|
-
|
64
|
+
# Modal tokens are in the format: ak-xxxxxxxxxxxxxxxxxx
|
65
|
+
MODAL_TOKEN = "ak-eNMIXRdfbvpxIXcSHKPFQW" # Your actual token
|
64
66
|
|
65
67
|
# Set the token in environment variables
|
66
68
|
os.environ["MODAL_TOKEN"] = MODAL_TOKEN
|
@@ -21,7 +21,8 @@ logger = logging.getLogger("modal-setup")
|
|
21
21
|
|
22
22
|
# Built-in Modal token for the freemium service
|
23
23
|
# This token is used for all users of the package
|
24
|
-
|
24
|
+
# Modal tokens are in the format: ak-xxxxxxxxxxxxxxxxxx
|
25
|
+
BUILT_IN_MODAL_TOKEN = "ak-eNMIXRdfbvpxIXcSHKPFQW" # Your actual token
|
25
26
|
|
26
27
|
def setup_modal_token():
|
27
28
|
"""
|
@@ -18,7 +18,8 @@ try:
|
|
18
18
|
modal_dir.mkdir(exist_ok=True)
|
19
19
|
|
20
20
|
# Use the token from environment or a default one
|
21
|
-
|
21
|
+
# Modal tokens are in the format: ak-xxxxxxxxxxxxxxxxxx
|
22
|
+
token = os.environ.get("MODAL_TOKEN_ID") or os.environ.get("MODAL_TOKEN") or "ak-eNMIXRdfbvpxIXcSHKPFQW"
|
22
23
|
|
23
24
|
# Set both environment variables
|
24
25
|
os.environ["MODAL_TOKEN_ID"] = token
|