@symerian/symi 2.6.38 → 2.6.39
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-BRw8yhIW.js → accounts-D1r2dq1t.js} +21 -21
- package/dist/{accounts-3dCrO3oZ.js → accounts-dRUMQQrB.js} +1 -1
- package/dist/{accounts-BuZxOb3B.js → accounts-wSphH5gv.js} +1 -1
- package/dist/{active-listener-Br2FcRv7.js → active-listener-C3pfJhdC.js} +1 -1
- package/dist/{agent-scope-CpEJ0B88.js → agent-scope-D68_xfTL.js} +3 -3
- package/dist/{audio-preflight-DBMz5TQp.js → audio-preflight-DZ_2w4B5.js} +4 -4
- package/dist/{audio-preflight-Cz1htqcz.js → audio-preflight-UXg8r6a7.js} +29 -29
- package/dist/{auth-profiles-q3HjbboY.js → auth-profiles-CZZjOpX8.js} +17 -17
- package/dist/{bindings-BsHoBLIE.js → bindings-Bat2RnAR.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +54 -54
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +1 -1
- package/dist/bundled/session-memory/handler.js +54 -54
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-D-kw83R0.js → channel-activity-Cm1OJRbv.js} +1 -1
- package/dist/{chrome-34eOyt_6.js → chrome-CXbfCc20.js} +5 -5
- package/dist/{chrome-CovpMGdO.js → chrome-D0sqCqXY.js} +16 -16
- package/dist/{chunk-BHW8Yu5A.js → chunk-B9x_1qSr.js} +1 -1
- package/dist/{command-registry-Dk55OGO6.js → command-registry-DSV-4T7A.js} +4 -4
- package/dist/{commands-registry-BSvi46KZ.js → commands-registry-DPf4J7nj.js} +4 -4
- package/dist/{completion-cli-1HmgP7tY.js → completion-cli-DjQVuJdD.js} +2 -2
- package/dist/{completion-cli-DrDwlbAX.js → completion-cli-dlL2VvFw.js} +1 -1
- package/dist/{config-4Iu6iHCA.js → config-giEDOxub.js} +12 -12
- package/dist/control-ui/js/app.js +16 -5
- package/dist/control-ui/js/render.js +24 -35
- package/dist/{deliver-DtM4u1u_.js → deliver-BY58QnO8.js} +20 -20
- package/dist/{deliver-BCYGr-CD.js → deliver-DepjYu87.js} +1 -1
- package/dist/{diagnostic-CQiU0O8b.js → diagnostic-DIKKFHpP.js} +1 -1
- package/dist/{doctor-completion-B8IZFxo9.js → doctor-completion-Cm7WG43a.js} +1 -1
- package/dist/{doctor-completion-D6tzA47C.js → doctor-completion-Z_RXu40-.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{env-BDXYbTKj.js → env-xmBFQPBP.js} +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{frontmatter-CTR5f_Ez.js → frontmatter-CV0YkjoY.js} +2 -2
- package/dist/{gateway-cli-DdjXGMTo.js → gateway-cli-DliBYmLu.js} +2 -2
- package/dist/{gateway-cli-DCTt5acx.js → gateway-cli-Fnxgv97F.js} +2 -2
- package/dist/{gemini-auth-BkLFtndu.js → gemini-auth-C39f2zRe.js} +1 -1
- package/dist/{github-copilot-token-cCYzSU9h.js → github-copilot-token-B8B2pmph.js} +7 -7
- package/dist/{glass-ui-ws-C_DzMNsd.js → glass-ui-ws-B0sH6QQi.js} +18 -2
- package/dist/{glass-ui-ws-DBlQ-hk7.js → glass-ui-ws-CfNTIb_g.js} +18 -2
- package/dist/{image-mx18hbyY.js → image-CKMw_vhe.js} +4 -4
- package/dist/{image-DKudhySz.js → image-CjuJpc3E.js} +1 -1
- package/dist/{image-ops-C7CauEK8.js → image-ops-M5agStZn.js} +16 -16
- package/dist/index.js +1 -1
- package/dist/{ir-JAy_3A3B.js → ir-Z9axTYHx.js} +4 -4
- package/dist/llm-slug-generator.js +54 -54
- package/dist/{local-roots-Se92wAN5.js → local-roots-Bh5xx9IO.js} +5 -5
- package/dist/{login-IpOTJtyn.js → login-2w0Q7Btb.js} +7 -7
- package/dist/{login-qr-DRepVMvu.js → login-qr-BJMvic1s.js} +12 -12
- package/dist/{manager-CJ3M1Uxq.js → manager-BoLUtbg2.js} +22 -22
- package/dist/{manifest-registry-yb7sAlu4.js → manifest-registry-0J48biqr.js} +19 -19
- package/dist/{markdown-tables-Dnj2LQUc.js → markdown-tables-DuRhvVpP.js} +1 -1
- package/dist/{message-channel-OlFBYAw8.js → message-channel-DwDSKGn4.js} +1 -1
- package/dist/{onboard-CEE38rOh.js → onboard-A5dfwOyL.js} +1 -1
- package/dist/{onboard-Dxf43Kz5.js → onboard-BSlbkbv-.js} +1 -1
- package/dist/{onboarding-B1VwuUX5.js → onboarding-BTNiewJj.js} +1 -1
- package/dist/{onboarding-BxHFNg2y.js → onboarding-COqa6a28.js} +1 -1
- package/dist/{onboarding.finalize-dP5Igu4h.js → onboarding.finalize-CAax5IdL.js} +4 -4
- package/dist/{onboarding.finalize-DQm4Tey0.js → onboarding.finalize-CDsTN9zD.js} +3 -3
- package/dist/{outbound-UwQEXYXv.js → outbound-B_wliV26.js} +7 -7
- package/dist/{outbound-attachment-BzwVH4Pn.js → outbound-attachment-BOy-OY4-.js} +2 -2
- package/dist/paths-CYmyCDsE.js +212 -0
- package/dist/{paths-CbQV9WEg.js → paths-DEuVuViW.js} +1 -1
- package/dist/{pi-auth-json-CCaxCywz.js → pi-auth-json-BQcKJvH0.js} +1 -1
- package/dist/{pi-embedded-DKaDXfFG.js → pi-embedded-R_JHJFwq.js} +16 -16
- package/dist/{pi-embedded-helpers-CepVOR4e.js → pi-embedded-helpers-BJrRH97f.js} +4 -4
- package/dist/{pi-embedded-helpers-DASLSiel.js → pi-embedded-helpers-Cr1X3W9i.js} +73 -73
- package/dist/{plugins-BzmbgY7s.js → plugins-Bkr5ZdYs.js} +9 -9
- package/dist/{program-DGLuU2_H.js → program-C4k7oBuC.js} +2 -2
- package/dist/{program-context-B2BcluHm.js → program-context-CiGMAzyC.js} +6 -6
- package/dist/{prompt-select-styled-CAKiYm_X.js → prompt-select-styled-CYiMonwj.js} +1 -1
- package/dist/{prompt-select-styled-C9RTEKcx.js → prompt-select-styled-CoWkFI4l.js} +1 -1
- package/dist/{pw-ai-Cfeeyp0u.js → pw-ai-CS2tDZd2.js} +1 -1
- package/dist/{pw-ai-CPelTpWz.js → pw-ai-Ch_WUbQZ.js} +11 -11
- package/dist/{qmd-manager-lBS9mT9w.js → qmd-manager-8-Z3Cdpt.js} +7 -7
- package/dist/{register.maintenance-BKB_D_Py.js → register.maintenance-DAwf6cHN.js} +5 -5
- package/dist/{register.maintenance-BgWyvLo5.js → register.maintenance-DVv8ljal.js} +4 -4
- package/dist/{register.onboard-DT1We9u2.js → register.onboard-DJEZcUm5.js} +2 -2
- package/dist/{register.onboard-CSmfgDU5.js → register.onboard-DWrxbBr5.js} +2 -2
- package/dist/{register.setup-CEW5ApHJ.js → register.setup-Ah9E7LHA.js} +2 -2
- package/dist/{register.setup-mJzihfMO.js → register.setup-BDqhSgCz.js} +2 -2
- package/dist/{register.subclis-Bi4jmYW6.js → register.subclis-Bb0yWevQ.js} +3 -3
- package/dist/{registry-DYq1AYOv.js → registry-UkL38jvt.js} +17 -17
- package/dist/{replies-DA4YTv9G.js → replies-CbeMv5WZ.js} +3 -3
- package/dist/{reply-prefix-CvEIl6_d.js → reply-prefix-ZnX2V-k9.js} +1 -1
- package/dist/{resolve-route-DX7xcMsD.js → resolve-route-gl0ZOOKR.js} +4 -4
- package/dist/{retry-B-y5suGA.js → retry-D25Z8MVS.js} +1 -1
- package/dist/{run-main-Ugk40lFF.js → run-main-CZI2Ne08.js} +3 -3
- package/dist/{runner-DKq2NJqT.js → runner-B2Y_5crX.js} +22 -22
- package/dist/{runner-qeYibveF.js → runner-DKkSu9cc.js} +1 -1
- package/dist/{send-Cq1L-2Ik.js → send-CCNIWI2Z.js} +10 -10
- package/dist/{send-C4Bqsa_r.js → send-CPSKimCF.js} +6 -6
- package/dist/{send-DX0p0ym_.js → send-Dy8tsHUE.js} +6 -6
- package/dist/{send-vtz9ZwUj.js → send-iUSZIdml.js} +7 -7
- package/dist/{send-DVt9RLDh.js → send-sgxdFZNy.js} +18 -18
- package/dist/{session-BQWef058.js → session-BTpKgzso.js} +8 -8
- package/dist/{skill-commands-BiPrghRt.js → skill-commands-HBkNllDU.js} +16 -16
- package/dist/{skills-Bs0AW1g3.js → skills-CGHRETGF.js} +24 -24
- package/dist/{sqlite-BHWvOATS.js → sqlite-JHY-uOmS.js} +16 -16
- package/dist/{store-01F_JM7O.js → store-Ea3zM6xK.js} +6 -6
- package/dist/{subsystem-BjyjJF-d.js → subsystem-DN75fnEF.js} +1 -1
- package/dist/{tables-BuM4FKR3.js → tables-Dkg9O8rv.js} +1 -1
- package/dist/{target-errors-BEugWC4F.js → target-errors-Pr77jao5.js} +2 -2
- package/dist/{thinking-BprCy23Z.js → thinking-C9-JAUzD.js} +5 -5
- package/dist/{tokens-W0JzCJJM.js → tokens-CCZl4YHT.js} +1 -1
- package/dist/{tool-images-SqqWIT22.js → tool-images-B1qVCntj.js} +2 -2
- package/dist/{tool-loop-detection-D5mBY7AC.js → tool-loop-detection-C33wf43N.js} +3 -3
- package/dist/{unified-runner-CMgTwCmG.js → unified-runner-hulABWDL.js} +225 -225
- package/dist/{update-cli-Dup4Xi6b.js → update-cli-CnN_k3P1.js} +4 -4
- package/dist/{update-cli-DiH9ccFa.js → update-cli-DwGmFbPH.js} +5 -5
- package/dist/{web-BrGvZQ21.js → web-C0ZdaR6w.js} +6 -6
- package/dist/{web-BIo1QcLd.js → web-DpQ5RaFz.js} +58 -58
- package/dist/{whatsapp-actions-DZfLLQ0Y.js → whatsapp-actions-D_w4AfW9.js} +23 -23
- package/dist/{workspace-DscDraUb.js → workspace-DqJ5h-ZB.js} +27 -27
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/google-antigravity-auth/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/learning-loop/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/matrix/CHANGELOG.md +6 -0
- package/extensions/matrix/package.json +1 -1
- package/extensions/mattermost/package.json +1 -1
- package/extensions/memory-core/package.json +1 -1
- package/extensions/memory-lancedb/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/msteams/CHANGELOG.md +6 -0
- package/extensions/msteams/package.json +1 -1
- package/extensions/nextcloud-talk/package.json +1 -1
- package/extensions/nostr/CHANGELOG.md +6 -0
- package/extensions/nostr/package.json +1 -1
- package/extensions/open-prose/package.json +1 -1
- package/extensions/outlook/package.json +1 -1
- package/extensions/pipeline/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/telegram/package.json +1 -1
- package/extensions/tlon/package.json +1 -1
- package/extensions/twitch/CHANGELOG.md +6 -0
- package/extensions/twitch/package.json +1 -1
- package/extensions/voice-call/CHANGELOG.md +6 -0
- package/extensions/voice-call/package.json +1 -1
- package/extensions/whatsapp/package.json +1 -1
- package/extensions/zalo/CHANGELOG.md +6 -0
- package/extensions/zalo/package.json +1 -1
- package/extensions/zalouser/CHANGELOG.md +6 -0
- package/extensions/zalouser/package.json +1 -1
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@ import "./stagger-CvFURHzt.js";
|
|
|
107
107
|
import { c as resolveGatewayLaunchAgentLabel, d as resolveGatewaySystemdServiceName, f as resolveGatewayWindowsTaskName } from "./constants-CafH8-8D.js";
|
|
108
108
|
import "./channel-selection-V2xDgw16.js";
|
|
109
109
|
import { r as parseSemver } from "./runtime-guard-Dik20CVM.js";
|
|
110
|
-
import "./program-context-
|
|
110
|
+
import "./program-context-CiGMAzyC.js";
|
|
111
111
|
import "./catalog-NQ4pj9RI.js";
|
|
112
112
|
import "./skills-status-C3ptXwnh.js";
|
|
113
113
|
import { n as inheritOptionFromParent } from "./command-options-BkTXKWlb.js";
|
|
@@ -118,7 +118,7 @@ import "./npm-registry-spec-C0CPT3vr.js";
|
|
|
118
118
|
import "./skill-scanner-hMtQbWPV.js";
|
|
119
119
|
import "./installs-DQcRVF1U.js";
|
|
120
120
|
import "./channels-status-issues-CJ0Vb_9z.js";
|
|
121
|
-
import { r as installCompletion } from "./completion-cli-
|
|
121
|
+
import { r as installCompletion } from "./completion-cli-dlL2VvFw.js";
|
|
122
122
|
import "./daemon-runtime-COZ4usfy.js";
|
|
123
123
|
import "./systemd-DT6SbCim.js";
|
|
124
124
|
import { t as resolveGatewayService } from "./service-osK70kTZ.js";
|
|
@@ -138,8 +138,8 @@ import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from
|
|
|
138
138
|
import "./doctor-config-flow-BTQvpBys.js";
|
|
139
139
|
import "./systemd-linger-DCskIKcx.js";
|
|
140
140
|
import "./health-format-DRCaak6L.js";
|
|
141
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
142
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
141
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-CYiMonwj.js";
|
|
142
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-Cm7WG43a.js";
|
|
143
143
|
import os from "node:os";
|
|
144
144
|
import path from "node:path";
|
|
145
145
|
import fs from "node:fs/promises";
|
|
@@ -112,10 +112,10 @@ import "./npm-registry-spec-DkaZNHAW.js";
|
|
|
112
112
|
import "./skill-scanner-BGWOBqLY.js";
|
|
113
113
|
import "./installs-CgQpVncj.js";
|
|
114
114
|
import "./channels-status-issues-c7qZbYG5.js";
|
|
115
|
-
import "./register.subclis-
|
|
116
|
-
import "./command-registry-
|
|
115
|
+
import "./register.subclis-Bb0yWevQ.js";
|
|
116
|
+
import "./command-registry-DSV-4T7A.js";
|
|
117
117
|
import "./program-context-CqzR_m-7.js";
|
|
118
|
-
import { r as installCompletion } from "./completion-cli-
|
|
118
|
+
import { r as installCompletion } from "./completion-cli-DjQVuJdD.js";
|
|
119
119
|
import "./daemon-runtime-CfRwa6qh.js";
|
|
120
120
|
import { r as parseSemver } from "./runtime-guard-D7waq_Ho.js";
|
|
121
121
|
import "./systemd-DlMdyFDY.js";
|
|
@@ -136,8 +136,8 @@ import { n as updateNpmInstalledPlugins, t as syncPluginsForUpdateChannel } from
|
|
|
136
136
|
import "./doctor-config-flow-CA3eiKhd.js";
|
|
137
137
|
import "./systemd-linger-DA_LW52P.js";
|
|
138
138
|
import "./health-format-CzgUHmmX.js";
|
|
139
|
-
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-
|
|
140
|
-
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-
|
|
139
|
+
import { n as doctorCommand, t as selectStyled } from "./prompt-select-styled-CoWkFI4l.js";
|
|
140
|
+
import { r as ensureCompletionCacheExists, t as checkShellCompletionStatus } from "./doctor-completion-Z_RXu40-.js";
|
|
141
141
|
import { spawn, spawnSync } from "node:child_process";
|
|
142
142
|
import os from "node:os";
|
|
143
143
|
import path from "node:path";
|
|
@@ -8,13 +8,13 @@ import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createR
|
|
|
8
8
|
import "./github-copilot-token-BbsJ0Qbo.js";
|
|
9
9
|
import { r as formatCliCommand } from "./env-CQ_DQOwT.js";
|
|
10
10
|
import "./tokens-Cn6drXx2.js";
|
|
11
|
-
import { C as shouldComputeCommandAuthorized, S as hasControlCommand, T as normalizeMentionText, _ as enqueueSystemEvent, a as DEFAULT_GROUP_HISTORY_LIMIT, b as formatInboundEnvelope, c as shouldAckReactionForWhatsApp, d as createDedupeCache, f as getReplyFromConfig, g as formatDurationPrecise, h as parseActivationCommand, i as resolveMentionGating, l as dispatchReplyWithBufferedBlockDispatcher, m as normalizeGroupActivation, n as sleepWithAbort, o as buildHistoryContextFromEntries, r as buildPairingReply, s as recordPendingHistoryEntryIfEnabled, t as computeBackoff, v as createInboundDebouncer, w as buildMentionRegexes, x as resolveEnvelopeFormatOptions, y as resolveInboundDebounceMs } from "./pi-embedded-
|
|
11
|
+
import { C as shouldComputeCommandAuthorized, S as hasControlCommand, T as normalizeMentionText, _ as enqueueSystemEvent, a as DEFAULT_GROUP_HISTORY_LIMIT, b as formatInboundEnvelope, c as shouldAckReactionForWhatsApp, d as createDedupeCache, f as getReplyFromConfig, g as formatDurationPrecise, h as parseActivationCommand, i as resolveMentionGating, l as dispatchReplyWithBufferedBlockDispatcher, m as normalizeGroupActivation, n as sleepWithAbort, o as buildHistoryContextFromEntries, r as buildPairingReply, s as recordPendingHistoryEntryIfEnabled, t as computeBackoff, v as createInboundDebouncer, w as buildMentionRegexes, x as resolveEnvelopeFormatOptions, y as resolveInboundDebounceMs } from "./pi-embedded-R_JHJFwq.js";
|
|
12
12
|
import "./plugins-71oIavrF.js";
|
|
13
13
|
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-DDEyGwby.js";
|
|
14
14
|
import "./bindings-DYVakimr.js";
|
|
15
15
|
import "./send-CFzf_ab4.js";
|
|
16
16
|
import "./send-BJTX03Bn.js";
|
|
17
|
-
import "./deliver-
|
|
17
|
+
import "./deliver-DepjYu87.js";
|
|
18
18
|
import "./diagnostic-D0xmLpej.js";
|
|
19
19
|
import "./diagnostic-session-state-C1vRJs5w.js";
|
|
20
20
|
import "./accounts-8zZqL37v.js";
|
|
@@ -22,10 +22,10 @@ import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocatio
|
|
|
22
22
|
import "./image-ops-ByaQt43P.js";
|
|
23
23
|
import "./pi-model-discovery-j5tVLINv.js";
|
|
24
24
|
import "./message-channel-BQINJQIT.js";
|
|
25
|
-
import { Ct as resolveGroupSessionKey, H as loadSessionStore, K as updateLastRoute, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
25
|
+
import { Ct as resolveGroupSessionKey, H as loadSessionStore, K as updateLastRoute, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-BJrRH97f.js";
|
|
26
26
|
import { n as loadConfig } from "./config-DBqxAhpU.js";
|
|
27
27
|
import "./manifest-registry-D-mTF1cj.js";
|
|
28
|
-
import "./chrome-
|
|
28
|
+
import "./chrome-CXbfCc20.js";
|
|
29
29
|
import "./skills-BNpGMnp-.js";
|
|
30
30
|
import "./redact-1NGYV_8p.js";
|
|
31
31
|
import "./errors-CPfngF0S.js";
|
|
@@ -35,7 +35,7 @@ import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy
|
|
|
35
35
|
import "./accounts-DImOt9jX.js";
|
|
36
36
|
import { s as resolveStorePath } from "./paths-DkMamAQ-.js";
|
|
37
37
|
import "./tool-images-ChC2CXaN.js";
|
|
38
|
-
import "./image-
|
|
38
|
+
import "./image-CjuJpc3E.js";
|
|
39
39
|
import "./manager-CgLdpXXM.js";
|
|
40
40
|
import "./gemini-auth-ClVyOv9p.js";
|
|
41
41
|
import "./sqlite-BNh23mUR.js";
|
|
@@ -49,7 +49,7 @@ import "./render-B1VqYyvo.js";
|
|
|
49
49
|
import "./commands-registry-DYoNKo_h.js";
|
|
50
50
|
import "./skill-commands-D8RiKDh0.js";
|
|
51
51
|
import { t as finalizeInboundContext } from "./inbound-context-QOi5vzUt.js";
|
|
52
|
-
import { p as registerUnhandledRejectionHandler } from "./runner-
|
|
52
|
+
import { p as registerUnhandledRejectionHandler } from "./runner-DKkSu9cc.js";
|
|
53
53
|
import "./fetch-DtLn7YU3.js";
|
|
54
54
|
import { n as recordChannelActivity } from "./channel-activity-D9q-fIPB.js";
|
|
55
55
|
import { t as convertMarkdownTables } from "./tables-COnZ169v.js";
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import "./paths-
|
|
1
|
+
import "./paths-CYmyCDsE.js";
|
|
2
2
|
import { a as buildGroupHistoryKey, n as DEFAULT_MAIN_KEY, r as buildAgentMainSessionKey, s as normalizeAgentId } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { A as isSelfChatMode, B as sleep, C as clamp, F as resolveJidToE164, H as toWhatsappJid, J as logVerbose, M as normalizeE164, Z as shouldLogVerbose, j as jidToE164, rt as getChildLogger } from "./registry-
|
|
4
|
-
import "./agent-scope-
|
|
5
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
6
|
-
import "./workspace-
|
|
7
|
-
import { C as resolveEnvelopeFormatOptions, D as normalizeMentionText, E as buildMentionRegexes, S as formatInboundEnvelope, T as shouldComputeCommandAuthorized, _ as parseActivationCommand, b as createInboundDebouncer, c as DEFAULT_GROUP_HISTORY_LIMIT, d as shouldAckReactionForWhatsApp, f as dispatchReplyWithBufferedBlockDispatcher, g as normalizeGroupActivation, h as getReplyFromConfig, l as buildHistoryContextFromEntries, m as createDedupeCache, n as computeBackoff, o as buildPairingReply, r as sleepWithAbort, s as resolveMentionGating, u as recordPendingHistoryEntryIfEnabled, v as formatDurationPrecise, w as hasControlCommand, x as resolveInboundDebounceMs, y as enqueueSystemEvent } from "./unified-runner-
|
|
8
|
-
import { s as resolveStorePath } from "./paths-
|
|
9
|
-
import "./auth-profiles-
|
|
10
|
-
import { n as formatCliCommand } from "./env-
|
|
11
|
-
import "./github-copilot-token-
|
|
3
|
+
import { A as isSelfChatMode, B as sleep, C as clamp, F as resolveJidToE164, H as toWhatsappJid, J as logVerbose, M as normalizeE164, Z as shouldLogVerbose, j as jidToE164, rt as getChildLogger } from "./registry-UkL38jvt.js";
|
|
4
|
+
import "./agent-scope-D68_xfTL.js";
|
|
5
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DN75fnEF.js";
|
|
6
|
+
import "./workspace-DqJ5h-ZB.js";
|
|
7
|
+
import { C as resolveEnvelopeFormatOptions, D as normalizeMentionText, E as buildMentionRegexes, S as formatInboundEnvelope, T as shouldComputeCommandAuthorized, _ as parseActivationCommand, b as createInboundDebouncer, c as DEFAULT_GROUP_HISTORY_LIMIT, d as shouldAckReactionForWhatsApp, f as dispatchReplyWithBufferedBlockDispatcher, g as normalizeGroupActivation, h as getReplyFromConfig, l as buildHistoryContextFromEntries, m as createDedupeCache, n as computeBackoff, o as buildPairingReply, r as sleepWithAbort, s as resolveMentionGating, u as recordPendingHistoryEntryIfEnabled, v as formatDurationPrecise, w as hasControlCommand, x as resolveInboundDebounceMs, y as enqueueSystemEvent } from "./unified-runner-hulABWDL.js";
|
|
8
|
+
import { s as resolveStorePath } from "./paths-DEuVuViW.js";
|
|
9
|
+
import "./auth-profiles-CZZjOpX8.js";
|
|
10
|
+
import { n as formatCliCommand } from "./env-xmBFQPBP.js";
|
|
11
|
+
import "./github-copilot-token-B8B2pmph.js";
|
|
12
12
|
import "./boolean-CE7i9tBR.js";
|
|
13
|
-
import { Ct as resolveGroupSessionKey, G as updateLastRoute, H as loadSessionStore, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-
|
|
14
|
-
import { n as loadConfig } from "./config-
|
|
15
|
-
import "./manifest-registry-
|
|
16
|
-
import "./chrome-
|
|
17
|
-
import "./frontmatter-
|
|
18
|
-
import "./skills-
|
|
13
|
+
import { Ct as resolveGroupSessionKey, G as updateLastRoute, H as loadSessionStore, U as readSessionUpdatedAt, W as recordSessionMetaFromInbound } from "./pi-embedded-helpers-Cr1X3W9i.js";
|
|
14
|
+
import { n as loadConfig } from "./config-giEDOxub.js";
|
|
15
|
+
import "./manifest-registry-0J48biqr.js";
|
|
16
|
+
import "./chrome-D0sqCqXY.js";
|
|
17
|
+
import "./frontmatter-CV0YkjoY.js";
|
|
18
|
+
import "./skills-CGHRETGF.js";
|
|
19
19
|
import "./redact-BDMXB06K.js";
|
|
20
20
|
import "./errors-XIsvXeC-.js";
|
|
21
|
-
import "./image-ops-
|
|
21
|
+
import "./image-ops-M5agStZn.js";
|
|
22
22
|
import "./ssrf-DpUUUgkK.js";
|
|
23
|
-
import { r as saveMediaBuffer } from "./store-
|
|
24
|
-
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-
|
|
25
|
-
import "./message-channel-
|
|
26
|
-
import "./plugins-
|
|
27
|
-
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-
|
|
28
|
-
import "./accounts-
|
|
29
|
-
import "./accounts-
|
|
30
|
-
import "./bindings-
|
|
31
|
-
import "./send-
|
|
32
|
-
import "./send-
|
|
33
|
-
import "./tool-images-
|
|
34
|
-
import "./deliver-
|
|
35
|
-
import "./diagnostic-
|
|
23
|
+
import { r as saveMediaBuffer } from "./store-Ea3zM6xK.js";
|
|
24
|
+
import { h as resolveChannelGroupRequireMention, m as resolveChannelGroupPolicy } from "./thinking-C9-JAUzD.js";
|
|
25
|
+
import "./message-channel-DwDSKGn4.js";
|
|
26
|
+
import "./plugins-Bkr5ZdYs.js";
|
|
27
|
+
import { i as logWebSelfId, l as readWebSelfId, n as WA_WEB_AUTH_DIR, p as webAuthExists, r as getWebAuthAgeMs, s as pickWebChannel, t as resolveWhatsAppAccount } from "./accounts-D1r2dq1t.js";
|
|
28
|
+
import "./accounts-dRUMQQrB.js";
|
|
29
|
+
import "./accounts-wSphH5gv.js";
|
|
30
|
+
import "./bindings-Bat2RnAR.js";
|
|
31
|
+
import "./send-Dy8tsHUE.js";
|
|
32
|
+
import "./send-CCNIWI2Z.js";
|
|
33
|
+
import "./tool-images-B1qVCntj.js";
|
|
34
|
+
import "./deliver-BY58QnO8.js";
|
|
35
|
+
import "./diagnostic-DIKKFHpP.js";
|
|
36
36
|
import "./diagnostic-session-state-Zw87xFym.js";
|
|
37
|
-
import "./image-
|
|
38
|
-
import "./pi-auth-json-
|
|
39
|
-
import "./tokens-
|
|
40
|
-
import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocationContext, X as upsertChannelPairingRequest } from "./send-
|
|
37
|
+
import "./image-CKMw_vhe.js";
|
|
38
|
+
import "./pi-auth-json-BQcKJvH0.js";
|
|
39
|
+
import "./tokens-CCZl4YHT.js";
|
|
40
|
+
import { G as formatLocationText, J as readChannelAllowFromStore, K as toLocationContext, X as upsertChannelPairingRequest } from "./send-sgxdFZNy.js";
|
|
41
41
|
import "./pi-model-discovery-CuZX_Q4t.js";
|
|
42
|
-
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-
|
|
43
|
-
import "./manager-
|
|
44
|
-
import "./gemini-auth-
|
|
45
|
-
import "./sqlite-
|
|
46
|
-
import "./retry-
|
|
47
|
-
import "./target-errors-
|
|
48
|
-
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-
|
|
49
|
-
import { n as resolveMarkdownTableMode } from "./markdown-tables-
|
|
50
|
-
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-
|
|
51
|
-
import { a as loadWebMedia } from "./ir-
|
|
42
|
+
import { c as resolveIdentityNamePrefix, l as resolveMessagePrefix, t as createReplyPrefixOptions } from "./reply-prefix-ZnX2V-k9.js";
|
|
43
|
+
import "./manager-BoLUtbg2.js";
|
|
44
|
+
import "./gemini-auth-C39f2zRe.js";
|
|
45
|
+
import "./sqlite-JHY-uOmS.js";
|
|
46
|
+
import "./retry-D25Z8MVS.js";
|
|
47
|
+
import "./target-errors-Pr77jao5.js";
|
|
48
|
+
import { c as resolveChunkMode, i as chunkMarkdownTextWithMode, l as resolveTextChunkLimit } from "./chunk-B9x_1qSr.js";
|
|
49
|
+
import { n as resolveMarkdownTableMode } from "./markdown-tables-DuRhvVpP.js";
|
|
50
|
+
import { t as getAgentScopedMediaLocalRoots } from "./local-roots-Bh5xx9IO.js";
|
|
51
|
+
import { a as loadWebMedia } from "./ir-Z9axTYHx.js";
|
|
52
52
|
import "./render-DwEu-aCr.js";
|
|
53
|
-
import "./commands-registry-
|
|
54
|
-
import { y as registerUnhandledRejectionHandler } from "./runner-
|
|
55
|
-
import "./skill-commands-
|
|
53
|
+
import "./commands-registry-DPf4J7nj.js";
|
|
54
|
+
import { y as registerUnhandledRejectionHandler } from "./runner-B2Y_5crX.js";
|
|
55
|
+
import "./skill-commands-HBkNllDU.js";
|
|
56
56
|
import { t as finalizeInboundContext } from "./inbound-context-Dvqh1Tgb.js";
|
|
57
57
|
import "./fetch-Dnti0cFs.js";
|
|
58
|
-
import { n as recordChannelActivity } from "./channel-activity-
|
|
59
|
-
import { t as convertMarkdownTables } from "./tables-
|
|
60
|
-
import "./send-
|
|
61
|
-
import "./outbound-attachment-
|
|
62
|
-
import "./send-
|
|
63
|
-
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-
|
|
58
|
+
import { n as recordChannelActivity } from "./channel-activity-Cm1OJRbv.js";
|
|
59
|
+
import { t as convertMarkdownTables } from "./tables-Dkg9O8rv.js";
|
|
60
|
+
import "./send-CPSKimCF.js";
|
|
61
|
+
import "./outbound-attachment-BOy-OY4-.js";
|
|
62
|
+
import "./send-iUSZIdml.js";
|
|
63
|
+
import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-gl0ZOOKR.js";
|
|
64
64
|
import "./proxy-DVy9foH0.js";
|
|
65
|
-
import "./replies-
|
|
66
|
-
import { r as setActiveWebListener } from "./active-listener-
|
|
67
|
-
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-
|
|
68
|
-
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-
|
|
69
|
-
import { t as loginWeb } from "./login-
|
|
65
|
+
import "./replies-CbeMv5WZ.js";
|
|
66
|
+
import { r as setActiveWebListener } from "./active-listener-C3pfJhdC.js";
|
|
67
|
+
import { i as markdownToWhatsApp, n as sendMessageWhatsApp, r as sendReactionWhatsApp } from "./outbound-B_wliV26.js";
|
|
68
|
+
import { i as waitForWaConnection, n as formatError, r as getStatusCode, t as createWaSocket } from "./session-BTpKgzso.js";
|
|
69
|
+
import { t as loginWeb } from "./login-2w0Q7Btb.js";
|
|
70
70
|
import { randomUUID } from "node:crypto";
|
|
71
71
|
import { DisconnectReason, downloadMediaMessage, extractMessageContent, getContentType, isJidGroup, normalizeMessageContent } from "@whiskeysockets/baileys";
|
|
72
72
|
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import "./paths-
|
|
2
|
-
import "./registry-
|
|
3
|
-
import "./agent-scope-
|
|
4
|
-
import "./subsystem-
|
|
5
|
-
import "./workspace-
|
|
6
|
-
import "./auth-profiles-
|
|
7
|
-
import "./env-
|
|
8
|
-
import "./github-copilot-token-
|
|
1
|
+
import "./paths-CYmyCDsE.js";
|
|
2
|
+
import "./registry-UkL38jvt.js";
|
|
3
|
+
import "./agent-scope-D68_xfTL.js";
|
|
4
|
+
import "./subsystem-DN75fnEF.js";
|
|
5
|
+
import "./workspace-DqJ5h-ZB.js";
|
|
6
|
+
import "./auth-profiles-CZZjOpX8.js";
|
|
7
|
+
import "./env-xmBFQPBP.js";
|
|
8
|
+
import "./github-copilot-token-B8B2pmph.js";
|
|
9
9
|
import "./boolean-CE7i9tBR.js";
|
|
10
|
-
import "./config-
|
|
11
|
-
import "./manifest-registry-
|
|
12
|
-
import "./image-ops-
|
|
10
|
+
import "./config-giEDOxub.js";
|
|
11
|
+
import "./manifest-registry-0J48biqr.js";
|
|
12
|
+
import "./image-ops-M5agStZn.js";
|
|
13
13
|
import "./ssrf-DpUUUgkK.js";
|
|
14
|
-
import "./message-channel-
|
|
15
|
-
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-
|
|
16
|
-
import { t as resolveWhatsAppAccount } from "./accounts-
|
|
17
|
-
import "./bindings-
|
|
18
|
-
import "./tool-images-
|
|
19
|
-
import { a as createActionGate, c as jsonResult, d as readReactionParams, i as ToolAuthorizationError, m as readStringParam, n as missingTargetError } from "./target-errors-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./markdown-tables-
|
|
22
|
-
import "./local-roots-
|
|
23
|
-
import "./ir-
|
|
14
|
+
import "./message-channel-DwDSKGn4.js";
|
|
15
|
+
import { a as normalizeWhatsAppTarget, i as isWhatsAppGroupJid } from "./plugins-Bkr5ZdYs.js";
|
|
16
|
+
import { t as resolveWhatsAppAccount } from "./accounts-D1r2dq1t.js";
|
|
17
|
+
import "./bindings-Bat2RnAR.js";
|
|
18
|
+
import "./tool-images-B1qVCntj.js";
|
|
19
|
+
import { a as createActionGate, c as jsonResult, d as readReactionParams, i as ToolAuthorizationError, m as readStringParam, n as missingTargetError } from "./target-errors-Pr77jao5.js";
|
|
20
|
+
import "./chunk-B9x_1qSr.js";
|
|
21
|
+
import "./markdown-tables-DuRhvVpP.js";
|
|
22
|
+
import "./local-roots-Bh5xx9IO.js";
|
|
23
|
+
import "./ir-Z9axTYHx.js";
|
|
24
24
|
import "./render-DwEu-aCr.js";
|
|
25
|
-
import "./tables-
|
|
26
|
-
import { r as sendReactionWhatsApp } from "./outbound-
|
|
25
|
+
import "./tables-Dkg9O8rv.js";
|
|
26
|
+
import { r as sendReactionWhatsApp } from "./outbound-B_wliV26.js";
|
|
27
27
|
|
|
28
28
|
//#region src/whatsapp/resolve-outbound-target.ts
|
|
29
29
|
function resolveWhatsAppOutboundTarget(params) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as resolveRequiredHomeDir } from "./paths-
|
|
1
|
+
import { u as resolveRequiredHomeDir } from "./paths-CYmyCDsE.js";
|
|
2
2
|
import { _ as isCronSessionKey, v as isSubagentSessionKey } from "./session-key-BCzIW1Y2.js";
|
|
3
|
-
import { $ as warn, G as danger, I as resolveUserPath, K as info, N as pathExists, Y as logVerboseConsole, Z as shouldLogVerbose, it as getLogger } from "./registry-
|
|
4
|
-
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-
|
|
3
|
+
import { $ as warn, G as danger, I as resolveUserPath, K as info, N as pathExists, Y as logVerboseConsole, Z as shouldLogVerbose, it as getLogger } from "./registry-UkL38jvt.js";
|
|
4
|
+
import { r as defaultRuntime, t as createSubsystemLogger } from "./subsystem-DN75fnEF.js";
|
|
5
5
|
import path from "node:path";
|
|
6
|
-
import
|
|
6
|
+
import fsSync from "node:fs";
|
|
7
7
|
import os from "node:os";
|
|
8
|
-
import fs
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
import { execFile, spawn } from "node:child_process";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
@@ -280,7 +280,7 @@ async function runCommandWithTimeout(argv, optionsOrTimeout) {
|
|
|
280
280
|
const CORE_PACKAGE_NAMES = new Set(["symi", "@symerian/symi"]);
|
|
281
281
|
async function readPackageName(dir) {
|
|
282
282
|
try {
|
|
283
|
-
const raw = await fs
|
|
283
|
+
const raw = await fs.readFile(path.join(dir, "package.json"), "utf-8");
|
|
284
284
|
const parsed = JSON.parse(raw);
|
|
285
285
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
286
286
|
} catch {
|
|
@@ -289,7 +289,7 @@ async function readPackageName(dir) {
|
|
|
289
289
|
}
|
|
290
290
|
function readPackageNameSync(dir) {
|
|
291
291
|
try {
|
|
292
|
-
const raw =
|
|
292
|
+
const raw = fsSync.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
293
293
|
const parsed = JSON.parse(raw);
|
|
294
294
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
295
295
|
} catch {
|
|
@@ -323,7 +323,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
323
323
|
const normalized = path.resolve(argv1);
|
|
324
324
|
const candidates = [path.dirname(normalized)];
|
|
325
325
|
try {
|
|
326
|
-
const resolved =
|
|
326
|
+
const resolved = fsSync.realpathSync(normalized);
|
|
327
327
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
328
328
|
} catch {}
|
|
329
329
|
const parts = normalized.split(path.sep);
|
|
@@ -423,10 +423,10 @@ const workspaceFileCache = /* @__PURE__ */ new Map();
|
|
|
423
423
|
*/
|
|
424
424
|
async function readFileWithCache(filePath) {
|
|
425
425
|
try {
|
|
426
|
-
const mtimeMs = (await fs
|
|
426
|
+
const mtimeMs = (await fs.stat(filePath)).mtimeMs;
|
|
427
427
|
const cached = workspaceFileCache.get(filePath);
|
|
428
428
|
if (cached && cached.mtimeMs === mtimeMs) return cached.content;
|
|
429
|
-
const content = await fs
|
|
429
|
+
const content = await fs.readFile(filePath, "utf-8");
|
|
430
430
|
workspaceFileCache.set(filePath, {
|
|
431
431
|
content,
|
|
432
432
|
mtimeMs
|
|
@@ -453,7 +453,7 @@ async function loadTemplate(name) {
|
|
|
453
453
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
454
454
|
const templatePath = path.join(templateDir, name);
|
|
455
455
|
try {
|
|
456
|
-
return stripFrontMatter(await fs
|
|
456
|
+
return stripFrontMatter(await fs.readFile(templatePath, "utf-8"));
|
|
457
457
|
} catch {
|
|
458
458
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
459
459
|
}
|
|
@@ -480,7 +480,7 @@ const VALID_BOOTSTRAP_NAMES = new Set([
|
|
|
480
480
|
]);
|
|
481
481
|
async function writeFileIfMissing(filePath, content) {
|
|
482
482
|
try {
|
|
483
|
-
await fs
|
|
483
|
+
await fs.writeFile(filePath, content, {
|
|
484
484
|
encoding: "utf-8",
|
|
485
485
|
flag: "wx"
|
|
486
486
|
});
|
|
@@ -492,7 +492,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
492
492
|
}
|
|
493
493
|
async function fileExists(filePath) {
|
|
494
494
|
try {
|
|
495
|
-
await fs
|
|
495
|
+
await fs.access(filePath);
|
|
496
496
|
return true;
|
|
497
497
|
} catch {
|
|
498
498
|
return false;
|
|
@@ -516,27 +516,27 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
516
516
|
}
|
|
517
517
|
async function readWorkspaceOnboardingState(statePath) {
|
|
518
518
|
try {
|
|
519
|
-
return parseWorkspaceOnboardingState(await fs
|
|
519
|
+
return parseWorkspaceOnboardingState(await fs.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
520
520
|
} catch (err) {
|
|
521
521
|
if (err.code !== "ENOENT") throw err;
|
|
522
522
|
return { version: WORKSPACE_STATE_VERSION };
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
526
|
-
await fs
|
|
526
|
+
await fs.mkdir(path.dirname(statePath), { recursive: true });
|
|
527
527
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
528
528
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
529
529
|
try {
|
|
530
|
-
await fs
|
|
531
|
-
await fs
|
|
530
|
+
await fs.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
531
|
+
await fs.rename(tmpPath, statePath);
|
|
532
532
|
} catch (err) {
|
|
533
|
-
await fs
|
|
533
|
+
await fs.unlink(tmpPath).catch(() => {});
|
|
534
534
|
throw err;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
async function hasGitRepo(dir) {
|
|
538
538
|
try {
|
|
539
|
-
await fs
|
|
539
|
+
await fs.stat(path.join(dir, ".git"));
|
|
540
540
|
return true;
|
|
541
541
|
} catch {
|
|
542
542
|
return false;
|
|
@@ -566,7 +566,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
566
566
|
}
|
|
567
567
|
async function ensureAgentWorkspace(params) {
|
|
568
568
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
569
|
-
await fs
|
|
569
|
+
await fs.mkdir(dir, { recursive: true });
|
|
570
570
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
571
571
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
572
572
|
const symicorePath = path.join(dir, DEFAULT_SYMICORE_FILENAME);
|
|
@@ -587,7 +587,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
587
587
|
];
|
|
588
588
|
return (await Promise.all(paths.map(async (p) => {
|
|
589
589
|
try {
|
|
590
|
-
await fs
|
|
590
|
+
await fs.access(p);
|
|
591
591
|
return true;
|
|
592
592
|
} catch {
|
|
593
593
|
return false;
|
|
@@ -620,7 +620,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
620
620
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
621
621
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
622
622
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
623
|
-
const [identityContent, userContent] = await Promise.all([fs
|
|
623
|
+
const [identityContent, userContent] = await Promise.all([fs.readFile(identityPath, "utf-8"), fs.readFile(userPath, "utf-8")]);
|
|
624
624
|
if (identityContent !== identityTemplate || userContent !== userTemplate) markState({ onboardingCompletedAt: nowIso() });
|
|
625
625
|
else {
|
|
626
626
|
if (!await writeFileIfMissing(bootstrapPath, await loadTemplate(DEFAULT_BOOTSTRAP_FILENAME))) bootstrapExists = await fileExists(bootstrapPath);
|
|
@@ -647,7 +647,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
647
647
|
for (const name of candidates) {
|
|
648
648
|
const filePath = path.join(resolvedDir, name);
|
|
649
649
|
try {
|
|
650
|
-
await fs
|
|
650
|
+
await fs.access(filePath);
|
|
651
651
|
entries.push({
|
|
652
652
|
name,
|
|
653
653
|
filePath
|
|
@@ -660,7 +660,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
660
660
|
for (const entry of entries) {
|
|
661
661
|
let key = entry.filePath;
|
|
662
662
|
try {
|
|
663
|
-
key = await fs
|
|
663
|
+
key = await fs.realpath(entry.filePath);
|
|
664
664
|
} catch {}
|
|
665
665
|
if (seen.has(key)) continue;
|
|
666
666
|
seen.add(key);
|
|
@@ -729,11 +729,11 @@ async function loadExtraBootstrapFiles(dir, extraPatterns) {
|
|
|
729
729
|
const resolvedDir = resolveUserPath(dir);
|
|
730
730
|
let realResolvedDir = resolvedDir;
|
|
731
731
|
try {
|
|
732
|
-
realResolvedDir = await fs
|
|
732
|
+
realResolvedDir = await fs.realpath(resolvedDir);
|
|
733
733
|
} catch {}
|
|
734
734
|
const resolvedPaths = /* @__PURE__ */ new Set();
|
|
735
735
|
for (const pattern of extraPatterns) if (pattern.includes("*") || pattern.includes("?") || pattern.includes("{")) try {
|
|
736
|
-
const matches = fs
|
|
736
|
+
const matches = fs.glob(pattern, { cwd: resolvedDir });
|
|
737
737
|
for await (const m of matches) resolvedPaths.add(m);
|
|
738
738
|
} catch {
|
|
739
739
|
resolvedPaths.add(pattern);
|
|
@@ -744,7 +744,7 @@ async function loadExtraBootstrapFiles(dir, extraPatterns) {
|
|
|
744
744
|
const filePath = path.resolve(resolvedDir, relPath);
|
|
745
745
|
if (!filePath.startsWith(resolvedDir + path.sep) && filePath !== resolvedDir) continue;
|
|
746
746
|
try {
|
|
747
|
-
const realFilePath = await fs
|
|
747
|
+
const realFilePath = await fs.realpath(filePath);
|
|
748
748
|
if (!realFilePath.startsWith(realResolvedDir + path.sep) && realFilePath !== realResolvedDir) continue;
|
|
749
749
|
const baseName = path.basename(relPath);
|
|
750
750
|
if (!VALID_BOOTSTRAP_NAMES.has(baseName)) continue;
|