winclaw 2026.3.24 → 2026.3.26
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/dist/{accounts-B8tD_UsF.js → accounts-BTQf92DK.js} +2 -2
- package/dist/{accounts-C4E8dXY5.js → accounts-BnUc3Xax.js} +17 -17
- package/dist/{accounts-erBd-vFQ.js → accounts-CW736E0H.js} +2 -2
- package/dist/{active-listener-BZcdXekc.js → active-listener-CbiRgRZQ.js} +2 -2
- package/dist/{api-key-rotation-KGcAmHdg.js → api-key-rotation-DdkeF1OA.js} +2 -2
- package/dist/{audio-preflight-CBWXmKyj.js → audio-preflight-BZ9uJmob.js} +32 -32
- package/dist/{audio-transcription-runner-DpvjaNmr.js → audio-transcription-runner-BtWAHqsQ.js} +12 -12
- package/dist/{audit-membership-runtime-X047_iJb.js → audit-membership-runtime-DlojdvVw.js} +4 -4
- package/dist/build-info.json +2 -2
- package/dist/bundled/boot-md/handler.js +51 -51
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +51 -51
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-BpG7g-sI.js → channel-activity-DU1DkjqT.js} +3 -3
- package/dist/{chrome-GsaZ074n.js → chrome-FutPlvSK.js} +18 -18
- package/dist/{commands-registry-YL5nb5pJ.js → commands-registry-BbMg2ZIK.js} +4 -4
- package/dist/{deliver-CtyrAYix.js → deliver-DItDynRN.js} +21 -21
- package/dist/deliver-runtime-DDN3QzzW.js +36 -0
- package/dist/deps-send-discord.runtime-DRw9NsF7.js +26 -0
- package/dist/deps-send-imessage.runtime-DU4jI4Kw.js +25 -0
- package/dist/deps-send-signal.runtime-Ci13jaw-.js +24 -0
- package/dist/deps-send-slack.runtime-Bu1CYW8J.js +22 -0
- package/dist/deps-send-telegram.runtime-ZsXoPPfd.js +27 -0
- package/dist/deps-send-whatsapp.runtime-ezPawlRL.js +60 -0
- package/dist/{diagnostic-Bfg2dGdT.js → diagnostic-CZq1eLs0.js} +2 -2
- package/dist/{errors-CycHGjF8.js → errors-Ce16yfKp.js} +1 -1
- package/dist/{fetch-DJPm89Bh.js → fetch-DBr7AQmD.js} +5 -5
- package/dist/{fetch-guard-B21Cix4W.js → fetch-guard-ryORmHol.js} +2 -2
- package/dist/{frontmatter-Bd5ovog5.js → frontmatter-BjFkTlNB.js} +3 -3
- package/dist/{fs-safe-CP1QyD6x.js → fs-safe-DRQyU9B1.js} +4 -4
- package/dist/{github-copilot-token-BPV26Xlc.js → github-copilot-token-DAY5LNVX.js} +7 -7
- package/dist/{image-7s8Q2r40.js → image-DCMnR1Yc.js} +6 -6
- package/dist/{image-ops-B57kBDSi.js → image-ops-Bep-mYYd.js} +2 -2
- package/dist/image-runtime-DLYD4WHL.js +29 -0
- package/dist/{ir-dtH6xd5p.js → ir-k8FRbmjM.js} +8 -8
- package/dist/{legacy-names-BfbtBVxA.js → legacy-names-UE93Wd14.js} +1 -1
- package/dist/llm-slug-generator.js +51 -51
- package/dist/{logger-CfMxj-ah.js → logger-Bs5o_Q4e.js} +7 -7
- package/dist/{login-QMWV2OqT.js → login-CJ1_gytE.js} +5 -5
- package/dist/{login-qr-ok3zZ6XC.js → login-qr-DJaG2Lqy.js} +10 -10
- package/dist/{manager-B3PYd-v7.js → manager-CYQsMwKo.js} +13 -13
- package/dist/manager-runtime-DsWZUOVp.js +18 -0
- package/dist/{model-selection-mj3P0Z9o.js → model-selection-BeUT4Ib0.js} +43 -43
- package/dist/{outbound-BfBf06bV.js → outbound-CS_E7JsA.js} +6 -6
- package/dist/{outbound-attachment-CrbKa-nt.js → outbound-attachment-CioeSBhJ.js} +2 -2
- package/dist/{path-alias-guards-DQAZEPdU.js → path-alias-guards-SRq1ZupA.js} +1 -1
- package/dist/{paths-OzYXhW9R.js → paths-7QwxBDEW.js} +5 -5
- package/dist/{paths-ClcxBVEC.js → paths-BijaP26S.js} +4 -4
- package/dist/{pi-embedded-CPqoXbPh.js → pi-embedded-eZE-R8OC.js} +158 -158
- package/dist/{pi-embedded-helpers-BMGRFCuV.js → pi-embedded-helpers-Cf2DA0K1.js} +52 -52
- package/dist/{pi-model-discovery-CG08IlF3.js → pi-model-discovery-C9p6rGzB.js} +7 -7
- package/dist/pi-model-discovery-runtime-Cot3cjXF.js +11 -0
- package/dist/{pi-tools.before-tool-call.runtime-DU-IvXJl.js → pi-tools.before-tool-call.runtime-BVsl9-u8.js} +9 -9
- package/dist/plugin-sdk/bluebubbles.js +2 -2
- package/dist/plugin-sdk/compat.js +50 -50
- package/dist/plugin-sdk/feishu.js +2 -2
- package/dist/plugin-sdk/googlechat.js +2 -2
- package/dist/plugin-sdk/irc.js +2 -2
- package/dist/plugin-sdk/matrix.js +2 -2
- package/dist/plugin-sdk/msteams.js +2 -2
- package/dist/plugin-sdk/nextcloud-talk.js +2 -2
- package/dist/plugin-sdk/tlon.js +2 -2
- package/dist/plugin-sdk/zalo.js +2 -2
- package/dist/{plugins-7rATz3L_.js → plugins-D9VoSB-W.js} +11 -11
- package/dist/{proxy-env-D0cmgqA_.js → proxy-env-Dto4ksE8.js} +1 -1
- package/dist/{proxy-fetch-CIudqMFC.js → proxy-fetch-DZKnzzTS.js} +1 -1
- package/dist/{pw-ai-D6e8FGb0.js → pw-ai--FqpFlG0.js} +14 -14
- package/dist/{qmd-manager-D9moDl8B.js → qmd-manager-Dd_1kUbH.js} +10 -10
- package/dist/{query-expansion-D304Vb51.js → query-expansion-Bzsj5sKu.js} +6 -6
- package/dist/{plugin-sdk/redact-CIb5VTTO.js → redact-BEEwIzcp.js} +1 -1
- package/dist/{run-with-concurrency-pydQaS3l.js → run-with-concurrency-8eLquFY-.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-0z5YUSgI.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-B3AVy3B0.js +22 -0
- package/dist/{send-BBOtyWyN.js → send-B-QBYgFa.js} +8 -8
- package/dist/{send-CM2xsD1-.js → send-B5ZIGVlK.js} +6 -6
- package/dist/{send-DAhNO02Q.js → send-Bbwp4X9m.js} +5 -5
- package/dist/{send-B-Jhi_EX.js → send-CCkwCAg9.js} +7 -7
- package/dist/{send-DyitDdbm.js → send-CfUQwWnU.js} +26 -26
- package/dist/{session-C7Yst9o2.js → session-Cmf0uFGH.js} +8 -8
- package/dist/{skill-commands-C2yab7DE.js → skill-commands-DjcGi-RV.js} +9 -9
- package/dist/{skills-RKUR-FBW.js → skills-CdXLP8dx.js} +22 -22
- package/dist/slash-commands.runtime-DVf_cEl4.js +16 -0
- package/dist/slash-dispatch.runtime-Cp2UjNPG.js +56 -0
- package/dist/slash-skill-commands.runtime-k8EkCSMb.js +20 -0
- package/dist/{store-TUglTWiC.js → store-OXyhan5j.js} +2 -2
- package/dist/subagent-registry-runtime-BYkjntIJ.js +56 -0
- package/dist/{subsystem-n_2yxlMq.js → subsystem-BT0ZqCjC.js} +14 -14
- package/dist/{tables-DUSin78w.js → tables-DplvM1Fu.js} +1 -1
- package/dist/{plugin-sdk/target-errors-Cr0q4o7K.js → target-errors-B3bbuu4h.js} +2 -2
- package/dist/{thinking-leUv0tOz.js → thinking-C-uklGto.js} +7 -7
- package/dist/{tokens-DKL-qP0N.js → tokens-W2VLMOeA.js} +1 -1
- package/dist/{tool-images-vmtyKntM.js → tool-images-C2Utrdhg.js} +2 -2
- package/dist/{web-BPiSo--I.js → web-CDdR_-jl.js} +55 -55
- package/dist/{whatsapp-actions-B49yQUlb.js → whatsapp-actions-n1IDnykb.js} +21 -21
- package/dist/{workspace-CJZ00IJ6.js → workspace-BZw3YW8c.js} +20 -20
- package/package.json +1 -1
- package/dist/deliver-runtime-Bvh4te8E.js +0 -36
- package/dist/deps-send-discord.runtime-eIn_hEY1.js +0 -26
- package/dist/deps-send-imessage.runtime-C6reYzaj.js +0 -25
- package/dist/deps-send-signal.runtime-CFIqD1tD.js +0 -24
- package/dist/deps-send-slack.runtime-BuapIYCy.js +0 -22
- package/dist/deps-send-telegram.runtime-D2FuA1HP.js +0 -27
- package/dist/deps-send-whatsapp.runtime-CeFobiyN.js +0 -60
- package/dist/image-runtime-QNP_uABR.js +0 -29
- package/dist/manager-runtime-bFxlvIO-.js +0 -18
- package/dist/pi-model-discovery-runtime-D_B9QLi1.js +0 -11
- package/dist/plugin-sdk/accounts-B71rIfIG.js +0 -35
- package/dist/plugin-sdk/accounts-Bh_CxVlh.js +0 -46
- package/dist/plugin-sdk/accounts-BoD7489q.js +0 -288
- package/dist/plugin-sdk/active-listener-6CPAmAh-.js +0 -50
- package/dist/plugin-sdk/api-key-rotation-DEDhmJAk.js +0 -181
- package/dist/plugin-sdk/audio-preflight-CMPZ9BXN.js +0 -69
- package/dist/plugin-sdk/audio-transcription-runner-CdADoJed.js +0 -2176
- package/dist/plugin-sdk/audit-membership-runtime-CxP2fdgS.js +0 -58
- package/dist/plugin-sdk/channel-activity-9ivqqvRB.js +0 -94
- package/dist/plugin-sdk/channel-web-kABzYw2i.js +0 -2256
- package/dist/plugin-sdk/chrome-B1yeIHRg.js +0 -2415
- package/dist/plugin-sdk/commands-registry-D-wyzYid.js +0 -1125
- package/dist/plugin-sdk/config-CmS6HzGU.js +0 -17959
- package/dist/plugin-sdk/deliver-Cy287pZ5.js +0 -1719
- package/dist/plugin-sdk/deliver-runtime-BH3fUFW1.js +0 -32
- package/dist/plugin-sdk/deps-send-discord.runtime-CLboFQJz.js +0 -23
- package/dist/plugin-sdk/deps-send-imessage.runtime-BVlGKP96.js +0 -22
- package/dist/plugin-sdk/deps-send-signal.runtime-0640YmBr.js +0 -21
- package/dist/plugin-sdk/deps-send-slack.runtime-BqbFKjcg.js +0 -19
- package/dist/plugin-sdk/deps-send-telegram.runtime-1a2RXcA2.js +0 -24
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BHndscAh.js +0 -57
- package/dist/plugin-sdk/diagnostic-DGt5TnqW.js +0 -319
- package/dist/plugin-sdk/errors-D7zDdduc.js +0 -54
- package/dist/plugin-sdk/fetch-guard-BsatETDz.js +0 -156
- package/dist/plugin-sdk/fs-safe-ynDN1AOr.js +0 -352
- package/dist/plugin-sdk/image-6No3eiOM.js +0 -2314
- package/dist/plugin-sdk/image-ops-CmFoHyKE.js +0 -584
- package/dist/plugin-sdk/image-runtime-D57a2W4s.js +0 -25
- package/dist/plugin-sdk/ir-CX1ZjDTn.js +0 -1296
- package/dist/plugin-sdk/local-roots-DnE8988Y.js +0 -186
- package/dist/plugin-sdk/logger-cN8CgKqt.js +0 -1163
- package/dist/plugin-sdk/login-hk6_2GSM.js +0 -57
- package/dist/plugin-sdk/login-qr-UaVS_Rce.js +0 -320
- package/dist/plugin-sdk/manager-CBP2ZQ5W.js +0 -3929
- package/dist/plugin-sdk/manager-runtime-3rKbDrJp.js +0 -15
- package/dist/plugin-sdk/outbound-B0Ab6CJM.js +0 -212
- package/dist/plugin-sdk/outbound-attachment-CktA053B.js +0 -19
- package/dist/plugin-sdk/path-alias-guards-WXu8eYZ3.js +0 -43
- package/dist/plugin-sdk/paths-Brta7ydd.js +0 -166
- package/dist/plugin-sdk/pi-embedded-helpers-BfbOXbe6.js +0 -9627
- package/dist/plugin-sdk/pi-model-discovery-ruarR-_j.js +0 -134
- package/dist/plugin-sdk/pi-model-discovery-runtime-26px0QfL.js +0 -8
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-VVLpfXqQ.js +0 -354
- package/dist/plugin-sdk/plugins-C995vsQz.js +0 -864
- package/dist/plugin-sdk/proxy-fetch-iSQrNgP-.js +0 -38
- package/dist/plugin-sdk/pw-ai-BJXHSS3q.js +0 -1938
- package/dist/plugin-sdk/qmd-manager-A7m15SeJ.js +0 -1448
- package/dist/plugin-sdk/query-expansion-DngcFbkC.js +0 -1011
- package/dist/plugin-sdk/reply-Cq6NqOE1.js +0 -100211
- package/dist/plugin-sdk/resolve-outbound-target-CQ6hRY-h.js +0 -40
- package/dist/plugin-sdk/run-with-concurrency-BlfAoChN.js +0 -1994
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-YsrzSsFL.js +0 -10
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-DL6Ses5K.js +0 -19
- package/dist/plugin-sdk/send-BEy8EUzH.js +0 -414
- package/dist/plugin-sdk/send-CWP6COto.js +0 -3135
- package/dist/plugin-sdk/send-DQTgt3Cu.js +0 -540
- package/dist/plugin-sdk/send-DzpV-k17.js +0 -2587
- package/dist/plugin-sdk/send-HuIksBS6.js +0 -503
- package/dist/plugin-sdk/session-Cc3Y4mXL.js +0 -169
- package/dist/plugin-sdk/skill-commands-p8Zwjnwy.js +0 -353
- package/dist/plugin-sdk/skills-k8XpacZa.js +0 -1428
- package/dist/plugin-sdk/slash-commands.runtime-ynnr6oUR.js +0 -13
- package/dist/plugin-sdk/slash-dispatch.runtime-Cw2wTfnn.js +0 -52
- package/dist/plugin-sdk/slash-skill-commands.runtime-eAk1jhVy.js +0 -16
- package/dist/plugin-sdk/ssrf-DZSsYJgJ.js +0 -202
- package/dist/plugin-sdk/store-Cn0oLCP4.js +0 -81
- package/dist/plugin-sdk/subagent-registry-runtime-0Y9lMsGe.js +0 -52
- package/dist/plugin-sdk/tables-KWxXnbkq.js +0 -55
- package/dist/plugin-sdk/thinking-CfA6xbI_.js +0 -1206
- package/dist/plugin-sdk/tokens-B-D1YRTV.js +0 -52
- package/dist/plugin-sdk/tool-images-CVV7LNFW.js +0 -274
- package/dist/plugin-sdk/web-CyZHlJH6.js +0 -56
- package/dist/plugin-sdk/whatsapp-actions-CLNhBLJz.js +0 -80
- package/dist/redact-Ce_WCs11.js +0 -319
- package/dist/runtime-whatsapp-login.runtime-CLVMSLDc.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-D2zoTFqz.js +0 -22
- package/dist/slash-commands.runtime-CeWXn-Fp.js +0 -16
- package/dist/slash-dispatch.runtime-BLQZdvZW.js +0 -56
- package/dist/slash-skill-commands.runtime-Duvnf1al.js +0 -20
- package/dist/subagent-registry-runtime-BfYm3d-n.js +0 -56
- package/dist/target-errors-CRa2FpPW.js +0 -195
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-BZw3YW8c.js";
|
|
2
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-BnUc3Xax.js";
|
|
3
3
|
|
|
4
4
|
//#region src/imessage/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("imessage");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { o as resolveOAuthDir } from "./paths-
|
|
2
|
-
import { i as defaultRuntime, l as info, m as success, y as getChildLogger } from "./subsystem-
|
|
3
|
-
import { G as normalizeAccountId, K as normalizeOptionalAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
4
|
-
import { m as jidToE164, y as resolveUserPath } from "./logger-
|
|
5
|
-
import { lr as formatCliCommand } from "./model-selection-
|
|
1
|
+
import { o as resolveOAuthDir } from "./paths-7QwxBDEW.js";
|
|
2
|
+
import { i as defaultRuntime, l as info, m as success, y as getChildLogger } from "./subsystem-BT0ZqCjC.js";
|
|
3
|
+
import { G as normalizeAccountId, K as normalizeOptionalAccountId, W as DEFAULT_ACCOUNT_ID } from "./workspace-BZw3YW8c.js";
|
|
4
|
+
import { m as jidToE164, y as resolveUserPath } from "./logger-Bs5o_Q4e.js";
|
|
5
|
+
import { lr as formatCliCommand } from "./model-selection-BeUT4Ib0.js";
|
|
6
6
|
import fs from "node:fs/promises";
|
|
7
7
|
import path from "node:path";
|
|
8
|
-
import
|
|
8
|
+
import fsSync from "node:fs";
|
|
9
9
|
|
|
10
10
|
//#region src/channels/plugins/account-helpers.ts
|
|
11
11
|
function createAccountListHelpers(channelKey) {
|
|
@@ -63,7 +63,7 @@ function resolveWebCredsBackupPath(authDir) {
|
|
|
63
63
|
}
|
|
64
64
|
function hasWebCredsSync(authDir) {
|
|
65
65
|
try {
|
|
66
|
-
const stats =
|
|
66
|
+
const stats = fsSync.statSync(resolveWebCredsPath(authDir));
|
|
67
67
|
return stats.isFile() && stats.size > 1;
|
|
68
68
|
} catch {
|
|
69
69
|
return false;
|
|
@@ -71,10 +71,10 @@ function hasWebCredsSync(authDir) {
|
|
|
71
71
|
}
|
|
72
72
|
function readCredsJsonRaw(filePath) {
|
|
73
73
|
try {
|
|
74
|
-
if (!
|
|
75
|
-
const stats =
|
|
74
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
75
|
+
const stats = fsSync.statSync(filePath);
|
|
76
76
|
if (!stats.isFile() || stats.size <= 1) return null;
|
|
77
|
-
return
|
|
77
|
+
return fsSync.readFileSync(filePath, "utf-8");
|
|
78
78
|
} catch {
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
@@ -92,9 +92,9 @@ function maybeRestoreCredsFromBackup(authDir) {
|
|
|
92
92
|
const backupRaw = readCredsJsonRaw(backupPath);
|
|
93
93
|
if (!backupRaw) return;
|
|
94
94
|
JSON.parse(backupRaw);
|
|
95
|
-
|
|
95
|
+
fsSync.copyFileSync(backupPath, credsPath);
|
|
96
96
|
try {
|
|
97
|
-
|
|
97
|
+
fsSync.chmodSync(credsPath, 384);
|
|
98
98
|
} catch {}
|
|
99
99
|
logger.warn({ credsPath }, "restored corrupted WhatsApp creds.json from backup");
|
|
100
100
|
} catch {}
|
|
@@ -150,11 +150,11 @@ async function logoutWeb(params) {
|
|
|
150
150
|
function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
151
151
|
try {
|
|
152
152
|
const credsPath = resolveWebCredsPath(resolveUserPath(authDir));
|
|
153
|
-
if (!
|
|
153
|
+
if (!fsSync.existsSync(credsPath)) return {
|
|
154
154
|
e164: null,
|
|
155
155
|
jid: null
|
|
156
156
|
};
|
|
157
|
-
const raw =
|
|
157
|
+
const raw = fsSync.readFileSync(credsPath, "utf-8");
|
|
158
158
|
const jid = JSON.parse(raw)?.me?.id ?? null;
|
|
159
159
|
return {
|
|
160
160
|
e164: jid ? jidToE164(jid, { authDir }) : null,
|
|
@@ -173,7 +173,7 @@ function readWebSelfId(authDir = resolveDefaultWebAuthDir()) {
|
|
|
173
173
|
*/
|
|
174
174
|
function getWebAuthAgeMs(authDir = resolveDefaultWebAuthDir()) {
|
|
175
175
|
try {
|
|
176
|
-
const stats =
|
|
176
|
+
const stats = fsSync.statSync(resolveWebCredsPath(resolveUserPath(authDir)));
|
|
177
177
|
return Date.now() - stats.mtimeMs;
|
|
178
178
|
} catch {
|
|
179
179
|
return null;
|
|
@@ -205,7 +205,7 @@ function listWhatsAppAuthDirs(cfg) {
|
|
|
205
205
|
accountId
|
|
206
206
|
}).authDir);
|
|
207
207
|
try {
|
|
208
|
-
const entries =
|
|
208
|
+
const entries = fsSync.readdirSync(whatsappDir, { withFileTypes: true });
|
|
209
209
|
for (const entry of entries) {
|
|
210
210
|
if (!entry.isDirectory()) continue;
|
|
211
211
|
authDirs.add(path.join(whatsappDir, entry.name));
|
|
@@ -227,7 +227,7 @@ function resolveLegacyAuthDir() {
|
|
|
227
227
|
}
|
|
228
228
|
function legacyAuthExists(authDir) {
|
|
229
229
|
try {
|
|
230
|
-
return
|
|
230
|
+
return fsSync.existsSync(path.join(authDir, "creds.json"));
|
|
231
231
|
} catch {
|
|
232
232
|
return false;
|
|
233
233
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as normalizeAccountId } from "./workspace-
|
|
2
|
-
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-
|
|
1
|
+
import { G as normalizeAccountId } from "./workspace-BZw3YW8c.js";
|
|
2
|
+
import { g as createAccountListHelpers, h as resolveAccountEntry } from "./accounts-BnUc3Xax.js";
|
|
3
3
|
|
|
4
4
|
//#region src/signal/accounts.ts
|
|
5
5
|
const { listAccountIds, resolveDefaultAccountId } = createAccountListHelpers("signal");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as DEFAULT_ACCOUNT_ID } from "./workspace-
|
|
2
|
-
import { lr as formatCliCommand } from "./model-selection-
|
|
1
|
+
import { W as DEFAULT_ACCOUNT_ID } from "./workspace-BZw3YW8c.js";
|
|
2
|
+
import { lr as formatCliCommand } from "./model-selection-BeUT4Ib0.js";
|
|
3
3
|
import crypto from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region src/logging/redact-identifier.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as normalizeProviderId } from "./model-selection-
|
|
2
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { c as normalizeProviderId } from "./model-selection-BeUT4Ib0.js";
|
|
2
|
+
import { r as formatErrorMessage } from "./errors-Ce16yfKp.js";
|
|
3
3
|
|
|
4
4
|
//#region src/infra/gemini-auth.ts
|
|
5
5
|
/**
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import "./run-with-concurrency-
|
|
2
|
-
import "./paths-
|
|
3
|
-
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-
|
|
4
|
-
import "./workspace-
|
|
5
|
-
import "./logger-
|
|
6
|
-
import "./model-selection-
|
|
7
|
-
import "./github-copilot-token-
|
|
8
|
-
import "./legacy-names-
|
|
9
|
-
import "./thinking-
|
|
10
|
-
import "./plugins-
|
|
11
|
-
import "./accounts-
|
|
12
|
-
import "./accounts-
|
|
13
|
-
import "./image-ops-
|
|
14
|
-
import "./pi-embedded-helpers-
|
|
15
|
-
import "./chrome-
|
|
16
|
-
import "./frontmatter-
|
|
17
|
-
import "./skills-
|
|
18
|
-
import "./path-alias-guards-
|
|
19
|
-
import "./redact-
|
|
20
|
-
import "./errors-
|
|
21
|
-
import "./fs-safe-
|
|
22
|
-
import "./proxy-env-
|
|
23
|
-
import "./store-
|
|
24
|
-
import "./accounts-
|
|
25
|
-
import "./paths-
|
|
26
|
-
import "./tool-images-
|
|
27
|
-
import "./image-
|
|
28
|
-
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-
|
|
29
|
-
import "./fetch-
|
|
30
|
-
import "./fetch-guard-
|
|
31
|
-
import "./api-key-rotation-
|
|
32
|
-
import "./proxy-fetch-
|
|
1
|
+
import "./run-with-concurrency-8eLquFY-.js";
|
|
2
|
+
import "./paths-7QwxBDEW.js";
|
|
3
|
+
import { p as shouldLogVerbose, u as logVerbose } from "./subsystem-BT0ZqCjC.js";
|
|
4
|
+
import "./workspace-BZw3YW8c.js";
|
|
5
|
+
import "./logger-Bs5o_Q4e.js";
|
|
6
|
+
import "./model-selection-BeUT4Ib0.js";
|
|
7
|
+
import "./github-copilot-token-DAY5LNVX.js";
|
|
8
|
+
import "./legacy-names-UE93Wd14.js";
|
|
9
|
+
import "./thinking-C-uklGto.js";
|
|
10
|
+
import "./plugins-D9VoSB-W.js";
|
|
11
|
+
import "./accounts-BnUc3Xax.js";
|
|
12
|
+
import "./accounts-CW736E0H.js";
|
|
13
|
+
import "./image-ops-Bep-mYYd.js";
|
|
14
|
+
import "./pi-embedded-helpers-Cf2DA0K1.js";
|
|
15
|
+
import "./chrome-FutPlvSK.js";
|
|
16
|
+
import "./frontmatter-BjFkTlNB.js";
|
|
17
|
+
import "./skills-CdXLP8dx.js";
|
|
18
|
+
import "./path-alias-guards-SRq1ZupA.js";
|
|
19
|
+
import "./redact-BEEwIzcp.js";
|
|
20
|
+
import "./errors-Ce16yfKp.js";
|
|
21
|
+
import "./fs-safe-DRQyU9B1.js";
|
|
22
|
+
import "./proxy-env-Dto4ksE8.js";
|
|
23
|
+
import "./store-OXyhan5j.js";
|
|
24
|
+
import "./accounts-BTQf92DK.js";
|
|
25
|
+
import "./paths-BijaP26S.js";
|
|
26
|
+
import "./tool-images-C2Utrdhg.js";
|
|
27
|
+
import "./image-DCMnR1Yc.js";
|
|
28
|
+
import { g as isAudioAttachment, i as normalizeMediaAttachments, o as resolveMediaAttachmentLocalRoots, t as runAudioTranscription } from "./audio-transcription-runner-BtWAHqsQ.js";
|
|
29
|
+
import "./fetch-DBr7AQmD.js";
|
|
30
|
+
import "./fetch-guard-ryORmHol.js";
|
|
31
|
+
import "./api-key-rotation-DdkeF1OA.js";
|
|
32
|
+
import "./proxy-fetch-DZKnzzTS.js";
|
|
33
33
|
|
|
34
34
|
//#region src/media-understanding/audio-preflight.ts
|
|
35
35
|
/**
|
package/dist/{audio-transcription-runner-DpvjaNmr.js → audio-transcription-runner-BtWAHqsQ.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-
|
|
2
|
-
import { p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, w as resolvePreferredWinClawTmpDir } from "./subsystem-
|
|
3
|
-
import { _ as runExec } from "./workspace-
|
|
4
|
-
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveWinClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-
|
|
5
|
-
import { _ as normalizeChatType } from "./plugins-
|
|
6
|
-
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-
|
|
7
|
-
import { t as describeImageWithModel, w as ensureWinClawModelsJson } from "./image-
|
|
8
|
-
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-
|
|
1
|
+
import { g as resolveAgentModelPrimaryValue, h as resolveAgentModelFallbackValues } from "./run-with-concurrency-8eLquFY-.js";
|
|
2
|
+
import { p as shouldLogVerbose, t as createSubsystemLogger, u as logVerbose, w as resolvePreferredWinClawTmpDir } from "./subsystem-BT0ZqCjC.js";
|
|
3
|
+
import { _ as runExec } from "./workspace-BZw3YW8c.js";
|
|
4
|
+
import { M as resolveApiKeyForProvider, X as loadConfig, at as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, c as normalizeProviderId, ct as resolveIMessageAttachmentRoots, g as normalizeGoogleModelId, ir as resolveWinClawAgentDir, j as requireApiKey, ot as isInboundPathAllowed, st as mergeInboundPathRoots } from "./model-selection-BeUT4Ib0.js";
|
|
5
|
+
import { _ as normalizeChatType } from "./plugins-D9VoSB-W.js";
|
|
6
|
+
import { E as kindFromMime, S as getFileExtension, b as detectMime, w as isAudioFileName } from "./image-ops-Bep-mYYd.js";
|
|
7
|
+
import { t as describeImageWithModel, w as ensureWinClawModelsJson } from "./image-DCMnR1Yc.js";
|
|
8
|
+
import { a as getDefaultMediaLocalRoots, n as fetchRemoteMedia, t as MediaFetchError } from "./fetch-DBr7AQmD.js";
|
|
9
9
|
import { n as fetchWithTimeout } from "./fetch-timeout-Bghlv-lk.js";
|
|
10
|
-
import { t as fetchWithSsrFGuard } from "./fetch-guard-
|
|
11
|
-
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-
|
|
12
|
-
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-
|
|
10
|
+
import { t as fetchWithSsrFGuard } from "./fetch-guard-ryORmHol.js";
|
|
11
|
+
import { n as executeWithApiKeyRotation, r as parseGeminiAuth, t as collectProviderApiKeysForExecution } from "./api-key-rotation-DdkeF1OA.js";
|
|
12
|
+
import { n as resolveProxyFetchFromEnv } from "./proxy-fetch-DZKnzzTS.js";
|
|
13
13
|
import fs from "node:fs/promises";
|
|
14
14
|
import os from "node:os";
|
|
15
15
|
import path from "node:path";
|
|
@@ -22,7 +22,7 @@ import crypto from "node:crypto";
|
|
|
22
22
|
const log = createSubsystemLogger("model-catalog");
|
|
23
23
|
let modelCatalogPromise = null;
|
|
24
24
|
let hasLoggedModelCatalogError = false;
|
|
25
|
-
const defaultImportPiSdk = () => import("./pi-model-discovery-
|
|
25
|
+
const defaultImportPiSdk = () => import("./pi-model-discovery-C9p6rGzB.js").then((n) => n.r);
|
|
26
26
|
let importPiSdk = defaultImportPiSdk;
|
|
27
27
|
const CODEX_PROVIDER = "openai-codex";
|
|
28
28
|
const OPENAI_CODEX_GPT53_MODEL_ID = "gpt-5.3-codex";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./subsystem-
|
|
3
|
-
import { f as isRecord } from "./logger-
|
|
1
|
+
import "./paths-7QwxBDEW.js";
|
|
2
|
+
import "./subsystem-BT0ZqCjC.js";
|
|
3
|
+
import { f as isRecord } from "./logger-Bs5o_Q4e.js";
|
|
4
4
|
import { n as fetchWithTimeout } from "./fetch-timeout-Bghlv-lk.js";
|
|
5
|
-
import { t as makeProxyFetch } from "./proxy-fetch-
|
|
5
|
+
import { t as makeProxyFetch } from "./proxy-fetch-DZKnzzTS.js";
|
|
6
6
|
import "./proxy-DULbDMaI.js";
|
|
7
7
|
|
|
8
8
|
//#region src/telegram/audit-membership-runtime.ts
|
package/dist/build-info.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir, r as listAgentIds } from "../../run-with-concurrency-
|
|
2
|
-
import "../../paths-
|
|
3
|
-
import { i as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
8
|
-
import { a as isGatewayStartupEvent } from "../../legacy-names-
|
|
9
|
-
import "../../thinking-
|
|
10
|
-
import { n as SILENT_REPLY_TOKEN } from "../../tokens-
|
|
11
|
-
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-
|
|
12
|
-
import "../../plugins-
|
|
13
|
-
import "../../accounts-
|
|
14
|
-
import "../../send-
|
|
15
|
-
import "../../send-
|
|
16
|
-
import "../../deliver-
|
|
17
|
-
import "../../diagnostic-
|
|
18
|
-
import "../../accounts-
|
|
19
|
-
import "../../image-ops-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../pi-model-discovery-
|
|
22
|
-
import { Dt as resolveMainSessionKey, J as updateSessionStore, Tt as resolveAgentMainSessionKey, W as loadSessionStore } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
24
|
-
import "../../frontmatter-
|
|
25
|
-
import "../../skills-
|
|
26
|
-
import "../../path-alias-guards-
|
|
27
|
-
import "../../redact-
|
|
28
|
-
import "../../errors-
|
|
29
|
-
import "../../fs-safe-
|
|
30
|
-
import "../../proxy-env-
|
|
31
|
-
import "../../store-
|
|
32
|
-
import "../../accounts-
|
|
33
|
-
import { s as resolveStorePath } from "../../paths-
|
|
34
|
-
import "../../tool-images-
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
37
|
-
import "../../fetch-
|
|
38
|
-
import "../../fetch-guard-
|
|
39
|
-
import "../../api-key-rotation-
|
|
40
|
-
import "../../proxy-fetch-
|
|
41
|
-
import "../../ir-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir, r as listAgentIds } from "../../run-with-concurrency-8eLquFY-.js";
|
|
2
|
+
import "../../paths-7QwxBDEW.js";
|
|
3
|
+
import { i as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-BT0ZqCjC.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey } from "../../workspace-BZw3YW8c.js";
|
|
5
|
+
import "../../logger-Bs5o_Q4e.js";
|
|
6
|
+
import "../../model-selection-BeUT4Ib0.js";
|
|
7
|
+
import "../../github-copilot-token-DAY5LNVX.js";
|
|
8
|
+
import { a as isGatewayStartupEvent } from "../../legacy-names-UE93Wd14.js";
|
|
9
|
+
import "../../thinking-C-uklGto.js";
|
|
10
|
+
import { n as SILENT_REPLY_TOKEN } from "../../tokens-W2VLMOeA.js";
|
|
11
|
+
import { a as agentCommand, o as createDefaultDeps } from "../../pi-embedded-eZE-R8OC.js";
|
|
12
|
+
import "../../plugins-D9VoSB-W.js";
|
|
13
|
+
import "../../accounts-BnUc3Xax.js";
|
|
14
|
+
import "../../send-B5ZIGVlK.js";
|
|
15
|
+
import "../../send-B-QBYgFa.js";
|
|
16
|
+
import "../../deliver-DItDynRN.js";
|
|
17
|
+
import "../../diagnostic-CZq1eLs0.js";
|
|
18
|
+
import "../../accounts-CW736E0H.js";
|
|
19
|
+
import "../../image-ops-Bep-mYYd.js";
|
|
20
|
+
import "../../send-CfUQwWnU.js";
|
|
21
|
+
import "../../pi-model-discovery-C9p6rGzB.js";
|
|
22
|
+
import { Dt as resolveMainSessionKey, J as updateSessionStore, Tt as resolveAgentMainSessionKey, W as loadSessionStore } from "../../pi-embedded-helpers-Cf2DA0K1.js";
|
|
23
|
+
import "../../chrome-FutPlvSK.js";
|
|
24
|
+
import "../../frontmatter-BjFkTlNB.js";
|
|
25
|
+
import "../../skills-CdXLP8dx.js";
|
|
26
|
+
import "../../path-alias-guards-SRq1ZupA.js";
|
|
27
|
+
import "../../redact-BEEwIzcp.js";
|
|
28
|
+
import "../../errors-Ce16yfKp.js";
|
|
29
|
+
import "../../fs-safe-DRQyU9B1.js";
|
|
30
|
+
import "../../proxy-env-Dto4ksE8.js";
|
|
31
|
+
import "../../store-OXyhan5j.js";
|
|
32
|
+
import "../../accounts-BTQf92DK.js";
|
|
33
|
+
import { s as resolveStorePath } from "../../paths-BijaP26S.js";
|
|
34
|
+
import "../../tool-images-C2Utrdhg.js";
|
|
35
|
+
import "../../image-DCMnR1Yc.js";
|
|
36
|
+
import "../../audio-transcription-runner-BtWAHqsQ.js";
|
|
37
|
+
import "../../fetch-DBr7AQmD.js";
|
|
38
|
+
import "../../fetch-guard-ryORmHol.js";
|
|
39
|
+
import "../../api-key-rotation-DdkeF1OA.js";
|
|
40
|
+
import "../../proxy-fetch-DZKnzzTS.js";
|
|
41
|
+
import "../../ir-k8FRbmjM.js";
|
|
42
42
|
import "../../render-95l30zcf.js";
|
|
43
|
-
import "../../target-errors-
|
|
44
|
-
import "../../commands-registry-
|
|
45
|
-
import "../../skill-commands-
|
|
43
|
+
import "../../target-errors-B3bbuu4h.js";
|
|
44
|
+
import "../../commands-registry-BbMg2ZIK.js";
|
|
45
|
+
import "../../skill-commands-DjcGi-RV.js";
|
|
46
46
|
import "../../fetch-NSdhMhHl.js";
|
|
47
|
-
import "../../channel-activity-
|
|
48
|
-
import "../../tables-
|
|
49
|
-
import "../../send-
|
|
50
|
-
import "../../outbound-attachment-
|
|
51
|
-
import "../../send-
|
|
47
|
+
import "../../channel-activity-DU1DkjqT.js";
|
|
48
|
+
import "../../tables-DplvM1Fu.js";
|
|
49
|
+
import "../../send-Bbwp4X9m.js";
|
|
50
|
+
import "../../outbound-attachment-CioeSBhJ.js";
|
|
51
|
+
import "../../send-CCkwCAg9.js";
|
|
52
52
|
import "../../proxy-DULbDMaI.js";
|
|
53
|
-
import "../../manager-
|
|
54
|
-
import "../../query-expansion-
|
|
53
|
+
import "../../manager-CYQsMwKo.js";
|
|
54
|
+
import "../../query-expansion-Bzsj5sKu.js";
|
|
55
55
|
import fs from "node:fs/promises";
|
|
56
56
|
import path from "node:path";
|
|
57
57
|
import crypto from "node:crypto";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
3
|
-
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-
|
|
4
|
-
import "../../logger-
|
|
5
|
-
import { i as isAgentBootstrapEvent } from "../../legacy-names-
|
|
6
|
-
import "../../frontmatter-
|
|
1
|
+
import "../../paths-7QwxBDEW.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-BT0ZqCjC.js";
|
|
3
|
+
import { d as loadExtraBootstrapFilesWithDiagnostics, u as filterBootstrapFilesForSession } from "../../workspace-BZw3YW8c.js";
|
|
4
|
+
import "../../logger-Bs5o_Q4e.js";
|
|
5
|
+
import { i as isAgentBootstrapEvent } from "../../legacy-names-UE93Wd14.js";
|
|
6
|
+
import "../../frontmatter-BjFkTlNB.js";
|
|
7
7
|
import { t as resolveHookConfig } from "../../config-By1mFioa.js";
|
|
8
8
|
|
|
9
9
|
//#region src/hooks/bundled/bootstrap-extra-files/handler.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as resolveStateDir } from "../../paths-
|
|
2
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
1
|
+
import { c as resolveStateDir } from "../../paths-7QwxBDEW.js";
|
|
2
|
+
import { t as createSubsystemLogger } from "../../subsystem-BT0ZqCjC.js";
|
|
3
3
|
import fs from "node:fs/promises";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
import path from "node:path";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { c as resolveAgentWorkspaceDir } from "../../run-with-concurrency-
|
|
2
|
-
import { c as resolveStateDir } from "../../paths-
|
|
3
|
-
import { t as createSubsystemLogger } from "../../subsystem-
|
|
4
|
-
import { B as resolveAgentIdFromSessionKey } from "../../workspace-
|
|
5
|
-
import "../../logger-
|
|
6
|
-
import "../../model-selection-
|
|
7
|
-
import "../../github-copilot-token-
|
|
8
|
-
import "../../legacy-names-
|
|
9
|
-
import "../../thinking-
|
|
10
|
-
import "../../tokens-
|
|
11
|
-
import "../../pi-embedded-
|
|
12
|
-
import "../../plugins-
|
|
13
|
-
import "../../accounts-
|
|
14
|
-
import "../../send-
|
|
15
|
-
import "../../send-
|
|
16
|
-
import "../../deliver-
|
|
17
|
-
import "../../diagnostic-
|
|
18
|
-
import "../../accounts-
|
|
19
|
-
import "../../image-ops-
|
|
20
|
-
import "../../send-
|
|
21
|
-
import "../../pi-model-discovery-
|
|
22
|
-
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-
|
|
23
|
-
import "../../chrome-
|
|
24
|
-
import "../../frontmatter-
|
|
25
|
-
import "../../skills-
|
|
26
|
-
import "../../path-alias-guards-
|
|
27
|
-
import "../../redact-
|
|
28
|
-
import "../../errors-
|
|
29
|
-
import { c as writeFileWithinRoot } from "../../fs-safe-
|
|
30
|
-
import "../../proxy-env-
|
|
31
|
-
import "../../store-
|
|
32
|
-
import "../../accounts-
|
|
33
|
-
import "../../paths-
|
|
34
|
-
import "../../tool-images-
|
|
35
|
-
import "../../image-
|
|
36
|
-
import "../../audio-transcription-runner-
|
|
37
|
-
import "../../fetch-
|
|
38
|
-
import "../../fetch-guard-
|
|
39
|
-
import "../../api-key-rotation-
|
|
40
|
-
import "../../proxy-fetch-
|
|
41
|
-
import "../../ir-
|
|
1
|
+
import { c as resolveAgentWorkspaceDir } from "../../run-with-concurrency-8eLquFY-.js";
|
|
2
|
+
import { c as resolveStateDir } from "../../paths-7QwxBDEW.js";
|
|
3
|
+
import { t as createSubsystemLogger } from "../../subsystem-BT0ZqCjC.js";
|
|
4
|
+
import { B as resolveAgentIdFromSessionKey } from "../../workspace-BZw3YW8c.js";
|
|
5
|
+
import "../../logger-Bs5o_Q4e.js";
|
|
6
|
+
import "../../model-selection-BeUT4Ib0.js";
|
|
7
|
+
import "../../github-copilot-token-DAY5LNVX.js";
|
|
8
|
+
import "../../legacy-names-UE93Wd14.js";
|
|
9
|
+
import "../../thinking-C-uklGto.js";
|
|
10
|
+
import "../../tokens-W2VLMOeA.js";
|
|
11
|
+
import "../../pi-embedded-eZE-R8OC.js";
|
|
12
|
+
import "../../plugins-D9VoSB-W.js";
|
|
13
|
+
import "../../accounts-BnUc3Xax.js";
|
|
14
|
+
import "../../send-B5ZIGVlK.js";
|
|
15
|
+
import "../../send-B-QBYgFa.js";
|
|
16
|
+
import "../../deliver-DItDynRN.js";
|
|
17
|
+
import "../../diagnostic-CZq1eLs0.js";
|
|
18
|
+
import "../../accounts-CW736E0H.js";
|
|
19
|
+
import "../../image-ops-Bep-mYYd.js";
|
|
20
|
+
import "../../send-CfUQwWnU.js";
|
|
21
|
+
import "../../pi-model-discovery-C9p6rGzB.js";
|
|
22
|
+
import { dt as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-Cf2DA0K1.js";
|
|
23
|
+
import "../../chrome-FutPlvSK.js";
|
|
24
|
+
import "../../frontmatter-BjFkTlNB.js";
|
|
25
|
+
import "../../skills-CdXLP8dx.js";
|
|
26
|
+
import "../../path-alias-guards-SRq1ZupA.js";
|
|
27
|
+
import "../../redact-BEEwIzcp.js";
|
|
28
|
+
import "../../errors-Ce16yfKp.js";
|
|
29
|
+
import { c as writeFileWithinRoot } from "../../fs-safe-DRQyU9B1.js";
|
|
30
|
+
import "../../proxy-env-Dto4ksE8.js";
|
|
31
|
+
import "../../store-OXyhan5j.js";
|
|
32
|
+
import "../../accounts-BTQf92DK.js";
|
|
33
|
+
import "../../paths-BijaP26S.js";
|
|
34
|
+
import "../../tool-images-C2Utrdhg.js";
|
|
35
|
+
import "../../image-DCMnR1Yc.js";
|
|
36
|
+
import "../../audio-transcription-runner-BtWAHqsQ.js";
|
|
37
|
+
import "../../fetch-DBr7AQmD.js";
|
|
38
|
+
import "../../fetch-guard-ryORmHol.js";
|
|
39
|
+
import "../../api-key-rotation-DdkeF1OA.js";
|
|
40
|
+
import "../../proxy-fetch-DZKnzzTS.js";
|
|
41
|
+
import "../../ir-k8FRbmjM.js";
|
|
42
42
|
import "../../render-95l30zcf.js";
|
|
43
|
-
import "../../target-errors-
|
|
44
|
-
import "../../commands-registry-
|
|
45
|
-
import "../../skill-commands-
|
|
43
|
+
import "../../target-errors-B3bbuu4h.js";
|
|
44
|
+
import "../../commands-registry-BbMg2ZIK.js";
|
|
45
|
+
import "../../skill-commands-DjcGi-RV.js";
|
|
46
46
|
import "../../fetch-NSdhMhHl.js";
|
|
47
|
-
import "../../channel-activity-
|
|
48
|
-
import "../../tables-
|
|
49
|
-
import "../../send-
|
|
50
|
-
import "../../outbound-attachment-
|
|
51
|
-
import "../../send-
|
|
47
|
+
import "../../channel-activity-DU1DkjqT.js";
|
|
48
|
+
import "../../tables-DplvM1Fu.js";
|
|
49
|
+
import "../../send-Bbwp4X9m.js";
|
|
50
|
+
import "../../outbound-attachment-CioeSBhJ.js";
|
|
51
|
+
import "../../send-CCkwCAg9.js";
|
|
52
52
|
import "../../proxy-DULbDMaI.js";
|
|
53
|
-
import "../../manager-
|
|
54
|
-
import "../../query-expansion-
|
|
53
|
+
import "../../manager-CYQsMwKo.js";
|
|
54
|
+
import "../../query-expansion-Bzsj5sKu.js";
|
|
55
55
|
import { generateSlugViaLLM } from "../../llm-slug-generator.js";
|
|
56
56
|
import { t as resolveHookConfig } from "../../config-By1mFioa.js";
|
|
57
57
|
import fs from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d56198d47c30d058b3f0b227571d26394fce016865db020b19114940557cdbdf
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as createSubsystemLogger } from "./subsystem-
|
|
2
|
-
import { S as retryAsync, x as resolveRetryConfig } from "./model-selection-
|
|
3
|
-
import { r as formatErrorMessage } from "./errors-
|
|
1
|
+
import { t as createSubsystemLogger } from "./subsystem-BT0ZqCjC.js";
|
|
2
|
+
import { S as retryAsync, x as resolveRetryConfig } from "./model-selection-BeUT4Ib0.js";
|
|
3
|
+
import { r as formatErrorMessage } from "./errors-Ce16yfKp.js";
|
|
4
4
|
import { RateLimitError } from "@buape/carbon";
|
|
5
5
|
|
|
6
6
|
//#region src/infra/retry-policy.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as createSubsystemLogger, w as resolvePreferredWinClawTmpDir } from "./subsystem-
|
|
2
|
-
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-
|
|
3
|
-
import { a as CONFIG_DIR } from "./logger-
|
|
4
|
-
import { Ct as isPrivateOrLoopbackIpAddress, St as isLoopbackIpAddress, X as loadConfig, wt as normalizeIpAddress } from "./model-selection-
|
|
5
|
-
import { a as isErrno } from "./errors-
|
|
6
|
-
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-
|
|
7
|
-
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-
|
|
1
|
+
import { t as createSubsystemLogger, w as resolvePreferredWinClawTmpDir } from "./subsystem-BT0ZqCjC.js";
|
|
2
|
+
import { D as isNotFoundPathError, O as isPathInside } from "./workspace-BZw3YW8c.js";
|
|
3
|
+
import { a as CONFIG_DIR } from "./logger-Bs5o_Q4e.js";
|
|
4
|
+
import { Ct as isPrivateOrLoopbackIpAddress, St as isLoopbackIpAddress, X as loadConfig, wt as normalizeIpAddress } from "./model-selection-BeUT4Ib0.js";
|
|
5
|
+
import { a as isErrno } from "./errors-Ce16yfKp.js";
|
|
6
|
+
import { i as openFileWithinRoot, t as SafeOpenError } from "./fs-safe-DRQyU9B1.js";
|
|
7
|
+
import { o as isPrivateNetworkAllowedByPolicy, s as resolvePinnedHostnameWithPolicy, t as hasProxyEnvConfigured } from "./proxy-env-Dto4ksE8.js";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import os from "node:os";
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
import
|
|
11
|
+
import fsSync from "node:fs";
|
|
12
12
|
import { execFileSync, spawn } from "node:child_process";
|
|
13
13
|
import { createHmac } from "node:crypto";
|
|
14
14
|
import net from "node:net";
|
|
@@ -1595,7 +1595,7 @@ const CHROMIUM_EXE_NAMES = new Set([
|
|
|
1595
1595
|
]);
|
|
1596
1596
|
function exists$1(filePath) {
|
|
1597
1597
|
try {
|
|
1598
|
-
return
|
|
1598
|
+
return fsSync.existsSync(filePath);
|
|
1599
1599
|
} catch {
|
|
1600
1600
|
return false;
|
|
1601
1601
|
}
|
|
@@ -1738,7 +1738,7 @@ function findDesktopFilePath(desktopId) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
function readDesktopExecLine(desktopPath) {
|
|
1740
1740
|
try {
|
|
1741
|
-
const lines =
|
|
1741
|
+
const lines = fsSync.readFileSync(desktopPath, "utf8").split(/\r?\n/);
|
|
1742
1742
|
for (const line of lines) if (line.startsWith("Exec=")) return line.slice(5).trim();
|
|
1743
1743
|
} catch {}
|
|
1744
1744
|
return null;
|
|
@@ -1996,7 +1996,7 @@ function resolveBrowserExecutableForPlatform(resolved, platform) {
|
|
|
1996
1996
|
const LSOF_CANDIDATES = process.platform === "darwin" ? ["/usr/sbin/lsof", "/usr/bin/lsof"] : ["/usr/bin/lsof", "/usr/sbin/lsof"];
|
|
1997
1997
|
function resolveLsofCommandSync() {
|
|
1998
1998
|
for (const candidate of LSOF_CANDIDATES) try {
|
|
1999
|
-
|
|
1999
|
+
fsSync.accessSync(candidate, fsSync.constants.X_OK);
|
|
2000
2000
|
return candidate;
|
|
2001
2001
|
} catch {}
|
|
2002
2002
|
return "lsof";
|
|
@@ -2041,8 +2041,8 @@ function decoratedMarkerPath(userDataDir) {
|
|
|
2041
2041
|
}
|
|
2042
2042
|
function safeReadJson(filePath) {
|
|
2043
2043
|
try {
|
|
2044
|
-
if (!
|
|
2045
|
-
const raw =
|
|
2044
|
+
if (!fsSync.existsSync(filePath)) return null;
|
|
2045
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
2046
2046
|
const parsed = JSON.parse(raw);
|
|
2047
2047
|
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return null;
|
|
2048
2048
|
return parsed;
|
|
@@ -2051,8 +2051,8 @@ function safeReadJson(filePath) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
function safeWriteJson(filePath, data) {
|
|
2054
|
-
|
|
2055
|
-
|
|
2054
|
+
fsSync.mkdirSync(path.dirname(filePath), { recursive: true });
|
|
2055
|
+
fsSync.writeFileSync(filePath, JSON.stringify(data, null, 2));
|
|
2056
2056
|
}
|
|
2057
2057
|
function setDeep(obj, keys, value) {
|
|
2058
2058
|
let node = obj;
|
|
@@ -2179,7 +2179,7 @@ function decorateWinClawProfile(userDataDir, opts) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
safeWriteJson(preferencesPath, prefs);
|
|
2181
2181
|
try {
|
|
2182
|
-
|
|
2182
|
+
fsSync.writeFileSync(decoratedMarkerPath(userDataDir), `${Date.now()}\n`, "utf-8");
|
|
2183
2183
|
} catch {}
|
|
2184
2184
|
}
|
|
2185
2185
|
function ensureProfileCleanExit(userDataDir) {
|
|
@@ -2195,7 +2195,7 @@ function ensureProfileCleanExit(userDataDir) {
|
|
|
2195
2195
|
const log = createSubsystemLogger("browser").child("chrome");
|
|
2196
2196
|
function exists(filePath) {
|
|
2197
2197
|
try {
|
|
2198
|
-
return
|
|
2198
|
+
return fsSync.existsSync(filePath);
|
|
2199
2199
|
} catch {
|
|
2200
2200
|
return false;
|
|
2201
2201
|
}
|
|
@@ -2293,7 +2293,7 @@ async function launchWinClawChrome(resolved, profile) {
|
|
|
2293
2293
|
const exe = resolveBrowserExecutable(resolved);
|
|
2294
2294
|
if (!exe) throw new Error("No supported browser found (Chrome/Brave/Edge/Chromium on macOS, Linux, or Windows).");
|
|
2295
2295
|
const userDataDir = resolveWinClawUserDataDir(profile.name);
|
|
2296
|
-
|
|
2296
|
+
fsSync.mkdirSync(userDataDir, { recursive: true });
|
|
2297
2297
|
const needsDecorate = !isProfileDecorated(userDataDir, profile.name, (profile.color ?? DEFAULT_WINCLAW_BROWSER_COLOR).toUpperCase());
|
|
2298
2298
|
const spawnOnce = () => {
|
|
2299
2299
|
const args = [
|