@openclaw/feishu 2026.10.1-beta.2 → 2026.10.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.
Files changed (85) hide show
  1. package/dist/.setup/{channel-CX62T71S.mjs → channel-DZakdZ3r.mjs} +7 -7
  2. package/dist/.setup/{channel.runtime-COiaq-Rv.mjs → channel.runtime-rXFuQXLL.mjs} +6 -6
  3. package/dist/.setup/{chat-BdyvImsY.mjs → chat-mTBvMMvx.mjs} +2 -2
  4. package/dist/.setup/{client-BsBVWJzN.mjs → client-CcxmEkoy.mjs} +1 -1
  5. package/dist/.setup/{doctor-contract-B1B9ogdd.mjs → doctor-contract-DyOo8NvC.mjs} +15 -5
  6. package/dist/.setup/{monitor-7DvwUs4Y.mjs → monitor-CXaFHMmi.mjs} +3 -3
  7. package/dist/.setup/{monitor.account-7xVu7XWY.mjs → monitor.account-cJ8gavqv.mjs} +27 -15
  8. package/dist/.setup/{probe-B9o7iey6.mjs → probe-BjSykXB8.mjs} +2 -2
  9. package/dist/.setup/{reply-delivery-result-Bt-BWBEA.mjs → reply-delivery-result-laBNOmBu.mjs} +2 -2
  10. package/dist/.setup/{setup-api-DmzX9S01.mjs → setup-api-fZcYXGxe.mjs} +1 -1
  11. package/dist/.setup/{subagent-hooks-CUXg0pC-.mjs → subagent-hooks-C8Z_x3KJ.mjs} +1 -1
  12. package/dist/api.js +5 -5
  13. package/dist/channel-plugin-api.js +1 -1
  14. package/dist/doctor-contract-api.js +2 -2
  15. package/dist/setup-api.js +1 -1
  16. package/dist/setup-entry.js +1 -1
  17. package/dist/subagent-hooks-api.js +1 -1
  18. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +56 -0
  19. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +1 -0
  20. package/node_modules/@openclaw/fs-safe/dist/advanced.js +1 -0
  21. package/node_modules/@openclaw/fs-safe/dist/archive-entry.js +7 -3
  22. package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.d.ts +35 -0
  23. package/node_modules/@openclaw/fs-safe/dist/copy-root-file-sync.js +218 -0
  24. package/node_modules/@openclaw/fs-safe/dist/create.d.ts +1 -0
  25. package/node_modules/@openclaw/fs-safe/dist/create.js +4 -1
  26. package/node_modules/@openclaw/fs-safe/dist/entry-publication.js +3 -1
  27. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +2 -0
  28. package/node_modules/@openclaw/fs-safe/dist/errors.js +5 -0
  29. package/node_modules/@openclaw/fs-safe/dist/index.d.ts +1 -1
  30. package/node_modules/@openclaw/fs-safe/dist/index.js +1 -1
  31. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +3 -0
  32. package/node_modules/@openclaw/fs-safe/dist/native-move-fallback.d.ts +3 -0
  33. package/node_modules/@openclaw/fs-safe/dist/native-move-fallback.js +54 -0
  34. package/node_modules/@openclaw/fs-safe/dist/native-noreplace.d.ts +8 -0
  35. package/node_modules/@openclaw/fs-safe/dist/native-noreplace.js +55 -0
  36. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts +1 -1
  37. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +12 -2
  38. package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +3 -1
  39. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +1 -1
  40. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +48 -5
  41. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.d.ts +2 -0
  42. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +17 -0
  43. package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +1 -1
  44. package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts +5 -0
  45. package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.js +1 -0
  46. package/node_modules/@openclaw/fs-safe/dist/publish-file-native.d.ts +4 -0
  47. package/node_modules/@openclaw/fs-safe/dist/publish-file-native.js +35 -0
  48. package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts +2 -0
  49. package/node_modules/@openclaw/fs-safe/dist/publish-file.js +8 -2
  50. package/node_modules/@openclaw/fs-safe/dist/replace-directory.js +6 -5
  51. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +25 -4
  52. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +3 -3
  53. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +4 -2
  54. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +13 -17
  55. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +18 -3
  56. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +4 -1
  57. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts +1 -0
  58. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.js +27 -4
  59. package/node_modules/@openclaw/fs-safe/docs/advanced.md +1 -0
  60. package/node_modules/@openclaw/fs-safe/docs/archive.md +2 -1
  61. package/node_modules/@openclaw/fs-safe/docs/copy.md +61 -1
  62. package/node_modules/@openclaw/fs-safe/docs/durability.md +50 -5
  63. package/node_modules/@openclaw/fs-safe/docs/errors.md +37 -0
  64. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +5 -3
  65. package/node_modules/@openclaw/fs-safe/docs/native.md +39 -6
  66. package/node_modules/@openclaw/fs-safe/docs/public-api.md +3 -1
  67. package/node_modules/@openclaw/fs-safe/docs/staged-file.md +10 -3
  68. package/node_modules/@openclaw/fs-safe/docs/watch.md +3 -1
  69. package/node_modules/@openclaw/fs-safe/docs/writing.md +40 -11
  70. package/node_modules/@openclaw/fs-safe/package.json +11 -11
  71. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  72. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  73. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  74. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  75. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  76. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  77. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  78. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  79. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  80. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  81. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  82. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  83. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  84. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  85. package/package.json +5 -5
@@ -1,8 +1,8 @@
1
- import { _ as __reExport, a as DEFAULT_FEISHU_WEBHOOK_PATH, d as listFeishuAccountIds, f as mergeFeishuAccountConfig, g as __exportAll, h as resolveFeishuRuntimeAccount, i as FeishuChannelConfigSchema, l as inspectFeishuCredentials, m as resolveFeishuAccount, n as legacyConfigRules, o as normalizeFeishuWebhookPath, p as resolveDefaultFeishuAccountId, r as normalizeCompatibilityConfig, s as normalizeFeishuExternalKey, u as listEnabledFeishuAccounts } from "./doctor-contract-B1B9ogdd.mjs";
1
+ import { _ as __exportAll, a as FeishuChannelConfigSchema, c as normalizeFeishuExternalKey, d as listEnabledFeishuAccounts, f as listFeishuAccountIds, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, m as resolveDefaultFeishuAccountId, n as legacyConfigRules, o as DEFAULT_FEISHU_WEBHOOK_PATH, p as mergeFeishuAccountConfig, r as normalizeCompatibilityConfig, s as normalizeFeishuWebhookPath, u as inspectFeishuCredentials, v as __reExport } from "./doctor-contract-DyOo8NvC.mjs";
2
2
  import { a as parseFeishuTargetId, c as looksLikeFeishuId, i as parseFeishuDirectConversationId, l as normalizeFeishuTarget, n as buildFeishuModelOverrideParentCandidates, o as resolveConfiguredFeishuGroupSessionScope, r as parseFeishuConversationId, t as buildFeishuConversationId, u as resolveReceiveIdType } from "./conversation-id-C1ofUfU8.mjs";
3
- import { $ as cleanupAmbientCommentTypingReaction, A as sendMessageFeishu, Ct as readFeishuChatInfoWithAuthorization, G as deliverCommentThreadText, H as buildFeishuMediaFallbackText, M as toFeishuMessageSendResult, Nt as normalizeFeishuChatType, Ot as resolveFeishuGroupConfig, Pt as resolveFeishuChatType, S as sendMediaFeishu, St as isFeishuGroupReadEnabled, T as chunkFeishuCardMarkdown, W as resolveFeishuIdentityHeaderTitle, _ as renderFeishuPresentationPayload, _t as assertFeishuChatReadAllowed, b as withinCardTableLimit, bt as canEnumerateAllFeishuPeers, c as buildFeishuPayloadCard, ct as parseFeishuCommentTarget, d as consumeFeishuPresentationFallbackMarker, dt as chunkFeishuMarkdown, f as feishuCardWithinTableLimit, ft as chunkFeishuPostMarkdown, g as renderFeishuPresentationFallbackText, h as readNativeFeishuCard, ht as shouldUseFeishuCard, j as sendStructuredCardFeishu, jt as resolveFeishuGroupToolPolicy, k as sendCardFeishu, l as buildFeishuPresentationCard, lt as readNativeFeishuCardJson, m as markRenderedFeishuCard, n as createFeishuReplyDeliveryResult, o as FEISHU_PRESENTATION_CAPABILITIES, p as isFeishuCardWithinEnvelope, pt as materializeFeishuPostMarkdownSoftBreaks, s as assertFeishuCardWithinEnvelope, t as createFeishuPartialReplyDeliveryError, u as buildFeishuPresentationFallback, vt as authorizeFeishuChatMemberRead, w as shouldSuppressFeishuTextForVoiceMedia, wt as resolveFeishuChatReadPreliminaryAuthorization, xt as isFeishuGroupReadAllowed, y as resolveFeishuRichReply, yt as canEnumerateAllFeishuGroups } from "./reply-delivery-result-Bt-BWBEA.mjs";
3
+ import { $ as cleanupAmbientCommentTypingReaction, A as sendMessageFeishu, Ct as readFeishuChatInfoWithAuthorization, G as deliverCommentThreadText, H as buildFeishuMediaFallbackText, M as toFeishuMessageSendResult, Nt as normalizeFeishuChatType, Ot as resolveFeishuGroupConfig, Pt as resolveFeishuChatType, S as sendMediaFeishu, St as isFeishuGroupReadEnabled, T as chunkFeishuCardMarkdown, W as resolveFeishuIdentityHeaderTitle, _ as renderFeishuPresentationPayload, _t as assertFeishuChatReadAllowed, b as withinCardTableLimit, bt as canEnumerateAllFeishuPeers, c as buildFeishuPayloadCard, ct as parseFeishuCommentTarget, d as consumeFeishuPresentationFallbackMarker, dt as chunkFeishuMarkdown, f as feishuCardWithinTableLimit, ft as chunkFeishuPostMarkdown, g as renderFeishuPresentationFallbackText, h as readNativeFeishuCard, ht as shouldUseFeishuCard, j as sendStructuredCardFeishu, jt as resolveFeishuGroupToolPolicy, k as sendCardFeishu, l as buildFeishuPresentationCard, lt as readNativeFeishuCardJson, m as markRenderedFeishuCard, n as createFeishuReplyDeliveryResult, o as FEISHU_PRESENTATION_CAPABILITIES, p as isFeishuCardWithinEnvelope, pt as materializeFeishuPostMarkdownSoftBreaks, s as assertFeishuCardWithinEnvelope, t as createFeishuPartialReplyDeliveryError, u as buildFeishuPresentationFallback, vt as authorizeFeishuChatMemberRead, w as shouldSuppressFeishuTextForVoiceMedia, wt as resolveFeishuChatReadPreliminaryAuthorization, xt as isFeishuGroupReadAllowed, y as resolveFeishuRichReply, yt as canEnumerateAllFeishuGroups } from "./reply-delivery-result-laBNOmBu.mjs";
4
4
  import { t as messageActionTargetAliases } from "./message-action-contract-Bhxj8Zrf.mjs";
5
- import { l as withFeishuRequestContext, r as createFeishuClient, u as withFeishuSendContext } from "./client-BsBVWJzN.mjs";
5
+ import { l as withFeishuRequestContext, r as createFeishuClient, u as withFeishuSendContext } from "./client-CcxmEkoy.mjs";
6
6
  import { n as collectRuntimeConfigAssignments, r as secretTargetRegistryEntries } from "./secret-contract-CI1wCr9i.mjs";
7
7
  import { t as collectFeishuSecurityAuditFindings } from "./security-audit-b86aSgH2.mjs";
8
8
  import { t as resolveFeishuSessionConversation } from "./session-conversation-C53IEUWt.mjs";
@@ -860,7 +860,7 @@ const feishuDoctor = {
860
860
  //#endregion
861
861
  //#region extensions/feishu/src/gateway.ts
862
862
  const feishuGatewayAdapter = { startAccount: async (ctx) => {
863
- const { monitorFeishuProvider } = await import("./monitor-7DvwUs4Y.mjs");
863
+ const { monitorFeishuProvider } = await import("./monitor-CXaFHMmi.mjs");
864
864
  const account = resolveFeishuRuntimeAccount({
865
865
  cfg: ctx.cfg,
866
866
  accountId: ctx.accountId
@@ -1782,7 +1782,7 @@ const feishuSetupWizard = {
1782
1782
  });
1783
1783
  let probeResult = null;
1784
1784
  if (configured && account.configured) try {
1785
- const { probeFeishu } = await import("./probe-B9o7iey6.mjs").then((n) => n.n);
1785
+ const { probeFeishu } = await import("./probe-BjSykXB8.mjs").then((n) => n.n);
1786
1786
  probeResult = await probeFeishu(account);
1787
1787
  } catch {}
1788
1788
  if (!configured) return [`Feishu: ${t("wizard.channels.statusNeedsAppCredentials")}`];
@@ -1935,7 +1935,7 @@ const meta = {
1935
1935
  order: 70,
1936
1936
  preferSessionLookupForAnnounceTarget: true
1937
1937
  };
1938
- const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-COiaq-Rv.mjs"), "feishuChannelRuntime");
1938
+ const loadFeishuChannelRuntime = createLazyRuntimeNamedExport(() => import("./channel.runtime-rXFuQXLL.mjs"), "feishuChannelRuntime");
1939
1939
  async function resolveFeishuMessageSender(params) {
1940
1940
  try {
1941
1941
  const sender = params.resolve(await loadFeishuChannelRuntime());
@@ -1990,7 +1990,7 @@ const feishuMessageAdapter = defineChannelMessageAdapter({
1990
1990
  }
1991
1991
  });
1992
1992
  async function createFeishuActionClient(account) {
1993
- const { createFeishuClient } = await import("./client-BsBVWJzN.mjs").then((n) => n.t);
1993
+ const { createFeishuClient } = await import("./client-CcxmEkoy.mjs").then((n) => n.t);
1994
1994
  return createFeishuClient(account);
1995
1995
  }
1996
1996
  async function resolveFeishuChatTypeById(params) {
@@ -1,9 +1,9 @@
1
- import { m as resolveFeishuAccount } from "./doctor-contract-B1B9ogdd.mjs";
2
- import { d as listFeishuDirectoryPeers, o as feishuOutbound, u as listFeishuDirectoryGroups } from "./channel-CX62T71S.mjs";
3
- import { A as sendMessageFeishu, C as sendStickerFeishu, D as getMessageFeishu, E as editMessageFeishu, Q as assertFeishuApiSuccess, V as createConfiguredFeishuClient, k as sendCardFeishu } from "./reply-delivery-result-Bt-BWBEA.mjs";
4
- import { r as createFeishuClient } from "./client-BsBVWJzN.mjs";
5
- import { a as getFeishuMemberInfo, i as getChatMembers, n as buildFeishuDirectChatMembers, r as getChatInfo, t as assertFeishuChatMember } from "./chat-BdyvImsY.mjs";
6
- import { t as probeFeishu } from "./probe-B9o7iey6.mjs";
1
+ import { h as resolveFeishuAccount } from "./doctor-contract-DyOo8NvC.mjs";
2
+ import { d as listFeishuDirectoryPeers, o as feishuOutbound, u as listFeishuDirectoryGroups } from "./channel-DZakdZ3r.mjs";
3
+ import { A as sendMessageFeishu, C as sendStickerFeishu, D as getMessageFeishu, E as editMessageFeishu, Q as assertFeishuApiSuccess, V as createConfiguredFeishuClient, k as sendCardFeishu } from "./reply-delivery-result-laBNOmBu.mjs";
4
+ import { r as createFeishuClient } from "./client-CcxmEkoy.mjs";
5
+ import { a as getFeishuMemberInfo, i as getChatMembers, n as buildFeishuDirectChatMembers, r as getChatInfo, t as assertFeishuChatMember } from "./chat-mTBvMMvx.mjs";
6
+ import { t as probeFeishu } from "./probe-BjSykXB8.mjs";
7
7
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
8
8
  //#region extensions/feishu/src/directory.ts
9
9
  const MAX_FEISHU_DIRECTORY_PAGES = 100;
@@ -1,5 +1,5 @@
1
- import { Ct as readFeishuChatInfoWithAuthorization, J as feishuExternalToolResult, Pt as resolveFeishuChatType, Q as assertFeishuApiSuccess, Z as resolveFeishuToolAccount, _t as assertFeishuChatReadAllowed, q as registerFeishuTool, rt as formatFeishuApiError, vt as authorizeFeishuChatMemberRead, wt as resolveFeishuChatReadPreliminaryAuthorization } from "./reply-delivery-result-Bt-BWBEA.mjs";
2
- import { r as createFeishuClient } from "./client-BsBVWJzN.mjs";
1
+ import { Ct as readFeishuChatInfoWithAuthorization, J as feishuExternalToolResult, Pt as resolveFeishuChatType, Q as assertFeishuApiSuccess, Z as resolveFeishuToolAccount, _t as assertFeishuChatReadAllowed, q as registerFeishuTool, rt as formatFeishuApiError, vt as authorizeFeishuChatMemberRead, wt as resolveFeishuChatReadPreliminaryAuthorization } from "./reply-delivery-result-laBNOmBu.mjs";
2
+ import { r as createFeishuClient } from "./client-CcxmEkoy.mjs";
3
3
  import { optionalPositiveIntegerSchema } from "openclaw/plugin-sdk/channel-actions";
4
4
  import { readPositiveIntegerParam } from "openclaw/plugin-sdk/param-readers";
5
5
  import { Type } from "typebox";
@@ -1,4 +1,4 @@
1
- import { g as __exportAll } from "./doctor-contract-B1B9ogdd.mjs";
1
+ import { _ as __exportAll } from "./doctor-contract-DyOo8NvC.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { PlatformMessageNotDispatchedError } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
@@ -827,6 +827,19 @@ const legacyConfigRules = [
827
827
  }
828
828
  }
829
829
  ];
830
+ function resolveHistoricalWebhookAccountIds(cfg) {
831
+ return cfg.channels?.feishu?.enabled === false ? [] : listFeishuAccountIds(cfg).filter((accountId) => {
832
+ const account = mergeFeishuAccountConfig(cfg, accountId);
833
+ return account.enabled !== false && account.connectionMode === "webhook";
834
+ });
835
+ }
836
+ function normalizeHistoricalWebhookConfig({ cfg }) {
837
+ const listener = webhookListenerMigration.normalizeCompatibilityConfig({ cfg });
838
+ return {
839
+ ...listener,
840
+ historicalWebhookAccountIds: resolveHistoricalWebhookAccountIds(listener.config)
841
+ };
842
+ }
830
843
  function normalizeCompatibilityConfig({ cfg }) {
831
844
  const aliases = streamingAliasMigration.normalizeChannelConfig({ cfg });
832
845
  const listener = webhookListenerMigration.normalizeCompatibilityConfig({ cfg: aliases.config });
@@ -836,11 +849,8 @@ function normalizeCompatibilityConfig({ cfg }) {
836
849
  return {
837
850
  config: stray.config,
838
851
  changes: [...changes, ...stray.changes],
839
- historicalWebhookAccountIds: stray.config.channels?.feishu?.enabled === false ? [] : listFeishuAccountIds(stray.config).filter((accountId) => {
840
- const account = mergeFeishuAccountConfig(stray.config, accountId);
841
- return account.enabled !== false && account.connectionMode === "webhook";
842
- })
852
+ historicalWebhookAccountIds: resolveHistoricalWebhookAccountIds(stray.config)
843
853
  };
844
854
  }
845
855
  //#endregion
846
- export { __reExport as _, DEFAULT_FEISHU_WEBHOOK_PATH as a, accounts_exports as c, listFeishuAccountIds as d, mergeFeishuAccountConfig as f, __exportAll as g, resolveFeishuRuntimeAccount as h, FeishuChannelConfigSchema as i, inspectFeishuCredentials as l, resolveFeishuAccount as m, legacyConfigRules as n, normalizeFeishuWebhookPath as o, resolveDefaultFeishuAccountId as p, normalizeCompatibilityConfig as r, normalizeFeishuExternalKey as s, historicalWebhookListener as t, listEnabledFeishuAccounts as u };
856
+ export { __exportAll as _, FeishuChannelConfigSchema as a, normalizeFeishuExternalKey as c, listEnabledFeishuAccounts as d, listFeishuAccountIds as f, resolveFeishuRuntimeAccount as g, resolveFeishuAccount as h, normalizeHistoricalWebhookConfig as i, accounts_exports as l, resolveDefaultFeishuAccountId as m, legacyConfigRules as n, DEFAULT_FEISHU_WEBHOOK_PATH as o, mergeFeishuAccountConfig as p, normalizeCompatibilityConfig as r, normalizeFeishuWebhookPath as s, historicalWebhookListener as t, inspectFeishuCredentials as u, __reExport as v };
@@ -1,6 +1,6 @@
1
- import { h as resolveFeishuRuntimeAccount, u as listEnabledFeishuAccounts } from "./doctor-contract-B1B9ogdd.mjs";
1
+ import { d as listEnabledFeishuAccounts, g as resolveFeishuRuntimeAccount } from "./doctor-contract-DyOo8NvC.mjs";
2
2
  import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.mjs";
3
- import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-B9o7iey6.mjs";
3
+ import { r as registerFeishuAiAgent, t as probeFeishu } from "./probe-BjSykXB8.mjs";
4
4
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
5
5
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-resolution";
6
6
  import { clampTimerTimeoutMs, parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";
@@ -144,7 +144,7 @@ async function fetchBotIdentityForMonitor(account, options = {}) {
144
144
  }
145
145
  //#endregion
146
146
  //#region extensions/feishu/src/monitor.ts
147
- const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-7xVu7XWY.mjs"));
147
+ const loadMonitorAccountRuntime = createLazyRuntimeModule(() => import("./monitor.account-cJ8gavqv.mjs"));
148
148
  async function monitorFeishuProvider(opts = {}) {
149
149
  const cfg = opts.config;
150
150
  if (!cfg) throw new Error("Config is required for Feishu monitor");
@@ -1,15 +1,15 @@
1
- import { h as resolveFeishuRuntimeAccount, m as resolveFeishuAccount, o as normalizeFeishuWebhookPath, s as normalizeFeishuExternalKey } from "./doctor-contract-B1B9ogdd.mjs";
1
+ import { c as normalizeFeishuExternalKey, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, s as normalizeFeishuWebhookPath } from "./doctor-contract-DyOo8NvC.mjs";
2
2
  import { o as resolveConfiguredFeishuGroupSessionScope, t as buildFeishuConversationId, u as resolveReceiveIdType } from "./conversation-id-C1ofUfU8.mjs";
3
- import { c as resolveFeishuLegacyWebhookListener, l as gateway_config_runtime_exports, s as describeFeishuWebhookPathConflict } from "./channel-CX62T71S.mjs";
4
- import { A as sendMessageFeishu, At as resolveFeishuGroupSenderActivationIngressAccess, B as parsePostContent, D as getMessageFeishu, Dt as resolveFeishuDmIngressAccess, Et as normalizeFeishuAllowEntry, F as isFeishuBroadcastMention, G as deliverCommentThreadText, H as buildFeishuMediaFallbackText, I as isMentionForwardRequest, It as createFeishuCardInteractionEnvelope, L as isFeishuGroupChatType, Lt as decodeFeishuCardAction, Mt as resolveFeishuReplyPolicy, N as formatFeishuMediaContent, Nt as normalizeFeishuChatType, O as listFeishuThreadMessages, Ot as resolveFeishuGroupConfig, P as extractMentionTargets, Pt as resolveFeishuChatType, R as normalizeFeishuEventChatType, S as sendMediaFeishu, T as chunkFeishuCardMarkdown, Tt as hasExplicitFeishuGroupConfig, U as resolveFeishuIdentityEmoji, a as shouldSendNoVisibleReplyFallback, at as requestFeishuApi, b as withinCardTableLimit, d as consumeFeishuPresentationFallbackMarker, et as createCommentTypingReactionLifecycle, ft as chunkFeishuPostMarkdown, ht as shouldUseFeishuCard, i as noVisibleFeishuReplyDelivery, it as parseCommentContentElements, j as sendStructuredCardFeishu, k as sendCardFeishu, kt as resolveFeishuGroupConversationIngressAccess, n as createFeishuReplyDeliveryResult, nt as extractReplyText, ot as buildFeishuCommentTarget, pt as materializeFeishuPostMarkdownSoftBreaks, r as mergeFeishuReplyDeliveryResults, st as normalizeCommentFileType, t as createFeishuPartialReplyDeliveryError, tt as encodeQuery, u as buildFeishuPresentationFallback, ut as resolveFeishuCardTemplate, v as renderFeishuReplyPayload, w as shouldSuppressFeishuTextForVoiceMedia, x as saveMessageResourceFeishu, y as resolveFeishuRichReply, z as parseInteractiveCardContent } from "./reply-delivery-result-Bt-BWBEA.mjs";
3
+ import { c as resolveFeishuLegacyWebhookListener, l as gateway_config_runtime_exports, s as describeFeishuWebhookPathConflict } from "./channel-DZakdZ3r.mjs";
4
+ import { A as sendMessageFeishu, At as resolveFeishuGroupSenderActivationIngressAccess, B as parsePostContent, D as getMessageFeishu, Dt as resolveFeishuDmIngressAccess, Et as normalizeFeishuAllowEntry, F as isFeishuBroadcastMention, G as deliverCommentThreadText, H as buildFeishuMediaFallbackText, I as isMentionForwardRequest, It as createFeishuCardInteractionEnvelope, L as isFeishuGroupChatType, Lt as decodeFeishuCardAction, Mt as resolveFeishuReplyPolicy, N as formatFeishuMediaContent, Nt as normalizeFeishuChatType, O as listFeishuThreadMessages, Ot as resolveFeishuGroupConfig, P as extractMentionTargets, Pt as resolveFeishuChatType, R as normalizeFeishuEventChatType, S as sendMediaFeishu, T as chunkFeishuCardMarkdown, Tt as hasExplicitFeishuGroupConfig, U as resolveFeishuIdentityEmoji, a as shouldSendNoVisibleReplyFallback, at as requestFeishuApi, b as withinCardTableLimit, d as consumeFeishuPresentationFallbackMarker, et as createCommentTypingReactionLifecycle, ft as chunkFeishuPostMarkdown, ht as shouldUseFeishuCard, i as noVisibleFeishuReplyDelivery, it as parseCommentContentElements, j as sendStructuredCardFeishu, k as sendCardFeishu, kt as resolveFeishuGroupConversationIngressAccess, n as createFeishuReplyDeliveryResult, nt as extractReplyText, ot as buildFeishuCommentTarget, pt as materializeFeishuPostMarkdownSoftBreaks, r as mergeFeishuReplyDeliveryResults, st as normalizeCommentFileType, t as createFeishuPartialReplyDeliveryError, tt as encodeQuery, u as buildFeishuPresentationFallback, ut as resolveFeishuCardTemplate, v as renderFeishuReplyPayload, w as shouldSuppressFeishuTextForVoiceMedia, x as saveMessageResourceFeishu, y as resolveFeishuRichReply, z as parseInteractiveCardContent } from "./reply-delivery-result-laBNOmBu.mjs";
5
5
  import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.mjs";
6
- import { a as getFeishuUserAgent, f as resolveConfiguredHttpTimeoutMs, i as createFeishuWSClient, n as createEventDispatcher, r as createFeishuClient } from "./client-BsBVWJzN.mjs";
7
- import { r as getChatInfo } from "./chat-BdyvImsY.mjs";
6
+ import { a as getFeishuUserAgent, f as resolveConfiguredHttpTimeoutMs, i as createFeishuWSClient, n as createEventDispatcher, r as createFeishuClient } from "./client-CcxmEkoy.mjs";
7
+ import { r as getChatInfo } from "./chat-mTBvMMvx.mjs";
8
8
  import { t as createFeishuThreadBindingManager } from "./thread-bindings-jW2x5VuN.mjs";
9
9
  import { evaluateSupplementalContextVisibility, normalizeAgentId as normalizeAgentId$1, resolveChannelContextVisibilityMode } from "../runtime-api.js";
10
10
  import { t as readFeishuJsonResponse } from "./json-response-DXajw_FU.mjs";
11
- import { a as waitForAbortableDelay, i as raceWithTimeoutAndAbort } from "./probe-B9o7iey6.mjs";
12
- import { t as fetchBotIdentityForMonitor } from "./monitor-7DvwUs4Y.mjs";
11
+ import { a as waitForAbortableDelay, i as raceWithTimeoutAndAbort } from "./probe-BjSykXB8.mjs";
12
+ import { t as fetchBotIdentityForMonitor } from "./monitor-CXaFHMmi.mjs";
13
13
  import { resolveAgentConfig } from "openclaw/plugin-sdk/agent-scope-runtime";
14
14
  import { DEFAULT_INGRESS_ADOPTION_STALL_MS, bindIngressLifecycleToReplyOptions, createChannelIngressError, createChannelIngressMonitor, createChannelMessageReplyPipeline, createReplyPrefixContext, formatChannelProgressDraftLineForEntry, resolveAgentOutboundIdentity, resolveChannelPreviewStreamMode, resolveChannelStreamingBlockEnabled, waitUntilAbort } from "openclaw/plugin-sdk/channel-outbound";
15
15
  import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
@@ -1494,6 +1494,16 @@ var FeishuStreamingSession = class {
1494
1494
  }
1495
1495
  };
1496
1496
  //#endregion
1497
+ //#region extensions/feishu/src/streaming-update.ts
1498
+ /** Admit captured snapshots in order while the session owns provider writes. */
1499
+ function queueFeishuStreamingUpdate(params) {
1500
+ const { queue, session, generation, startPromise, text, accountId, runtime } = params;
1501
+ return queue.then(async () => {
1502
+ if (startPromise) await startPromise;
1503
+ if (generation !== void 0 && session?.isActive()) session.update(text).catch((error) => runtime.error?.(`feishu[${accountId}] streaming update failed: ${String(error)}`));
1504
+ });
1505
+ }
1506
+ //#endregion
1497
1507
  //#region extensions/feishu/src/typing-backoff.ts
1498
1508
  /** Feishu API codes that should trip the typing circuit breaker. */
1499
1509
  const FEISHU_BACKOFF_CODES = /* @__PURE__ */ new Set([
@@ -1756,12 +1766,14 @@ function createFeishuReplyDispatcher(params) {
1756
1766
  return [[thinking ? formatReasoningPrefix(thinking) : "", answer].filter(Boolean).join("\n\n---\n\n"), statusLine].filter(Boolean).join("\n\n");
1757
1767
  };
1758
1768
  const flushStreamingCardUpdate = (combined) => {
1759
- const session = streaming;
1760
- const generation = activeStreamingGeneration;
1761
- const startPromise = streamingStartPromise;
1762
- partialUpdateQueue = partialUpdateQueue.then(async () => {
1763
- if (startPromise) await startPromise;
1764
- if (generation !== void 0 && session?.isActive()) await session.update(combined);
1769
+ partialUpdateQueue = queueFeishuStreamingUpdate({
1770
+ queue: partialUpdateQueue,
1771
+ session: streaming,
1772
+ generation: activeStreamingGeneration,
1773
+ startPromise: streamingStartPromise,
1774
+ text: combined,
1775
+ accountId: account.accountId,
1776
+ runtime: params.runtime
1765
1777
  });
1766
1778
  };
1767
1779
  const queueStreamingUpdate = (nextText, options) => {
@@ -5086,7 +5098,7 @@ async function resolveDriveCommentEventTurn(params) {
5086
5098
  return null;
5087
5099
  }
5088
5100
  const context = await fetchDriveCommentContext({
5089
- client: createClient ? createClient(account ?? { accountId }) : createFeishuClient((await import("./doctor-contract-B1B9ogdd.mjs").then((n) => n.c)).resolveFeishuAccount({
5101
+ client: createClient ? createClient(account ?? { accountId }) : createFeishuClient((await import("./doctor-contract-DyOo8NvC.mjs").then((n) => n.l)).resolveFeishuAccount({
5090
5102
  cfg,
5091
5103
  accountId
5092
5104
  })),
@@ -6370,7 +6382,7 @@ async function resolveReactionSyntheticEvent(params) {
6370
6382
  const senderUserId = event.user_id?.user_id?.trim();
6371
6383
  const senderId = senderOpenId || senderUserId;
6372
6384
  if (!emoji || !messageId || !senderId) return null;
6373
- const { resolveFeishuAccount } = await import("./doctor-contract-B1B9ogdd.mjs").then((n) => n.c);
6385
+ const { resolveFeishuAccount } = await import("./doctor-contract-DyOo8NvC.mjs").then((n) => n.l);
6374
6386
  const reactionNotifications = resolveFeishuAccount({
6375
6387
  cfg,
6376
6388
  accountId
@@ -1,5 +1,5 @@
1
- import { g as __exportAll } from "./doctor-contract-B1B9ogdd.mjs";
2
- import { r as createFeishuClient } from "./client-BsBVWJzN.mjs";
1
+ import { _ as __exportAll } from "./doctor-contract-DyOo8NvC.mjs";
2
+ import { r as createFeishuClient } from "./client-CcxmEkoy.mjs";
3
3
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4
4
  import { isFutureDateTimestampMs, resolveExpiresAtMsFromDurationMs, resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
5
5
  import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
@@ -1,7 +1,7 @@
1
- import { d as listFeishuAccountIds, h as resolveFeishuRuntimeAccount, m as resolveFeishuAccount, p as resolveDefaultFeishuAccountId, s as normalizeFeishuExternalKey, u as listEnabledFeishuAccounts } from "./doctor-contract-B1B9ogdd.mjs";
1
+ import { c as normalizeFeishuExternalKey, d as listEnabledFeishuAccounts, f as listFeishuAccountIds, g as resolveFeishuRuntimeAccount, h as resolveFeishuAccount, m as resolveDefaultFeishuAccountId } from "./doctor-contract-DyOo8NvC.mjs";
2
2
  import { l as normalizeFeishuTarget, s as detectIdType, u as resolveReceiveIdType } from "./conversation-id-C1ofUfU8.mjs";
3
3
  import { t as getFeishuRuntime } from "./runtime-C5JxBWZp.mjs";
4
- import { c as withFeishuMessageDispatch, o as captureFeishuSendAuthority, r as createFeishuClient, s as runBeforeFeishuMessageDispatch } from "./client-BsBVWJzN.mjs";
4
+ import { c as withFeishuMessageDispatch, o as captureFeishuSendAuthority, r as createFeishuClient, s as runBeforeFeishuMessageDispatch } from "./client-CcxmEkoy.mjs";
5
5
  import { normalizeAccountId, normalizeOptionalAccountId, resolveMergedAccountConfig } from "openclaw/plugin-sdk/account-resolution";
6
6
  import { compileAllowlist, resolveAllowlistMatchByCandidates } from "openclaw/plugin-sdk/allow-from";
7
7
  import { ToolAuthorizationError } from "openclaw/plugin-sdk/channel-actions";
@@ -1,3 +1,3 @@
1
- import { i as feishuSetupAdapter, n as feishuSetupWizard, t as feishuPlugin } from "./channel-CX62T71S.mjs";
1
+ import { i as feishuSetupAdapter, n as feishuSetupWizard, t as feishuPlugin } from "./channel-DZakdZ3r.mjs";
2
2
  import "../setup-api.js";
3
3
  export { feishuPlugin, feishuSetupAdapter, feishuSetupWizard };
@@ -1,4 +1,4 @@
1
- import { g as __exportAll } from "./doctor-contract-B1B9ogdd.mjs";
1
+ import { _ as __exportAll } from "./doctor-contract-DyOo8NvC.mjs";
2
2
  import { d as stripFeishuProviderPrefix, l as normalizeFeishuTarget, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./conversation-id-C1ofUfU8.mjs";
3
3
  import { n as getFeishuThreadBindingManager } from "./thread-bindings-jW2x5VuN.mjs";
4
4
  import { normalizeOptionalLowercaseString, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
package/dist/api.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { a as parseFeishuTargetId, i as parseFeishuDirectConversationId, n as buildFeishuModelOverrideParentCandidates, r as parseFeishuConversationId, t as buildFeishuConversationId } from "./.setup/conversation-id-C1ofUfU8.mjs";
2
- import { a as setFeishuNamedAccountEnabled, i as feishuSetupAdapter, n as feishuSetupWizard, r as runFeishuLogin, t as feishuPlugin } from "./.setup/channel-CX62T71S.mjs";
3
- import { J as feishuExternalToolResult, K as registerFeishuDriveTools, Q as assertFeishuApiSuccess, X as createFeishuToolClient, Y as unknownToolActionResult, Z as resolveFeishuToolAccount, dt as chunkFeishuMarkdown, gt as visitFeishuMarkdown, mt as parseFeishuMarkdown, q as registerFeishuTool } from "./.setup/reply-delivery-result-Bt-BWBEA.mjs";
2
+ import { a as setFeishuNamedAccountEnabled, i as feishuSetupAdapter, n as feishuSetupWizard, r as runFeishuLogin, t as feishuPlugin } from "./.setup/channel-DZakdZ3r.mjs";
3
+ import { J as feishuExternalToolResult, K as registerFeishuDriveTools, Q as assertFeishuApiSuccess, X as createFeishuToolClient, Y as unknownToolActionResult, Z as resolveFeishuToolAccount, dt as chunkFeishuMarkdown, gt as visitFeishuMarkdown, mt as parseFeishuMarkdown, q as registerFeishuTool } from "./.setup/reply-delivery-result-laBNOmBu.mjs";
4
4
  import { t as getFeishuRuntime } from "./.setup/runtime-C5JxBWZp.mjs";
5
- import { f as resolveConfiguredHttpTimeoutMs, r as createFeishuClient } from "./.setup/client-BsBVWJzN.mjs";
6
- import { o as registerFeishuChatTools } from "./.setup/chat-BdyvImsY.mjs";
5
+ import { f as resolveConfiguredHttpTimeoutMs, r as createFeishuClient } from "./.setup/client-CcxmEkoy.mjs";
6
+ import { o as registerFeishuChatTools } from "./.setup/chat-mTBvMMvx.mjs";
7
7
  import { n as getFeishuThreadBindingManager, t as createFeishuThreadBindingManager } from "./.setup/thread-bindings-jW2x5VuN.mjs";
8
- import { n as handleFeishuSubagentEnded, t as handleFeishuSubagentDeliveryTarget } from "./.setup/subagent-hooks-CUXg0pC-.mjs";
8
+ import { n as handleFeishuSubagentEnded, t as handleFeishuSubagentDeliveryTarget } from "./.setup/subagent-hooks-C8Z_x3KJ.mjs";
9
9
  import { optionalPositiveIntegerSchema } from "openclaw/plugin-sdk/channel-actions";
10
10
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
11
11
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString, readStringValue, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";
@@ -1,2 +1,2 @@
1
- import { t as feishuPlugin } from "./.setup/channel-CX62T71S.mjs";
1
+ import { t as feishuPlugin } from "./.setup/channel-DZakdZ3r.mjs";
2
2
  export { feishuPlugin };
@@ -1,2 +1,2 @@
1
- import { n as legacyConfigRules, r as normalizeCompatibilityConfig, t as historicalWebhookListener } from "./.setup/doctor-contract-B1B9ogdd.mjs";
2
- export { historicalWebhookListener, legacyConfigRules, normalizeCompatibilityConfig };
1
+ import { i as normalizeHistoricalWebhookConfig, n as legacyConfigRules, r as normalizeCompatibilityConfig, t as historicalWebhookListener } from "./.setup/doctor-contract-DyOo8NvC.mjs";
2
+ export { historicalWebhookListener, legacyConfigRules, normalizeCompatibilityConfig, normalizeHistoricalWebhookConfig };
package/dist/setup-api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { i as feishuSetupAdapter, n as feishuSetupWizard, t as feishuPlugin } from "./.setup/channel-CX62T71S.mjs";
1
+ import { i as feishuSetupAdapter, n as feishuSetupWizard, t as feishuPlugin } from "./.setup/channel-DZakdZ3r.mjs";
2
2
  export { feishuPlugin, feishuSetupAdapter, feishuSetupWizard };
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  var setup_entry_default = defineBundledChannelSetupEntry({
5
5
  importMetaUrl: import.meta.url,
6
6
  plugin: {
7
- specifier: fileURLToPath(new URL(".setup/setup-api-DmzX9S01.mjs", import.meta.url).href),
7
+ specifier: fileURLToPath(new URL(".setup/setup-api-fZcYXGxe.mjs", import.meta.url).href),
8
8
  exportName: "feishuPlugin"
9
9
  },
10
10
  secrets: {
@@ -1,6 +1,6 @@
1
1
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
2
2
  //#region extensions/feishu/subagent-hooks-api.ts
3
- const loadFeishuSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-CUXg0pC-.mjs").then((n) => n.r));
3
+ const loadFeishuSubagentHooksModule = createLazyRuntimeModule(() => import("./.setup/subagent-hooks-C8Z_x3KJ.mjs").then((n) => n.r));
4
4
  function registerFeishuSubagentHooks(api) {
5
5
  api.on("subagent_delivery_target", async (event) => {
6
6
  const { handleFeishuSubagentDeliveryTarget } = await loadFeishuSubagentHooksModule();
@@ -2,6 +2,62 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.24.2 - 2026-10-07
6
+
7
+ ### Fixes
8
+
9
+ - **Linux exclusive publication:** `publishFileExclusive` with `rename-noreplace` uses the identity-checked link/unlink move fallback in native `auto` when `RENAME_NOREPLACE` is unsupported, consumes the source on success, and reports `fallback: "link-unlink"` plus precise partial-failure receipts; native `require` stays fail-closed. Link/unlink is not crash-atomic. ([#843](https://github.com/openclaw/fs-safe/pull/843), [openclaw#166246](https://github.com/openclaw/openclaw/issues/166246)) Thanks @MertBasar0.
10
+ - **Native clone descriptors:** native file copies return read-write descriptors, so Linux clones can be read immediately and macOS clones can be written while preserving read-only source modes. ([#844](https://github.com/openclaw/fs-safe/pull/844))
11
+
12
+ ## 0.24.1 - 2026-10-06
13
+
14
+ ### Features
15
+
16
+ - **Pinned source copies:** `copyRootFileSync` accepts `expectedSourceIdentity` to reject a replaced source before destination creation and returns the verified `sourceIdentity` for every copy method. This refines the `copyRootFileSync` API introduced in 0.24.0. ([#841](https://github.com/openclaw/fs-safe/pull/841))
17
+
18
+ ## 0.24.0 - 2026-10-06
19
+
20
+ ### Highlights
21
+
22
+ - **No-replace moves on more Linux filesystems:** when filesystems reject `renameat2` with `RENAME_NOREPLACE`, including reported QNAP ZFS shares and some overlay mounts, `auto` falls back safely: directories use plain rename that can at most replace an empty directory, and files use identity-checked link/unlink that cannot overwrite a target. Native `require` fails closed. ([#838](https://github.com/openclaw/fs-safe/pull/838), fixes [openclaw#165617](https://github.com/openclaw/openclaw/issues/165617)) Thanks @StarGazer1995, original reporter @bbs2i58, and @MertBasar0.
23
+ - **Synchronous guarded copies:** new `copyRootFileSync` on `advanced` supports APFS cloning, reflinks, `copy_file_range`, and guarded byte fallback, returning an owned destination descriptor for synchronous capture hashes. ([#839](https://github.com/openclaw/fs-safe/pull/839))
24
+ - **Public capability classification:** new `isNoReplaceUnsupported(error)` identifies unavailable no-replace rename support without matching internal native error codes. ([#838](https://github.com/openclaw/fs-safe/pull/838))
25
+
26
+ ### Features
27
+
28
+ - **Synchronous root-to-root copy:** `copyRootFileSync` exclusively creates an absent destination under its admitted root, bounds the copy with `maxBytes`, verifies source and destination identities, and returns a disposable descriptor with copy-method and byte-count receipts. ([#839](https://github.com/openclaw/fs-safe/pull/839))
29
+ - **No-replace error classifier:** export `isNoReplaceUnsupported(error)` from the root package and `errors` subpath for stable `helper-unavailable` capability diagnostics. ([#838](https://github.com/openclaw/fs-safe/pull/838))
30
+
31
+ ### Fixes
32
+
33
+ - **Linux no-replace moves:** `Root.move()` uses retained-parent file link/unlink or directory rename when `RENAME_NOREPLACE` is unsupported in `auto`, rejects file collisions, and preserves publication/source-removal details after partial failures. ([#838](https://github.com/openclaw/fs-safe/pull/838)) Thanks @StarGazer1995, @bbs2i58, and @MertBasar0.
34
+
35
+ ### Performance
36
+
37
+ - **Synchronous copy acceleration:** reuse the native bounded copy engine for APFS clones, Linux reflinks, and `copy_file_range` before byte copying when `copyRootFileSync` is called with `clone: "auto"`. ([#839](https://github.com/openclaw/fs-safe/pull/839))
38
+
39
+ ### Compatibility
40
+
41
+ - **Move fallback limits:** native `require` keeps refusing unsupported no-replace moves. In `auto`, the directory fallback can replace a concurrently created empty directory; nonempty directories and non-directory competitors reject. File fallback requires hard-link support and fails closed if links are denied or unsupported. ([#838](https://github.com/openclaw/fs-safe/pull/838))
42
+ - **Synchronous copy contract:** `copyRootFileSync` defaults to `clone: "never"`, requires existing parents and an absent destination, and performs direct exclusive creation. Use a private capture directory; it does not promise atomic publication, crash durability, or a coherent snapshot of concurrent in-place edits. ([#839](https://github.com/openclaw/fs-safe/pull/839))
43
+
44
+ ## 0.23.1 - 2026-10-04
45
+
46
+ ### Highlights
47
+
48
+ - **gVisor and 9p file creation:** `create()` and other no-replace publication fall back in `auto` mode on filesystems that reject `renameat2` with `RENAME_NOREPLACE`; `require` mode fails closed. ([#834](https://github.com/openclaw/fs-safe/pull/834), fixes [#828](https://github.com/openclaw/fs-safe/issues/828)) Thanks @vishnukool.
49
+ - **Container copy compatibility:** seccomp or LSM policies denying `FICLONE` no longer break `clone: "auto"` copies, for both single files and `copyTree`. ([#829](https://github.com/openclaw/fs-safe/pull/829), [#835](https://github.com/openclaw/fs-safe/pull/835)) Thanks @Mohl, with co-author credit to @foxsky.
50
+ - **macOS watching:** a FIFO at a watched name no longer freezes watching across the process. ([#830](https://github.com/openclaw/fs-safe/pull/830)) Thanks @SebTardif.
51
+
52
+ ### Fixes
53
+
54
+ - **gVisor file creation:** fall back safely when the filesystem rejects native no-replace publication, clean unpublished stages, and report the missing capability in native-required mode. ([#834](https://github.com/openclaw/fs-safe/pull/834)) Thanks @vishnukool.
55
+ - **ZIP collision checks:** reject directory and file names that differ only by case, Unicode normalization, or a trailing separator before extraction or bounded reads. ([#832](https://github.com/openclaw/fs-safe/pull/832)) Thanks @SebTardif.
56
+ - **macOS entry watch:** prevent a FIFO at a watched name from blocking every watcher in the process. ([#830](https://github.com/openclaw/fs-safe/pull/830)) Thanks @SebTardif.
57
+ - **Disk-full diagnostics:** preserve disk-full (`ENOSPC`) diagnostics and cleanup receipts through combined write and disposal failures instead of reporting a misleading file-type error. ([#833](https://github.com/openclaw/fs-safe/pull/833)) Thanks @steipete.
58
+ - **Linux clone fallback:** copies with `clone: "auto"` fall back to guarded byte copying when container seccomp or LSM policy denies `FICLONE`; `clone: "always"` reports `unsupported-platform` and removes its stage. ([#829](https://github.com/openclaw/fs-safe/pull/829)) Thanks @Mohl, with co-author credit to @foxsky.
59
+ - **Linux tree clone fallback:** `copyTree` with `clone: "auto"` copies bytes when XFS/ZFS file reflinks are unavailable or denied by container policy; `"always"` reports `unsupported-platform` after partial-tree cleanup. ([#835](https://github.com/openclaw/fs-safe/pull/835)) Thanks @steipete.
60
+
5
61
  ## 0.23.0 - 2026-10-02
6
62
 
7
63
  ### Highlights
@@ -1,3 +1,4 @@
1
+ export { copyRootFileSync, type CopyRootFileSyncOptions, type CopiedRootFileSync } from "./copy-root-file-sync.js";
1
2
  export { createAsyncLock } from "./async-lock.js";
2
3
  export { createDirectory, createDirectorySync, createFileSync, type CreateDirectoryOptions, type CreateFileOptions, type OwnedFileDescriptorSync, } from "./create.js";
3
4
  export { copyFileHandle, copyFileDescriptorSync, type CopyFileHandleOptions } from "./file-handle-transfer.js";
@@ -1,3 +1,4 @@
1
+ export { copyRootFileSync } from "./copy-root-file-sync.js";
1
2
  // Advanced composition surface. These exports are less stable than the focused
2
3
  // public subpaths; prefer root/json/store/temp/archive unless you are building a
3
4
  // higher-level primitive.
@@ -63,13 +63,17 @@ export function stripArchivePath(entryPath, stripComponents) {
63
63
  export function createArchiveOutputPathTracker() {
64
64
  const seen = new Set();
65
65
  return (entryPath, originalPath) => {
66
- const normalized = path.posix.normalize(normalizeArchiveEntryPath(entryPath));
66
+ // Extraction passes stripArchivePath output. Native manifests and physical
67
+ // admission pass raw names, and path.posix.normalize keeps a directory's
68
+ // trailing slash, so "A/" and "a" would not share a key.
69
+ const canonical = stripArchivePath(entryPath, 0)
70
+ ?? path.posix.normalize(normalizeArchiveEntryPath(entryPath));
67
71
  // Archive policy must not depend on the destination volume's case or
68
72
  // Unicode-normalization behavior. Otherwise the JavaScript and native
69
73
  // writers can disagree about which of two colliding entries wins.
70
- const collisionKey = lowerCaseNfc(normalized);
74
+ const collisionKey = lowerCaseNfc(canonical);
71
75
  if (seen.has(collisionKey)) {
72
- throw new ArchiveSecurityError("entry-path", `archive entries collide at output path ${formatErrorDetail(normalized)}: ${formatErrorDetail(originalPath)}`);
76
+ throw new ArchiveSecurityError("entry-path", `archive entries collide at output path ${formatErrorDetail(canonical)}: ${formatErrorDetail(originalPath)}`);
73
77
  }
74
78
  seen.add(collisionKey);
75
79
  };
@@ -0,0 +1,35 @@
1
+ import { type CopyCloneMode } from "./copy-policy.js";
2
+ import { type OwnedFileDescriptorSync } from "./create-owned-file.js";
3
+ type CopyPath = {
4
+ rootPath: string;
5
+ absolutePath: string;
6
+ };
7
+ export type CopyRootFileSyncOptions = {
8
+ source: CopyPath;
9
+ destination: CopyPath;
10
+ expectedSourceIdentity?: {
11
+ dev: bigint;
12
+ ino: bigint;
13
+ };
14
+ clone?: CopyCloneMode;
15
+ maxBytes?: number;
16
+ mode?: number;
17
+ preserveSourceMode?: boolean;
18
+ sourceHardlinks?: "reject" | "allow";
19
+ };
20
+ export type CopiedRootFileSync = OwnedFileDescriptorSync & Readonly<{
21
+ path: string;
22
+ bytes: number;
23
+ method: "clone" | "copy-file-range" | "copy";
24
+ identity: Readonly<{
25
+ dev: bigint;
26
+ ino: bigint;
27
+ }>;
28
+ sourceIdentity: Readonly<{
29
+ dev: bigint;
30
+ ino: bigint;
31
+ }>;
32
+ }>;
33
+ /** Exclusively copies an admitted source and transfers the owned destination fd. */
34
+ export declare function copyRootFileSync(options: CopyRootFileSyncOptions): CopiedRootFileSync;
35
+ export {};