@web-auto/webauto 0.1.8 → 0.1.9
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/apps/desktop-console/dist/main/index.mjs +800 -89
- package/apps/desktop-console/dist/main/preload.mjs +3 -0
- package/apps/desktop-console/dist/renderer/index.html +9 -1
- package/apps/desktop-console/dist/renderer/index.js +784 -331
- package/apps/desktop-console/entry/ui-cli.mjs +23 -8
- package/apps/desktop-console/entry/ui-console.mjs +8 -3
- package/apps/webauto/entry/account.mjs +69 -8
- package/apps/webauto/entry/lib/account-detect.mjs +106 -25
- package/apps/webauto/entry/lib/account-store.mjs +121 -22
- package/apps/webauto/entry/lib/schedule-store.mjs +0 -12
- package/apps/webauto/entry/profilepool.mjs +45 -3
- package/apps/webauto/entry/schedule.mjs +44 -2
- package/apps/webauto/entry/weibo-unified.mjs +2 -2
- package/apps/webauto/entry/xhs-install.mjs +220 -51
- package/apps/webauto/entry/xhs-unified.mjs +33 -6
- package/bin/webauto.mjs +80 -4
- package/dist/modules/camo-runtime/src/utils/browser-service.mjs +4 -0
- package/dist/services/unified-api/server.js +5 -0
- package/dist/services/unified-api/task-state.js +2 -0
- package/modules/camo-runtime/src/autoscript/action-providers/xhs/interaction.mjs +142 -14
- package/modules/camo-runtime/src/autoscript/action-providers/xhs/search.mjs +16 -1
- package/modules/camo-runtime/src/autoscript/action-providers/xhs.mjs +104 -0
- package/modules/camo-runtime/src/autoscript/runtime.mjs +14 -4
- package/modules/camo-runtime/src/autoscript/schema.mjs +9 -0
- package/modules/camo-runtime/src/autoscript/xhs-unified-template.mjs +9 -2
- package/modules/camo-runtime/src/container/runtime-core/checkpoint.mjs +107 -1
- package/modules/camo-runtime/src/container/runtime-core/subscription.mjs +24 -2
- package/modules/camo-runtime/src/utils/browser-service.mjs +4 -0
- package/package.json +6 -3
- package/scripts/bump-version.mjs +120 -0
- package/services/unified-api/server.ts +4 -0
- package/services/unified-api/task-state.ts +5 -0
|
@@ -3,6 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
|
|
5
5
|
contextBridge.exposeInMainWorld('api', {
|
|
6
|
+
appGetVersion: () => ipcRenderer.invoke('app:getVersion'),
|
|
6
7
|
settingsGet: () => ipcRenderer.invoke('settings:get'),
|
|
7
8
|
settingsSet: (next) => ipcRenderer.invoke('settings:set', next),
|
|
8
9
|
|
|
@@ -14,6 +15,8 @@ contextBridge.exposeInMainWorld('api', {
|
|
|
14
15
|
cmdSpawn: (spec) => ipcRenderer.invoke('cmd:spawn', spec),
|
|
15
16
|
cmdKill: (runId) => ipcRenderer.invoke('cmd:kill', { runId }),
|
|
16
17
|
cmdRunJson: (spec) => ipcRenderer.invoke('cmd:runJson', spec),
|
|
18
|
+
scheduleInvoke: (spec) => ipcRenderer.invoke('schedule:invoke', spec),
|
|
19
|
+
taskRunEphemeral: (spec) => ipcRenderer.invoke('task:runEphemeral', spec),
|
|
17
20
|
|
|
18
21
|
resultsScan: (spec) => ipcRenderer.invoke('results:scan', spec),
|
|
19
22
|
fsListDir: (spec) => ipcRenderer.invoke('fs:listDir', spec),
|
|
@@ -115,6 +115,13 @@
|
|
|
115
115
|
-webkit-text-fill-color: transparent;
|
|
116
116
|
background-clip: text;
|
|
117
117
|
}
|
|
118
|
+
header .version-badge {
|
|
119
|
+
font-size: 11px;
|
|
120
|
+
color: var(--text-tertiary);
|
|
121
|
+
margin-right: var(--space-3);
|
|
122
|
+
font-family: var(--font-mono);
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
}
|
|
118
125
|
header .tabs {
|
|
119
126
|
display: flex;
|
|
120
127
|
gap: var(--space-1);
|
|
@@ -701,9 +708,10 @@
|
|
|
701
708
|
</head>
|
|
702
709
|
<body>
|
|
703
710
|
<header>
|
|
704
|
-
<div class="title">WebAuto Console</div>
|
|
711
|
+
<div class="title" id="app-title">WebAuto Console</div>
|
|
705
712
|
<nav class="tabs" id="tabs"></nav>
|
|
706
713
|
<div style="flex:1"></div>
|
|
714
|
+
<div class="version-badge" id="app-version">v-</div>
|
|
707
715
|
<div class="muted" id="status"></div>
|
|
708
716
|
</header>
|
|
709
717
|
<div id="main">
|