@dreamor/atlas-cli 0.7.18 → 0.7.19
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.
|
@@ -45,8 +45,12 @@ export async function refreshSession(opts = {}) {
|
|
|
45
45
|
}
|
|
46
46
|
try {
|
|
47
47
|
const ctx = await browser.newContext();
|
|
48
|
-
// 灌入已有 cookie
|
|
49
|
-
|
|
48
|
+
// 灌入已有 cookie,但剥离失效的 access_token —— 强制 SSO 用
|
|
49
|
+
// SSO_REFRESH_TOKEN 换发全新 token,防止 still_valid 假阳性。
|
|
50
|
+
// playwright 严格校验 cookie 字段,需要补齐 path/secure 等。
|
|
51
|
+
const cookiesForContext = existing
|
|
52
|
+
.filter((c) => c.name !== 'access_token')
|
|
53
|
+
.map((c) => ({
|
|
50
54
|
name: c.name,
|
|
51
55
|
value: c.value,
|
|
52
56
|
domain: c.domain ?? '.alibaba-inc.com',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ATLAS_VERSION = '0.7.
|
|
1
|
+
export const ATLAS_VERSION = '0.7.19';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamor/atlas-cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"description": "Atlas CLI - 斑马云图人力基线管理工具",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"esbuild": "^0.28.1",
|
|
50
50
|
"tsx": "^4.19.0",
|
|
51
51
|
"typescript": "^5.6.0",
|
|
52
|
-
"vitest": "^
|
|
52
|
+
"vitest": "^4.1.9"
|
|
53
53
|
}
|
|
54
54
|
}
|