wednesdayai 0.5.0 → 0.5.1-dev.2
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/{agent-scope-DaYoimRo.js → agent-scope-VTjBKG-0.js} +3 -3
- package/dist/{agent-turn-runner-B9ZpICYG.js → agent-turn-runner-CZilDjoa.js} +4 -4
- package/dist/{agent-turn-runner-D17nO0vK.js → agent-turn-runner-DGW1XTSZ.js} +6 -6
- package/dist/{api-key-rotation-CFBqEjJo.js → api-key-rotation-C7Uer3wX.js} +2 -2
- package/dist/{audio-preflight-IAvClu-y.js → audio-preflight-5kfGz36M.js} +29 -29
- package/dist/{audio-preflight-0IORdIpv.js → audio-preflight-CyoX7lif.js} +5 -5
- package/dist/{audio-transcription-runner-XF9vtq2K.js → audio-transcription-runner-6owLZL6w.js} +1 -1
- package/dist/{audio-transcription-runner-DO37G4ea.js → audio-transcription-runner-CBRRwnRT.js} +26 -26
- package/dist/build-info.json +4 -4
- package/dist/bundled/boot-md/handler.js +60 -60
- package/dist/bundled/bootstrap-extra-files/handler.js +6 -6
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-journal/handler.js +60 -60
- package/dist/bundled/session-memory/handler.js +60 -60
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{channel-activity-osbmoIZV.js → channel-activity-CgARXGuN.js} +3 -3
- package/dist/{chat-content-D9t717tu.js → chat-content-CjKyPXfO.js} +34 -34
- package/dist/{chat-content-CF94bdqd.js → chat-content-Dp_TK_pI.js} +3 -3
- package/dist/{chrome-Bz--jRWP.js → chrome-C9hAxf3E.js} +5 -5
- package/dist/{chrome-Cb_eHwXe.js → chrome-DKYaSdXE.js} +23 -23
- package/dist/{chunk-BGAIfwvG.js → chunk-CmQRdRrT.js} +3 -3
- package/dist/{command-queue-Blj57uZh.js → command-queue-DiOM6aJb.js} +1 -1
- package/dist/{command-queue-CHDYFklA.js → command-queue-arMRWvX5.js} +1 -1
- package/dist/{commands-registry-CHyanyMK.js → commands-registry-Bpqy7T_m.js} +2 -2
- package/dist/{deliver-ItqNbpAj.js → deliver-DGxrgy4y.js} +1 -1
- package/dist/{deliver-B1z53DPr.js → deliver-hdhBsluU.js} +29 -29
- package/dist/{diagnostic-DHSjiKQ1.js → diagnostic-DWnW43D8.js} +5 -5
- package/dist/{diagnostic-BsxoGiFO.js → diagnostic-f8CKHXWb.js} +1 -1
- package/dist/{errors-CCOle-CH.js → errors-h4QgDEJU.js} +1 -1
- package/dist/extensionAPI.js +12 -12
- package/dist/{fetch-CJta9EH3.js → fetch-BkWHUyJz.js} +8 -8
- package/dist/{fetch-guard-CnaMeBGo.js → fetch-guard-BUJnD_0T.js} +3 -3
- package/dist/{frontmatter-DlRD-Jnx.js → frontmatter-IfoWyoLV.js} +3 -3
- package/dist/{fs-safe-DpdLT3fB.js → fs-safe-joAzTKB9.js} +26 -26
- package/dist/{image-ops-YU6OONEl.js → image-ops-d6AhYSNh.js} +1 -1
- package/dist/{ir-BdHn6F6Y.js → ir-B0cUtyev.js} +5 -5
- package/dist/{legacy-names-me5dD9PP.js → legacy-names-Dh4RlQMQ.js} +1 -1
- package/dist/llm-slug-generator.js +60 -60
- package/dist/{logger-BrQxLcMY.js → logger-vVASmiVr.js} +1 -1
- package/dist/{manager-xwMosvyt.js → manager-SEkHJEk4.js} +18 -18
- package/dist/{markdown-tables-BVgH365V.js → markdown-tables-pw9wiTpN.js} +2 -2
- package/dist/{model-selection-CYypdqr8.js → model-selection-BTxcwzNF.js} +83 -83
- package/dist/{models-config-D7vsT5RL.js → models-config-CrYtS7l_.js} +2 -2
- package/dist/{outbound-attachment-C_QOYkXN.js → outbound-attachment-ecpn937X.js} +2 -2
- package/dist/{outbound-message-hooks-BYTh0d2Q.js → outbound-message-hooks-BA0MXlRL.js} +5 -5
- package/dist/{path-alias-guards-BdGLz9X0.js → path-alias-guards-BzCkdlOk.js} +1 -1
- package/dist/{pi-embedded-BtqsPDuE.js → pi-embedded-C3a3mJgO.js} +272 -272
- package/dist/{pi-embedded-D6nR71l7.js → pi-embedded-cc9FvjV6.js} +28 -28
- package/dist/{pi-embedded-utils-C-iiawNt.js → pi-embedded-utils-Bu-pLHgt.js} +3 -3
- package/dist/{pi-embedded-utils-Bb82klSc.js → pi-embedded-utils-DKfjTsdf.js} +1 -1
- package/dist/{pi-model-discovery-fTAJjO1L.js → pi-model-discovery-BHTeo1nC.js} +7 -7
- package/dist/plugin-sdk/{agent-turn-execute-R1HDfkzv.js → agent-turn-execute-5UY7VtoM.js} +12 -12
- package/dist/plugin-sdk/{agent-turn-runner-BJKm0xiy.js → agent-turn-runner-Cn8kBLTA.js} +4 -4
- package/dist/plugin-sdk/{audio-preflight-BB1yTgKL.js → audio-preflight-DmcETAqz.js} +5 -5
- package/dist/plugin-sdk/{audio-transcription-runner-reKaz0zD.js → audio-transcription-runner-CmY7S8fK.js} +1 -1
- package/dist/plugin-sdk/{chrome-WLpY6l2E.js → chrome-6h5M_drY.js} +8 -8
- package/dist/plugin-sdk/{command-queue-CAp1zb7F.js → command-queue-DIuk1L2E.js} +1 -1
- package/dist/plugin-sdk/{deliver-DlvbM-qn.js → deliver-C9GFYFwr.js} +1 -1
- package/dist/plugin-sdk/{deliver-BmT0wV-k.js → deliver-DPfI8dVE.js} +3 -3
- package/dist/plugin-sdk/{diagnostic-RXIEvDQf.js → diagnostic-DRY8-0JL.js} +1 -1
- package/dist/plugin-sdk/{pi-embedded-helpers-21OqohWy.js → pi-embedded-helpers-D5vYvfne.js} +3 -3
- package/dist/plugin-sdk/{pi-embedded-utils-BW2p1kKO.js → pi-embedded-utils-CGDgVtzV.js} +1 -1
- package/dist/plugin-sdk/{provider-dispatcher-rwnQ0CEc.js → provider-dispatcher-DryAXJsi.js} +12 -12
- package/dist/plugin-sdk/{provider-image-3obRwbTZ.js → provider-image-CVcMld07.js} +4 -4
- package/dist/plugin-sdk/{provider-image-B68yYRAm.js → provider-image-Df0uD0Oe.js} +1 -1
- package/dist/plugin-sdk/{pw-ai-CSRaN1ac.js → pw-ai-DMALp-EA.js} +1 -1
- package/dist/plugin-sdk/{runs-5hM5yurH.js → runs-BASRXkuM.js} +3 -3
- package/dist/plugin-sdk/{runs-DvLuGamE.js → runs-yMaO6qGS.js} +5 -5
- package/dist/plugin-sdk/{send-Zxl5JOn5.js → send-BqbtJqgu.js} +1 -1
- package/dist/plugin-sdk/{send-CzwcnXPR.js → send-CmZ4gvBw.js} +2 -2
- package/dist/plugin-sdk/{subagent-registry-Y727Of1U.js → subagent-registry-GgT4DYT1.js} +12 -12
- package/dist/plugin-sdk/testing.js +12 -12
- package/dist/plugin-sdk/{tools-joKDe6rw.js → tools-Bigk4qN-.js} +32 -32
- package/dist/{provider-image-Do7qMZhI.js → provider-image-BZgdxPq1.js} +1 -1
- package/dist/{provider-image-DEcMOAkN.js → provider-image-BoLaTMGA.js} +6 -6
- package/dist/{proxy-DaAwoyLn.js → proxy-CPi-EHQf.js} +1 -1
- package/dist/{proxy-env-DbK61KfJ.js → proxy-env-D-BYfN9f.js} +1 -1
- package/dist/{proxy-fetch-DfICXirF.js → proxy-fetch-SAeVJOzX.js} +1 -1
- package/dist/{pw-ai-BPTONp50.js → pw-ai-BX6tMIuu.js} +14 -14
- package/dist/{pw-ai-vX880pfn.js → pw-ai-ZhKSFpfJ.js} +1 -1
- package/dist/{qmd-manager-BwE9yS9R.js → qmd-manager-D8ak7kq1.js} +12 -12
- package/dist/{query-expansion-D98bVcfg.js → query-expansion-Cfj6kuQN.js} +13 -13
- package/dist/{recorder-DsunFllM.js → recorder-9g0HAfTV.js} +2 -2
- package/dist/{redact-CO0RqVMz.js → redact-CteA3IBL.js} +1 -1
- package/dist/{replies-pB9HCyld.js → replies-BbIj7g9M.js} +5 -5
- package/dist/{reply-directives-mulrKdb0.js → reply-directives-DBlsFghT.js} +2 -2
- package/dist/{reply-prefix-JmOFNTVH.js → reply-prefix-B4-hQLj2.js} +1 -1
- package/dist/{resolve-route-5h1UlQhK.js → resolve-route-BVQQmyE-.js} +5 -5
- package/dist/{runs-DEhpITiC.js → runs-Dar4NRlC.js} +3 -3
- package/dist/{runs-CYEm5TJX.js → runs-n_IyEnjI.js} +9 -9
- package/dist/{send-Bcmcrt2M.js → send-BaBji8OV.js} +6 -6
- package/dist/{send-CaxLshmb.js → send-Blzch_-J.js} +6 -6
- package/dist/{send-i_w4A0N2.js → send-D3AqPouq.js} +7 -7
- package/dist/{send-LdGFidPd.js → send-D4CyRJfb.js} +8 -8
- package/dist/{send-mGol3d2c.js → send-Owye3CdT.js} +27 -27
- package/dist/{send-C4CkAZXl.js → send-tEYUiTsj.js} +1 -1
- package/dist/{session-meta-CmQ6a7H5.js → session-meta-n_Hhzi0B.js} +1 -1
- package/dist/{sessions-ZdGPevHF.js → sessions-C8YjZYd5.js} +5 -5
- package/dist/{skill-commands-XRDXSro6.js → skill-commands-DyocWgx1.js} +8 -8
- package/dist/{skills-CXVcffYI.js → skills-BNWKnQc8.js} +21 -21
- package/dist/{store-CYs-lya8.js → store-BkbDrlDX.js} +7 -7
- package/dist/{subsystem-Bv4j-uIg.js → subsystem-D_zHSy02.js} +67 -67
- package/dist/{tables-BbGV4Ys1.js → tables-B_gp2rXG.js} +1 -1
- package/dist/{tokens-BdntrBR4.js → tokens-B3OPeQh5.js} +1 -1
- package/dist/{tool-loop-detection-CdZfb_CR.js → tool-loop-detection-ST5jhih3.js} +2 -2
- package/dist/{user-run-recording-Dr98Mjnd.js → user-run-recording-CMwTVvoc.js} +2 -2
- package/dist/{workspace-yHh5Lf7Z.js → workspace-CkXKTYV4.js} +27 -27
- package/extensions/acpx/package.json +1 -1
- package/extensions/anthropic/package.json +1 -1
- package/extensions/bifrost/package.json +1 -1
- package/extensions/bluebubbles/package.json +1 -1
- package/extensions/copilot-proxy/package.json +1 -1
- package/extensions/deepgram/package.json +1 -1
- package/extensions/deepinfra/package.json +1 -1
- package/extensions/diagnostics-otel/package.json +1 -1
- package/extensions/diffs/package.json +1 -1
- package/extensions/discord/package.json +1 -1
- package/extensions/dream-cycle/package.json +1 -1
- package/extensions/elevenlabs/package.json +1 -1
- package/extensions/feishu/package.json +1 -1
- package/extensions/gemini-search/package.json +1 -1
- package/extensions/google/package.json +1 -1
- package/extensions/google-gemini-cli-auth/package.json +1 -1
- package/extensions/googlechat/package.json +1 -1
- package/extensions/grok-search/package.json +1 -1
- package/extensions/groq/package.json +1 -1
- package/extensions/imessage/package.json +1 -1
- package/extensions/irc/package.json +1 -1
- package/extensions/kimi-search/package.json +1 -1
- package/extensions/learning-core/package.json +1 -1
- package/extensions/line/package.json +1 -1
- package/extensions/llm-task/package.json +1 -1
- package/extensions/lobster/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/package.json +1 -1
- package/extensions/minimax-portal-auth/package.json +1 -1
- package/extensions/mistral/package.json +1 -1
- package/extensions/moonshot/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/openai/package.json +1 -1
- package/extensions/openai-realtime/package.json +1 -1
- package/extensions/openrouter/package.json +1 -1
- package/extensions/perplexity-search/package.json +1 -1
- package/extensions/searxng-search/package.json +1 -1
- package/extensions/signal/package.json +1 -1
- package/extensions/slack/package.json +1 -1
- package/extensions/synology-chat/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/zai/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
- package/dist/github-copilot-token-DYYKoDuV.js +0 -106
- package/dist/paths-BIDPYPVC.js +0 -233
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as resolveRequiredHomeDir } from "./paths-
|
|
2
|
-
import { P as openBoundaryFile, at as pathExists, h as shouldLogVerbose, j as isBlockedObjectKey, st as resolveUserPath, u as danger } from "./subsystem-
|
|
3
|
-
import { n as logError, t as logDebug } from "./logger-
|
|
1
|
+
import { f as resolveRequiredHomeDir } from "./paths-B_gs59ga.js";
|
|
2
|
+
import { P as openBoundaryFile, at as pathExists, h as shouldLogVerbose, j as isBlockedObjectKey, st as resolveUserPath, u as danger } from "./subsystem-D_zHSy02.js";
|
|
3
|
+
import { n as logError, t as logDebug } from "./logger-vVASmiVr.js";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import
|
|
5
|
+
import syncFs from "node:fs";
|
|
6
6
|
import os from "node:os";
|
|
7
|
-
import fs
|
|
7
|
+
import fs from "node:fs/promises";
|
|
8
8
|
import { promisify } from "node:util";
|
|
9
9
|
import { execFile, spawn } from "node:child_process";
|
|
10
10
|
import process$1 from "node:process";
|
|
@@ -460,7 +460,7 @@ function resolveNpmArgvForWindows(argv) {
|
|
|
460
460
|
if (!cliName) return null;
|
|
461
461
|
const nodeDir = path.dirname(process$1.execPath);
|
|
462
462
|
const cliPath = path.join(nodeDir, "node_modules", "npm", "bin", cliName);
|
|
463
|
-
if (!
|
|
463
|
+
if (!syncFs.existsSync(cliPath)) return null;
|
|
464
464
|
return [
|
|
465
465
|
process$1.execPath,
|
|
466
466
|
cliPath,
|
|
@@ -656,7 +656,7 @@ function isCorePackageName(name) {
|
|
|
656
656
|
}
|
|
657
657
|
async function readPackageName(dir) {
|
|
658
658
|
try {
|
|
659
|
-
const raw = await fs
|
|
659
|
+
const raw = await fs.readFile(path.join(dir, "package.json"), "utf-8");
|
|
660
660
|
const parsed = JSON.parse(raw);
|
|
661
661
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
662
662
|
} catch {
|
|
@@ -665,7 +665,7 @@ async function readPackageName(dir) {
|
|
|
665
665
|
}
|
|
666
666
|
function readPackageNameSync(dir) {
|
|
667
667
|
try {
|
|
668
|
-
const raw =
|
|
668
|
+
const raw = syncFs.readFileSync(path.join(dir, "package.json"), "utf-8");
|
|
669
669
|
const parsed = JSON.parse(raw);
|
|
670
670
|
return typeof parsed.name === "string" ? parsed.name : null;
|
|
671
671
|
} catch {
|
|
@@ -693,7 +693,7 @@ function candidateDirsFromArgv1(argv1) {
|
|
|
693
693
|
const normalized = path.resolve(argv1);
|
|
694
694
|
const candidates = [path.dirname(normalized)];
|
|
695
695
|
try {
|
|
696
|
-
const resolved =
|
|
696
|
+
const resolved = syncFs.realpathSync(normalized);
|
|
697
697
|
if (resolved !== normalized) candidates.push(path.dirname(resolved));
|
|
698
698
|
} catch {}
|
|
699
699
|
const parts = normalized.split(path.sep);
|
|
@@ -793,7 +793,7 @@ function workspaceFileIdentity(stat, canonicalPath) {
|
|
|
793
793
|
}
|
|
794
794
|
function closeFileQuietlySync(fd) {
|
|
795
795
|
try {
|
|
796
|
-
|
|
796
|
+
syncFs.closeSync(fd);
|
|
797
797
|
} catch {}
|
|
798
798
|
}
|
|
799
799
|
async function readWorkspaceFileWithGuards(params) {
|
|
@@ -818,7 +818,7 @@ async function readWorkspaceFileWithGuards(params) {
|
|
|
818
818
|
};
|
|
819
819
|
}
|
|
820
820
|
try {
|
|
821
|
-
const content =
|
|
821
|
+
const content = syncFs.readFileSync(opened.fd, "utf-8");
|
|
822
822
|
workspaceFileCache.set(params.filePath, {
|
|
823
823
|
content,
|
|
824
824
|
identity
|
|
@@ -869,7 +869,7 @@ async function loadTemplate(name) {
|
|
|
869
869
|
const templateDir = await resolveWorkspaceTemplateDir();
|
|
870
870
|
const templatePath = path.join(templateDir, name);
|
|
871
871
|
try {
|
|
872
|
-
return stripFrontMatter(await fs
|
|
872
|
+
return stripFrontMatter(await fs.readFile(templatePath, "utf-8"));
|
|
873
873
|
} catch {
|
|
874
874
|
throw new Error(`Missing workspace template: ${name} (${templatePath}). Ensure docs/reference/templates are packaged.`);
|
|
875
875
|
}
|
|
@@ -909,7 +909,7 @@ const VALID_BOOTSTRAP_NAMES = new Set([
|
|
|
909
909
|
]);
|
|
910
910
|
async function writeFileIfMissing(filePath, content) {
|
|
911
911
|
try {
|
|
912
|
-
await fs
|
|
912
|
+
await fs.writeFile(filePath, content, {
|
|
913
913
|
encoding: "utf-8",
|
|
914
914
|
flag: "wx"
|
|
915
915
|
});
|
|
@@ -921,7 +921,7 @@ async function writeFileIfMissing(filePath, content) {
|
|
|
921
921
|
}
|
|
922
922
|
async function fileExists(filePath) {
|
|
923
923
|
try {
|
|
924
|
-
await fs
|
|
924
|
+
await fs.access(filePath);
|
|
925
925
|
return true;
|
|
926
926
|
} catch {
|
|
927
927
|
return false;
|
|
@@ -945,27 +945,27 @@ function parseWorkspaceOnboardingState(raw) {
|
|
|
945
945
|
}
|
|
946
946
|
async function readWorkspaceOnboardingState(statePath) {
|
|
947
947
|
try {
|
|
948
|
-
return parseWorkspaceOnboardingState(await fs
|
|
948
|
+
return parseWorkspaceOnboardingState(await fs.readFile(statePath, "utf-8")) ?? { version: WORKSPACE_STATE_VERSION };
|
|
949
949
|
} catch (err) {
|
|
950
950
|
if (err.code !== "ENOENT") throw err;
|
|
951
951
|
return { version: WORKSPACE_STATE_VERSION };
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
async function writeWorkspaceOnboardingState(statePath, state) {
|
|
955
|
-
await fs
|
|
955
|
+
await fs.mkdir(path.dirname(statePath), { recursive: true });
|
|
956
956
|
const payload = `${JSON.stringify(state, null, 2)}\n`;
|
|
957
957
|
const tmpPath = `${statePath}.tmp-${process.pid}-${Date.now().toString(36)}`;
|
|
958
958
|
try {
|
|
959
|
-
await fs
|
|
960
|
-
await fs
|
|
959
|
+
await fs.writeFile(tmpPath, payload, { encoding: "utf-8" });
|
|
960
|
+
await fs.rename(tmpPath, statePath);
|
|
961
961
|
} catch (err) {
|
|
962
|
-
await fs
|
|
962
|
+
await fs.unlink(tmpPath).catch(() => {});
|
|
963
963
|
throw err;
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
async function hasGitRepo(dir) {
|
|
967
967
|
try {
|
|
968
|
-
await fs
|
|
968
|
+
await fs.stat(path.join(dir, ".git"));
|
|
969
969
|
return true;
|
|
970
970
|
} catch {
|
|
971
971
|
return false;
|
|
@@ -995,7 +995,7 @@ async function ensureGitRepo(dir, isBrandNewWorkspace) {
|
|
|
995
995
|
}
|
|
996
996
|
async function ensureAgentWorkspace(params) {
|
|
997
997
|
const dir = resolveUserPath(params?.dir?.trim() ? params.dir.trim() : DEFAULT_AGENT_WORKSPACE_DIR);
|
|
998
|
-
await fs
|
|
998
|
+
await fs.mkdir(dir, { recursive: true });
|
|
999
999
|
if (!params?.ensureBootstrapFiles) return { dir };
|
|
1000
1000
|
const agentsPath = path.join(dir, DEFAULT_AGENTS_FILENAME);
|
|
1001
1001
|
const soulPath = path.join(dir, DEFAULT_SOUL_FILENAME);
|
|
@@ -1022,7 +1022,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
1022
1022
|
const paths = [...templatePaths, ...userContentPaths];
|
|
1023
1023
|
return (await Promise.all(paths.map(async (p) => {
|
|
1024
1024
|
try {
|
|
1025
|
-
await fs
|
|
1025
|
+
await fs.access(p);
|
|
1026
1026
|
return true;
|
|
1027
1027
|
} catch {
|
|
1028
1028
|
return false;
|
|
@@ -1055,7 +1055,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
1055
1055
|
if (!state.bootstrapSeededAt && bootstrapExists) markState({ bootstrapSeededAt: nowIso() });
|
|
1056
1056
|
if (!state.onboardingCompletedAt && state.bootstrapSeededAt && !bootstrapExists) markState({ onboardingCompletedAt: nowIso() });
|
|
1057
1057
|
if (!state.bootstrapSeededAt && !state.onboardingCompletedAt && !bootstrapExists) {
|
|
1058
|
-
const [identityContent, userContent] = await Promise.all([fs
|
|
1058
|
+
const [identityContent, userContent] = await Promise.all([fs.readFile(identityPath, "utf-8"), fs.readFile(userPath, "utf-8")]);
|
|
1059
1059
|
const hasUserContent = await (async () => {
|
|
1060
1060
|
const indicators = [
|
|
1061
1061
|
path.join(dir, "memory"),
|
|
@@ -1063,7 +1063,7 @@ async function ensureAgentWorkspace(params) {
|
|
|
1063
1063
|
path.join(dir, ".git")
|
|
1064
1064
|
];
|
|
1065
1065
|
for (const indicator of indicators) try {
|
|
1066
|
-
await fs
|
|
1066
|
+
await fs.access(indicator);
|
|
1067
1067
|
return true;
|
|
1068
1068
|
} catch {}
|
|
1069
1069
|
return false;
|
|
@@ -1094,7 +1094,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
1094
1094
|
for (const name of candidates) {
|
|
1095
1095
|
const filePath = path.join(resolvedDir, name);
|
|
1096
1096
|
try {
|
|
1097
|
-
await fs
|
|
1097
|
+
await fs.access(filePath);
|
|
1098
1098
|
entries.push({
|
|
1099
1099
|
name,
|
|
1100
1100
|
filePath
|
|
@@ -1107,7 +1107,7 @@ async function resolveMemoryBootstrapEntries(resolvedDir) {
|
|
|
1107
1107
|
for (const entry of entries) {
|
|
1108
1108
|
let key = entry.filePath;
|
|
1109
1109
|
try {
|
|
1110
|
-
key = await fs
|
|
1110
|
+
key = await fs.realpath(entry.filePath);
|
|
1111
1111
|
} catch {}
|
|
1112
1112
|
if (seen.has(key)) continue;
|
|
1113
1113
|
seen.add(key);
|
|
@@ -1280,7 +1280,7 @@ async function loadExtraBootstrapFilesWithDiagnostics(dir, extraPatterns) {
|
|
|
1280
1280
|
const resolvedDir = resolveUserPath(dir);
|
|
1281
1281
|
const resolvedPaths = /* @__PURE__ */ new Set();
|
|
1282
1282
|
for (const pattern of extraPatterns) if (pattern.includes("*") || pattern.includes("?") || pattern.includes("{")) try {
|
|
1283
|
-
const matches = fs
|
|
1283
|
+
const matches = fs.glob(pattern, { cwd: resolvedDir });
|
|
1284
1284
|
for await (const m of matches) resolvedPaths.add(m);
|
|
1285
1285
|
} catch {
|
|
1286
1286
|
resolvedPaths.add(pattern);
|