@gobing-ai/knowledge-kit 0.1.27 → 0.1.28
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/.claude-plugin/marketplace.json +1 -1
- package/dist/board/collect/index.js +10 -0
- package/dist/board/daily-voice/index.js +1327 -2168
- package/dist/board/itc/index.js +10 -0
- package/dist/index.js +5980 -4651
- package/package.json +1 -1
- package/plugins/ingestions/aihot-ingest/dist/index.js +4 -1
- package/plugins/ingestions/aihot-ingest/src/rss.ts +22 -11
- package/plugins/kk/plugin.json +1 -1
- package/plugins/kk/scripts/daily-stages.ts +7 -7
- package/plugins/kk/workflows/kk-news-generate.yaml +1 -1
- package/plugins/publishings/bilibili-pub/dist/index.js +81 -80
- package/plugins/publishings/bilibili-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/cnblogs-pub/dist/index.js +81 -80
- package/plugins/publishings/cnblogs-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/csdn-pub/dist/index.js +81 -80
- package/plugins/publishings/csdn-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/infoq-pub/dist/index.js +81 -80
- package/plugins/publishings/infoq-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/jike-pub/dist/index.js +81 -80
- package/plugins/publishings/jike-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/juejin-pub/dist/index.js +81 -80
- package/plugins/publishings/juejin-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/linkedin-pub/dist/index.js +81 -80
- package/plugins/publishings/linkedin-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/medium-pub/dist/index.js +81 -80
- package/plugins/publishings/medium-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/shipinhao-pub/dist/index.js +272 -85
- package/plugins/publishings/shipinhao-pub/dist/profile-check.js +112 -3
- package/plugins/publishings/shipinhao-pub/src/cover-crop.ts +60 -0
- package/plugins/publishings/shipinhao-pub/src/flow.ts +15 -2
- package/plugins/publishings/shipinhao-pub/src/profile-check.ts +15 -12
- package/plugins/publishings/shipinhao-pub/src/selectors.ts +22 -1
- package/plugins/publishings/sspai-pub/dist/index.js +81 -80
- package/plugins/publishings/sspai-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/substack-pub/dist/index.js +81 -80
- package/plugins/publishings/substack-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/surfdash-pub/dist/index.js +43 -5
- package/plugins/publishings/threads-pub/dist/index.js +86 -81
- package/plugins/publishings/threads-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/threads-pub/src/index.ts +10 -0
- package/plugins/publishings/wechatmp-pub/dist/index.js +84 -83
- package/plugins/publishings/wechatmp-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/weibo-pub/dist/index.js +217 -83
- package/plugins/publishings/weibo-pub/dist/profile-check.js +123 -3
- package/plugins/publishings/weibo-pub/src/index.ts +60 -2
- package/plugins/publishings/weibo-pub/src/profile-check.ts +4 -2
- package/plugins/publishings/x-pub/dist/index.js +81 -80
- package/plugins/publishings/x-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/xhs-pub/dist/index.js +81 -80
- package/plugins/publishings/xhs-pub/dist/profile-check.js +1 -1
- package/plugins/publishings/xiaoyuzhou-pub/dist/index.js +81 -80
- package/plugins/publishings/xiaoyuzhou-pub/dist/profile-check.js +1 -1
|
@@ -20172,6 +20172,86 @@ var ATTACHED_CLOSERS = new Set(["\u201D", "\u2019", "\u300D", "\u300F", "\uFF09"
|
|
|
20172
20172
|
import { homedir } from "os";
|
|
20173
20173
|
import { join, resolve } from "path";
|
|
20174
20174
|
|
|
20175
|
+
// ../../packages/publish-harness/src/bot-fs.ts
|
|
20176
|
+
import {
|
|
20177
|
+
chmodSync,
|
|
20178
|
+
closeSync,
|
|
20179
|
+
copyFileSync,
|
|
20180
|
+
lstatSync,
|
|
20181
|
+
mkdirSync as mkdirSync2,
|
|
20182
|
+
openSync,
|
|
20183
|
+
readdirSync as readdirSync2,
|
|
20184
|
+
readlinkSync,
|
|
20185
|
+
realpathSync as realpathSync2,
|
|
20186
|
+
renameSync as renameSync2,
|
|
20187
|
+
rmdirSync,
|
|
20188
|
+
unlinkSync
|
|
20189
|
+
} from "fs";
|
|
20190
|
+
function lstat(path) {
|
|
20191
|
+
try {
|
|
20192
|
+
return lstatSync(path);
|
|
20193
|
+
} catch (error) {
|
|
20194
|
+
if (error.code === "ENOENT")
|
|
20195
|
+
return null;
|
|
20196
|
+
throw error;
|
|
20197
|
+
}
|
|
20198
|
+
}
|
|
20199
|
+
function realpath(path) {
|
|
20200
|
+
return realpathSync2(path);
|
|
20201
|
+
}
|
|
20202
|
+
function mkdirExclusive(path, mode = 448) {
|
|
20203
|
+
try {
|
|
20204
|
+
mkdirSync2(path, { mode });
|
|
20205
|
+
return true;
|
|
20206
|
+
} catch (error) {
|
|
20207
|
+
if (error.code === "EEXIST")
|
|
20208
|
+
return false;
|
|
20209
|
+
throw error;
|
|
20210
|
+
}
|
|
20211
|
+
}
|
|
20212
|
+
function rmdir(path) {
|
|
20213
|
+
try {
|
|
20214
|
+
rmdirSync(path);
|
|
20215
|
+
return true;
|
|
20216
|
+
} catch (error) {
|
|
20217
|
+
const code = error.code;
|
|
20218
|
+
if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
|
|
20219
|
+
return false;
|
|
20220
|
+
throw error;
|
|
20221
|
+
}
|
|
20222
|
+
}
|
|
20223
|
+
function readlink(path) {
|
|
20224
|
+
try {
|
|
20225
|
+
return readlinkSync(path);
|
|
20226
|
+
} catch {
|
|
20227
|
+
return null;
|
|
20228
|
+
}
|
|
20229
|
+
}
|
|
20230
|
+
function unlink(path) {
|
|
20231
|
+
try {
|
|
20232
|
+
unlinkSync(path);
|
|
20233
|
+
return true;
|
|
20234
|
+
} catch (error) {
|
|
20235
|
+
if (error.code === "ENOENT")
|
|
20236
|
+
return false;
|
|
20237
|
+
throw error;
|
|
20238
|
+
}
|
|
20239
|
+
}
|
|
20240
|
+
function rename(from, to) {
|
|
20241
|
+
try {
|
|
20242
|
+
renameSync2(from, to);
|
|
20243
|
+
return true;
|
|
20244
|
+
} catch (error) {
|
|
20245
|
+
if (error.code === "ENOENT")
|
|
20246
|
+
return false;
|
|
20247
|
+
throw error;
|
|
20248
|
+
}
|
|
20249
|
+
}
|
|
20250
|
+
function chmod(path, mode) {
|
|
20251
|
+
chmodSync(path, mode);
|
|
20252
|
+
}
|
|
20253
|
+
|
|
20254
|
+
// ../../packages/publish-harness/src/index.ts
|
|
20175
20255
|
class FakeTransportCore {
|
|
20176
20256
|
callLogs = [];
|
|
20177
20257
|
nextResult;
|
|
@@ -20480,85 +20560,6 @@ init_dist();
|
|
|
20480
20560
|
import { homedir as homedir4 } from "os";
|
|
20481
20561
|
import { isAbsolute, join as join4, relative, resolve as resolve4, sep } from "path";
|
|
20482
20562
|
|
|
20483
|
-
// ../../packages/publish-harness/src/bot-fs.ts
|
|
20484
|
-
import {
|
|
20485
|
-
chmodSync,
|
|
20486
|
-
closeSync,
|
|
20487
|
-
copyFileSync,
|
|
20488
|
-
lstatSync,
|
|
20489
|
-
mkdirSync as mkdirSync2,
|
|
20490
|
-
openSync,
|
|
20491
|
-
readdirSync as readdirSync2,
|
|
20492
|
-
readlinkSync,
|
|
20493
|
-
realpathSync as realpathSync2,
|
|
20494
|
-
renameSync as renameSync2,
|
|
20495
|
-
rmdirSync,
|
|
20496
|
-
unlinkSync
|
|
20497
|
-
} from "fs";
|
|
20498
|
-
function lstat(path) {
|
|
20499
|
-
try {
|
|
20500
|
-
return lstatSync(path);
|
|
20501
|
-
} catch (error) {
|
|
20502
|
-
if (error.code === "ENOENT")
|
|
20503
|
-
return null;
|
|
20504
|
-
throw error;
|
|
20505
|
-
}
|
|
20506
|
-
}
|
|
20507
|
-
function realpath(path) {
|
|
20508
|
-
return realpathSync2(path);
|
|
20509
|
-
}
|
|
20510
|
-
function mkdirExclusive(path, mode = 448) {
|
|
20511
|
-
try {
|
|
20512
|
-
mkdirSync2(path, { mode });
|
|
20513
|
-
return true;
|
|
20514
|
-
} catch (error) {
|
|
20515
|
-
if (error.code === "EEXIST")
|
|
20516
|
-
return false;
|
|
20517
|
-
throw error;
|
|
20518
|
-
}
|
|
20519
|
-
}
|
|
20520
|
-
function rmdir(path) {
|
|
20521
|
-
try {
|
|
20522
|
-
rmdirSync(path);
|
|
20523
|
-
return true;
|
|
20524
|
-
} catch (error) {
|
|
20525
|
-
const code = error.code;
|
|
20526
|
-
if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
|
|
20527
|
-
return false;
|
|
20528
|
-
throw error;
|
|
20529
|
-
}
|
|
20530
|
-
}
|
|
20531
|
-
function readlink(path) {
|
|
20532
|
-
try {
|
|
20533
|
-
return readlinkSync(path);
|
|
20534
|
-
} catch {
|
|
20535
|
-
return null;
|
|
20536
|
-
}
|
|
20537
|
-
}
|
|
20538
|
-
function unlink(path) {
|
|
20539
|
-
try {
|
|
20540
|
-
unlinkSync(path);
|
|
20541
|
-
return true;
|
|
20542
|
-
} catch (error) {
|
|
20543
|
-
if (error.code === "ENOENT")
|
|
20544
|
-
return false;
|
|
20545
|
-
throw error;
|
|
20546
|
-
}
|
|
20547
|
-
}
|
|
20548
|
-
function rename(from, to) {
|
|
20549
|
-
try {
|
|
20550
|
-
renameSync2(from, to);
|
|
20551
|
-
return true;
|
|
20552
|
-
} catch (error) {
|
|
20553
|
-
if (error.code === "ENOENT")
|
|
20554
|
-
return false;
|
|
20555
|
-
throw error;
|
|
20556
|
-
}
|
|
20557
|
-
}
|
|
20558
|
-
function chmod(path, mode) {
|
|
20559
|
-
chmodSync(path, mode);
|
|
20560
|
-
}
|
|
20561
|
-
|
|
20562
20563
|
// ../../packages/publish-harness/src/bot-transaction.ts
|
|
20563
20564
|
import { homedir as homedir2 } from "os";
|
|
20564
20565
|
import { dirname as dirname2, join as join2, resolve as resolve2 } from "path";
|
|
@@ -20858,7 +20859,7 @@ function quarantineProfileSyncData(profileDir) {
|
|
|
20858
20859
|
const syncData = join5(profileDir, "Default", "Sync Data");
|
|
20859
20860
|
if (lstat(syncData) === null)
|
|
20860
20861
|
return false;
|
|
20861
|
-
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0,
|
|
20862
|
+
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
|
|
20862
20863
|
}
|
|
20863
20864
|
function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
|
|
20864
20865
|
return {
|
|
@@ -20537,7 +20537,7 @@ function quarantineProfileSyncData(profileDir) {
|
|
|
20537
20537
|
const syncData = join5(profileDir, "Default", "Sync Data");
|
|
20538
20538
|
if (lstat(syncData) === null)
|
|
20539
20539
|
return false;
|
|
20540
|
-
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0,
|
|
20540
|
+
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
|
|
20541
20541
|
}
|
|
20542
20542
|
function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
|
|
20543
20543
|
return {
|
|
@@ -20171,6 +20171,86 @@ var ATTACHED_CLOSERS = new Set(["\u201D", "\u2019", "\u300D", "\u300F", "\uFF09"
|
|
|
20171
20171
|
import { homedir } from "os";
|
|
20172
20172
|
import { join, resolve } from "path";
|
|
20173
20173
|
|
|
20174
|
+
// ../../packages/publish-harness/src/bot-fs.ts
|
|
20175
|
+
import {
|
|
20176
|
+
chmodSync,
|
|
20177
|
+
closeSync,
|
|
20178
|
+
copyFileSync,
|
|
20179
|
+
lstatSync,
|
|
20180
|
+
mkdirSync as mkdirSync2,
|
|
20181
|
+
openSync,
|
|
20182
|
+
readdirSync as readdirSync2,
|
|
20183
|
+
readlinkSync,
|
|
20184
|
+
realpathSync as realpathSync2,
|
|
20185
|
+
renameSync as renameSync2,
|
|
20186
|
+
rmdirSync,
|
|
20187
|
+
unlinkSync
|
|
20188
|
+
} from "fs";
|
|
20189
|
+
function lstat(path) {
|
|
20190
|
+
try {
|
|
20191
|
+
return lstatSync(path);
|
|
20192
|
+
} catch (error) {
|
|
20193
|
+
if (error.code === "ENOENT")
|
|
20194
|
+
return null;
|
|
20195
|
+
throw error;
|
|
20196
|
+
}
|
|
20197
|
+
}
|
|
20198
|
+
function realpath(path) {
|
|
20199
|
+
return realpathSync2(path);
|
|
20200
|
+
}
|
|
20201
|
+
function mkdirExclusive(path, mode = 448) {
|
|
20202
|
+
try {
|
|
20203
|
+
mkdirSync2(path, { mode });
|
|
20204
|
+
return true;
|
|
20205
|
+
} catch (error) {
|
|
20206
|
+
if (error.code === "EEXIST")
|
|
20207
|
+
return false;
|
|
20208
|
+
throw error;
|
|
20209
|
+
}
|
|
20210
|
+
}
|
|
20211
|
+
function rmdir(path) {
|
|
20212
|
+
try {
|
|
20213
|
+
rmdirSync(path);
|
|
20214
|
+
return true;
|
|
20215
|
+
} catch (error) {
|
|
20216
|
+
const code = error.code;
|
|
20217
|
+
if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
|
|
20218
|
+
return false;
|
|
20219
|
+
throw error;
|
|
20220
|
+
}
|
|
20221
|
+
}
|
|
20222
|
+
function readlink(path) {
|
|
20223
|
+
try {
|
|
20224
|
+
return readlinkSync(path);
|
|
20225
|
+
} catch {
|
|
20226
|
+
return null;
|
|
20227
|
+
}
|
|
20228
|
+
}
|
|
20229
|
+
function unlink(path) {
|
|
20230
|
+
try {
|
|
20231
|
+
unlinkSync(path);
|
|
20232
|
+
return true;
|
|
20233
|
+
} catch (error) {
|
|
20234
|
+
if (error.code === "ENOENT")
|
|
20235
|
+
return false;
|
|
20236
|
+
throw error;
|
|
20237
|
+
}
|
|
20238
|
+
}
|
|
20239
|
+
function rename(from, to) {
|
|
20240
|
+
try {
|
|
20241
|
+
renameSync2(from, to);
|
|
20242
|
+
return true;
|
|
20243
|
+
} catch (error) {
|
|
20244
|
+
if (error.code === "ENOENT")
|
|
20245
|
+
return false;
|
|
20246
|
+
throw error;
|
|
20247
|
+
}
|
|
20248
|
+
}
|
|
20249
|
+
function chmod(path, mode) {
|
|
20250
|
+
chmodSync(path, mode);
|
|
20251
|
+
}
|
|
20252
|
+
|
|
20253
|
+
// ../../packages/publish-harness/src/index.ts
|
|
20174
20254
|
class FakeTransportCore {
|
|
20175
20255
|
callLogs = [];
|
|
20176
20256
|
nextResult;
|
|
@@ -20455,85 +20535,6 @@ init_dist();
|
|
|
20455
20535
|
import { homedir as homedir4 } from "os";
|
|
20456
20536
|
import { isAbsolute, join as join4, relative, resolve as resolve4, sep } from "path";
|
|
20457
20537
|
|
|
20458
|
-
// ../../packages/publish-harness/src/bot-fs.ts
|
|
20459
|
-
import {
|
|
20460
|
-
chmodSync,
|
|
20461
|
-
closeSync,
|
|
20462
|
-
copyFileSync,
|
|
20463
|
-
lstatSync,
|
|
20464
|
-
mkdirSync as mkdirSync2,
|
|
20465
|
-
openSync,
|
|
20466
|
-
readdirSync as readdirSync2,
|
|
20467
|
-
readlinkSync,
|
|
20468
|
-
realpathSync as realpathSync2,
|
|
20469
|
-
renameSync as renameSync2,
|
|
20470
|
-
rmdirSync,
|
|
20471
|
-
unlinkSync
|
|
20472
|
-
} from "fs";
|
|
20473
|
-
function lstat(path) {
|
|
20474
|
-
try {
|
|
20475
|
-
return lstatSync(path);
|
|
20476
|
-
} catch (error) {
|
|
20477
|
-
if (error.code === "ENOENT")
|
|
20478
|
-
return null;
|
|
20479
|
-
throw error;
|
|
20480
|
-
}
|
|
20481
|
-
}
|
|
20482
|
-
function realpath(path) {
|
|
20483
|
-
return realpathSync2(path);
|
|
20484
|
-
}
|
|
20485
|
-
function mkdirExclusive(path, mode = 448) {
|
|
20486
|
-
try {
|
|
20487
|
-
mkdirSync2(path, { mode });
|
|
20488
|
-
return true;
|
|
20489
|
-
} catch (error) {
|
|
20490
|
-
if (error.code === "EEXIST")
|
|
20491
|
-
return false;
|
|
20492
|
-
throw error;
|
|
20493
|
-
}
|
|
20494
|
-
}
|
|
20495
|
-
function rmdir(path) {
|
|
20496
|
-
try {
|
|
20497
|
-
rmdirSync(path);
|
|
20498
|
-
return true;
|
|
20499
|
-
} catch (error) {
|
|
20500
|
-
const code = error.code;
|
|
20501
|
-
if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
|
|
20502
|
-
return false;
|
|
20503
|
-
throw error;
|
|
20504
|
-
}
|
|
20505
|
-
}
|
|
20506
|
-
function readlink(path) {
|
|
20507
|
-
try {
|
|
20508
|
-
return readlinkSync(path);
|
|
20509
|
-
} catch {
|
|
20510
|
-
return null;
|
|
20511
|
-
}
|
|
20512
|
-
}
|
|
20513
|
-
function unlink(path) {
|
|
20514
|
-
try {
|
|
20515
|
-
unlinkSync(path);
|
|
20516
|
-
return true;
|
|
20517
|
-
} catch (error) {
|
|
20518
|
-
if (error.code === "ENOENT")
|
|
20519
|
-
return false;
|
|
20520
|
-
throw error;
|
|
20521
|
-
}
|
|
20522
|
-
}
|
|
20523
|
-
function rename(from, to) {
|
|
20524
|
-
try {
|
|
20525
|
-
renameSync2(from, to);
|
|
20526
|
-
return true;
|
|
20527
|
-
} catch (error) {
|
|
20528
|
-
if (error.code === "ENOENT")
|
|
20529
|
-
return false;
|
|
20530
|
-
throw error;
|
|
20531
|
-
}
|
|
20532
|
-
}
|
|
20533
|
-
function chmod(path, mode) {
|
|
20534
|
-
chmodSync(path, mode);
|
|
20535
|
-
}
|
|
20536
|
-
|
|
20537
20538
|
// ../../packages/publish-harness/src/bot-transaction.ts
|
|
20538
20539
|
import { homedir as homedir2 } from "os";
|
|
20539
20540
|
import { dirname as dirname2, join as join2, resolve as resolve2 } from "path";
|
|
@@ -20833,7 +20834,7 @@ function quarantineProfileSyncData(profileDir) {
|
|
|
20833
20834
|
const syncData = join5(profileDir, "Default", "Sync Data");
|
|
20834
20835
|
if (lstat(syncData) === null)
|
|
20835
20836
|
return false;
|
|
20836
|
-
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0,
|
|
20837
|
+
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
|
|
20837
20838
|
}
|
|
20838
20839
|
function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
|
|
20839
20840
|
return {
|
|
@@ -20638,7 +20638,7 @@ function quarantineProfileSyncData(profileDir) {
|
|
|
20638
20638
|
const syncData = join5(profileDir, "Default", "Sync Data");
|
|
20639
20639
|
if (lstat(syncData) === null)
|
|
20640
20640
|
return false;
|
|
20641
|
-
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0,
|
|
20641
|
+
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
|
|
20642
20642
|
}
|
|
20643
20643
|
function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
|
|
20644
20644
|
return {
|
|
@@ -20171,6 +20171,86 @@ var ATTACHED_CLOSERS = new Set(["\u201D", "\u2019", "\u300D", "\u300F", "\uFF09"
|
|
|
20171
20171
|
import { homedir } from "os";
|
|
20172
20172
|
import { join, resolve } from "path";
|
|
20173
20173
|
|
|
20174
|
+
// ../../packages/publish-harness/src/bot-fs.ts
|
|
20175
|
+
import {
|
|
20176
|
+
chmodSync,
|
|
20177
|
+
closeSync,
|
|
20178
|
+
copyFileSync,
|
|
20179
|
+
lstatSync,
|
|
20180
|
+
mkdirSync as mkdirSync2,
|
|
20181
|
+
openSync,
|
|
20182
|
+
readdirSync as readdirSync2,
|
|
20183
|
+
readlinkSync,
|
|
20184
|
+
realpathSync as realpathSync2,
|
|
20185
|
+
renameSync as renameSync2,
|
|
20186
|
+
rmdirSync,
|
|
20187
|
+
unlinkSync
|
|
20188
|
+
} from "fs";
|
|
20189
|
+
function lstat(path) {
|
|
20190
|
+
try {
|
|
20191
|
+
return lstatSync(path);
|
|
20192
|
+
} catch (error) {
|
|
20193
|
+
if (error.code === "ENOENT")
|
|
20194
|
+
return null;
|
|
20195
|
+
throw error;
|
|
20196
|
+
}
|
|
20197
|
+
}
|
|
20198
|
+
function realpath(path) {
|
|
20199
|
+
return realpathSync2(path);
|
|
20200
|
+
}
|
|
20201
|
+
function mkdirExclusive(path, mode = 448) {
|
|
20202
|
+
try {
|
|
20203
|
+
mkdirSync2(path, { mode });
|
|
20204
|
+
return true;
|
|
20205
|
+
} catch (error) {
|
|
20206
|
+
if (error.code === "EEXIST")
|
|
20207
|
+
return false;
|
|
20208
|
+
throw error;
|
|
20209
|
+
}
|
|
20210
|
+
}
|
|
20211
|
+
function rmdir(path) {
|
|
20212
|
+
try {
|
|
20213
|
+
rmdirSync(path);
|
|
20214
|
+
return true;
|
|
20215
|
+
} catch (error) {
|
|
20216
|
+
const code = error.code;
|
|
20217
|
+
if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
|
|
20218
|
+
return false;
|
|
20219
|
+
throw error;
|
|
20220
|
+
}
|
|
20221
|
+
}
|
|
20222
|
+
function readlink(path) {
|
|
20223
|
+
try {
|
|
20224
|
+
return readlinkSync(path);
|
|
20225
|
+
} catch {
|
|
20226
|
+
return null;
|
|
20227
|
+
}
|
|
20228
|
+
}
|
|
20229
|
+
function unlink(path) {
|
|
20230
|
+
try {
|
|
20231
|
+
unlinkSync(path);
|
|
20232
|
+
return true;
|
|
20233
|
+
} catch (error) {
|
|
20234
|
+
if (error.code === "ENOENT")
|
|
20235
|
+
return false;
|
|
20236
|
+
throw error;
|
|
20237
|
+
}
|
|
20238
|
+
}
|
|
20239
|
+
function rename(from, to) {
|
|
20240
|
+
try {
|
|
20241
|
+
renameSync2(from, to);
|
|
20242
|
+
return true;
|
|
20243
|
+
} catch (error) {
|
|
20244
|
+
if (error.code === "ENOENT")
|
|
20245
|
+
return false;
|
|
20246
|
+
throw error;
|
|
20247
|
+
}
|
|
20248
|
+
}
|
|
20249
|
+
function chmod(path, mode) {
|
|
20250
|
+
chmodSync(path, mode);
|
|
20251
|
+
}
|
|
20252
|
+
|
|
20253
|
+
// ../../packages/publish-harness/src/index.ts
|
|
20174
20254
|
class FakeTransportCore {
|
|
20175
20255
|
callLogs = [];
|
|
20176
20256
|
nextResult;
|
|
@@ -20461,85 +20541,6 @@ init_dist();
|
|
|
20461
20541
|
import { homedir as homedir4 } from "os";
|
|
20462
20542
|
import { isAbsolute, join as join4, relative, resolve as resolve4, sep } from "path";
|
|
20463
20543
|
|
|
20464
|
-
// ../../packages/publish-harness/src/bot-fs.ts
|
|
20465
|
-
import {
|
|
20466
|
-
chmodSync,
|
|
20467
|
-
closeSync,
|
|
20468
|
-
copyFileSync,
|
|
20469
|
-
lstatSync,
|
|
20470
|
-
mkdirSync as mkdirSync2,
|
|
20471
|
-
openSync,
|
|
20472
|
-
readdirSync as readdirSync2,
|
|
20473
|
-
readlinkSync,
|
|
20474
|
-
realpathSync as realpathSync2,
|
|
20475
|
-
renameSync as renameSync2,
|
|
20476
|
-
rmdirSync,
|
|
20477
|
-
unlinkSync
|
|
20478
|
-
} from "fs";
|
|
20479
|
-
function lstat(path) {
|
|
20480
|
-
try {
|
|
20481
|
-
return lstatSync(path);
|
|
20482
|
-
} catch (error) {
|
|
20483
|
-
if (error.code === "ENOENT")
|
|
20484
|
-
return null;
|
|
20485
|
-
throw error;
|
|
20486
|
-
}
|
|
20487
|
-
}
|
|
20488
|
-
function realpath(path) {
|
|
20489
|
-
return realpathSync2(path);
|
|
20490
|
-
}
|
|
20491
|
-
function mkdirExclusive(path, mode = 448) {
|
|
20492
|
-
try {
|
|
20493
|
-
mkdirSync2(path, { mode });
|
|
20494
|
-
return true;
|
|
20495
|
-
} catch (error) {
|
|
20496
|
-
if (error.code === "EEXIST")
|
|
20497
|
-
return false;
|
|
20498
|
-
throw error;
|
|
20499
|
-
}
|
|
20500
|
-
}
|
|
20501
|
-
function rmdir(path) {
|
|
20502
|
-
try {
|
|
20503
|
-
rmdirSync(path);
|
|
20504
|
-
return true;
|
|
20505
|
-
} catch (error) {
|
|
20506
|
-
const code = error.code;
|
|
20507
|
-
if (code === "ENOENT" || code === "ENOTEMPTY" || code === "EEXIST")
|
|
20508
|
-
return false;
|
|
20509
|
-
throw error;
|
|
20510
|
-
}
|
|
20511
|
-
}
|
|
20512
|
-
function readlink(path) {
|
|
20513
|
-
try {
|
|
20514
|
-
return readlinkSync(path);
|
|
20515
|
-
} catch {
|
|
20516
|
-
return null;
|
|
20517
|
-
}
|
|
20518
|
-
}
|
|
20519
|
-
function unlink(path) {
|
|
20520
|
-
try {
|
|
20521
|
-
unlinkSync(path);
|
|
20522
|
-
return true;
|
|
20523
|
-
} catch (error) {
|
|
20524
|
-
if (error.code === "ENOENT")
|
|
20525
|
-
return false;
|
|
20526
|
-
throw error;
|
|
20527
|
-
}
|
|
20528
|
-
}
|
|
20529
|
-
function rename(from, to) {
|
|
20530
|
-
try {
|
|
20531
|
-
renameSync2(from, to);
|
|
20532
|
-
return true;
|
|
20533
|
-
} catch (error) {
|
|
20534
|
-
if (error.code === "ENOENT")
|
|
20535
|
-
return false;
|
|
20536
|
-
throw error;
|
|
20537
|
-
}
|
|
20538
|
-
}
|
|
20539
|
-
function chmod(path, mode) {
|
|
20540
|
-
chmodSync(path, mode);
|
|
20541
|
-
}
|
|
20542
|
-
|
|
20543
20544
|
// ../../packages/publish-harness/src/bot-transaction.ts
|
|
20544
20545
|
import { homedir as homedir2 } from "os";
|
|
20545
20546
|
import { dirname as dirname2, join as join2, resolve as resolve2 } from "path";
|
|
@@ -20839,7 +20840,7 @@ function quarantineProfileSyncData(profileDir) {
|
|
|
20839
20840
|
const syncData = join5(profileDir, "Default", "Sync Data");
|
|
20840
20841
|
if (lstat(syncData) === null)
|
|
20841
20842
|
return false;
|
|
20842
|
-
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0,
|
|
20843
|
+
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
|
|
20843
20844
|
}
|
|
20844
20845
|
function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
|
|
20845
20846
|
return {
|
|
@@ -20265,7 +20265,7 @@ function quarantineProfileSyncData(profileDir) {
|
|
|
20265
20265
|
const syncData = join5(profileDir, "Default", "Sync Data");
|
|
20266
20266
|
if (lstat(syncData) === null)
|
|
20267
20267
|
return false;
|
|
20268
|
-
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0,
|
|
20268
|
+
return rename(syncData, `${syncData}.broken-${new Date().toISOString().replace(/[:.]/g, "").slice(0, 17)}`);
|
|
20269
20269
|
}
|
|
20270
20270
|
function createKkBrowserLauncher(loadPlaywright = () => import("playwright"), ownership, leaseOptions = {}) {
|
|
20271
20271
|
return {
|