From 920a1247db736c60578b1448f53390c1c0f0607d Mon Sep 17 00:00:00 2001 From: random block Date: Tue, 18 Aug 2026 18:09:43 +0100 Subject: [PATCH] docs(indexer): correct stale vendor-import comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit verifyBundleCore's deep vendor-file import isn't blocked by a missing subpath export (dacs-sdk#14, closed) — it's exported from the agent barrel today, but that barrel also drags in createAgent/Agent.js and the substrate/bridge dependency chain, which breaks the production webpack build (confirmed: rubic-sdk -> cetus-sui-clmm-sdk -> a broken @mysten/bcs import). Document the real constraint instead. sessionAnchorName still isn't exported from any public barrel despite #14 listing it in scope and being closed as completed — filed dacs-sdk#178 to track it specifically and updated the comment to point there. --- .../dacs-directory/src/catalog/indexer.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/reference-implementations/dacs-directory/src/catalog/indexer.ts b/reference-implementations/dacs-directory/src/catalog/indexer.ts index d3995a4..04fbd82 100644 --- a/reference-implementations/dacs-directory/src/catalog/indexer.ts +++ b/reference-implementations/dacs-directory/src/catalog/indexer.ts @@ -18,10 +18,14 @@ import { ed25519Verify, publicKeyFromRaw } from "@kynesyslabs/dacs/crypto"; import { contentHash } from "@kynesyslabs/dacs/canonical"; import { parseCciRecord } from "@kynesyslabs/dacs/identity"; -// verifyBundleCore has no pure subpath export (dacs-sdk#14) — vendor path. +// verifyBundleCore is exported from the SDK's agent barrel, but that barrel +// also re-exports createAgent/Agent.js, which pulls in the substrate/bridge +// dependency chain (rubic-sdk → cetus-sui-clmm-sdk → a broken @mysten/bcs +// import) and breaks the production webpack build. Reach into the leaf +// module directly to keep this file free of the substrate client. import { verifyBundleCore } from "../../vendor/dacs-sdk/dist/agent/verifyBundleCore.js"; // The SDK doesn't export sessionAnchorName from its public barrel -// (dacs-sdk#14) — reach into the vendored build. +// (dacs-sdk#178, follow-up to #14) — reach into the vendored build. import { sessionAnchorName } from "../../vendor/dacs-sdk/dist/agent/runSessionCore.js"; import { deriveAnchorAddress, readAnchor, readAnchorRecord } from "./chain.js"; import { gcrGetIdentities } from "./gcr.js";