coze_lab 0.1.2 → 0.1.3
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
|
@@ -42,10 +42,10 @@ except ImportError:
|
|
|
42
42
|
|
|
43
43
|
# --- Configuration ---
|
|
44
44
|
DEBUG = os.environ.get("CC_COZELOOP_DEBUG", "").lower() == "true"
|
|
45
|
-
_COZELOOP_CLIENT_ID = "
|
|
45
|
+
_COZELOOP_CLIENT_ID = "46371084383473718052118955183420.app.coze"
|
|
46
46
|
_COZE_API = "https://api.coze.cn"
|
|
47
47
|
_REFRESH_THRESHOLD = 10 * 60 # refresh when < 10 minutes remain
|
|
48
|
-
_DEFAULT_WORKSPACE_ID = "
|
|
48
|
+
_DEFAULT_WORKSPACE_ID = "7645949103524380682" # hardcoded spaceID fallback
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
# --- coze-context parsing -------------------------------------------------
|
|
@@ -42,10 +42,10 @@ from pathlib import Path
|
|
|
42
42
|
from typing import Optional, List, Dict, Any
|
|
43
43
|
|
|
44
44
|
# --- Token refresh --------------------------------------------------------
|
|
45
|
-
_COZELOOP_CLIENT_ID = "
|
|
45
|
+
_COZELOOP_CLIENT_ID = "46371084383473718052118955183420.app.coze"
|
|
46
46
|
_COZE_API = "https://api.coze.cn"
|
|
47
47
|
_REFRESH_THRESHOLD = 10 * 60
|
|
48
|
-
_DEFAULT_WORKSPACE_ID = "
|
|
48
|
+
_DEFAULT_WORKSPACE_ID = "7645949103524380682" # hardcoded spaceID fallback
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
# --- coze-context parsing -------------------------------------------------
|
|
@@ -14,7 +14,7 @@ const require = createRequire(import.meta.url);
|
|
|
14
14
|
const { version: PLUGIN_VERSION } = require("../package.json");
|
|
15
15
|
|
|
16
16
|
// ── Token refresh helpers ─────────────────────────────────────────────────
|
|
17
|
-
const _CLIENT_ID = "
|
|
17
|
+
const _CLIENT_ID = "46371084383473718052118955183420.app.coze";
|
|
18
18
|
const _COZE_API = "https://api.coze.cn";
|
|
19
19
|
const _REFRESH_THRESHOLD_MS = 10 * 60 * 1000;
|
|
20
20
|
const _CREDS_PATH = join(homedir(), ".cozeloop", "credentials.json");
|
|
@@ -7,7 +7,7 @@ Writes the fresh token back so subsequent Stop hooks pick it up.
|
|
|
7
7
|
import json, os, sys, time, urllib.request
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
|
|
10
|
-
CLIENT_ID = "
|
|
10
|
+
CLIENT_ID = "46371084383473718052118955183420.app.coze"
|
|
11
11
|
COZE_API = "https://api.coze.cn"
|
|
12
12
|
THRESHOLD = 10 * 60 # 10 minutes
|
|
13
13
|
CREDS = Path.home() / ".cozeloop" / "credentials.json"
|