cclawd 1.0.0 → 1.0.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 (111) hide show
  1. package/dist/{active-listener-DYmI7imH.js → active-listener-BLd27Pxd.js} +2 -2
  2. package/dist/{api-key-rotation-DLU4jvSu.js → api-key-rotation-Dg3JlNDQ.js} +1 -1
  3. package/dist/{audio-preflight-C9TMbRb4.js → audio-preflight-eV5m9mMp.js} +15 -15
  4. package/dist/{audio-transcription-runner-Q5zG_hYd.js → audio-transcription-runner-CQU4Eg1M.js} +10 -10
  5. package/dist/{audit-membership-runtime-DhxSwFnF.js → audit-membership-runtime-hXUuer4x.js} +6 -6
  6. package/dist/build-info.json +3 -3
  7. package/dist/bundled/boot-md/handler.js +35 -35
  8. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  9. package/dist/bundled/command-logger/handler.js +2 -2
  10. package/dist/bundled/session-memory/handler.js +35 -35
  11. package/dist/{channel-activity-Bx08UTAg.js → channel-activity-dT3cYb0e.js} +2 -2
  12. package/dist/{commands-registry-llLVCTH9.js → commands-registry-CyLMCPuP.js} +2 -2
  13. package/dist/compact.runtime-DGRl4st4.js +39 -0
  14. package/dist/{deliver-DJf2ZBpe.js → deliver-B6eTtXSk.js} +19 -19
  15. package/dist/deliver-runtime-CLDpY6AW.js +19 -0
  16. package/dist/deps-send-discord.runtime-CxADlame.js +19 -0
  17. package/dist/deps-send-imessage.runtime-Wi79xm6H.js +18 -0
  18. package/dist/deps-send-signal.runtime-BDtzvsnR.js +17 -0
  19. package/dist/deps-send-slack.runtime-CgX24hgT.js +17 -0
  20. package/dist/deps-send-telegram.runtime-CEWc7ePn.js +20 -0
  21. package/dist/deps-send-whatsapp.runtime-B1KJ7YOp.js +43 -0
  22. package/dist/{diagnostic-BCCMF3O_.js → diagnostic-BZmAxdu9.js} +2 -2
  23. package/dist/{env-aYXLHjfZ.js → env-lw2hsIUY.js} +1 -1
  24. package/dist/{fetch-bvgIiupu.js → fetch-C0iyt-Iz.js} +3 -3
  25. package/dist/{fetch-DCTUdr1U.js → fetch-CMLoICyN.js} +5 -5
  26. package/dist/{fetch-guard-CqpEmMQ2.js → fetch-guard-DCj3k042.js} +2 -2
  27. package/dist/{frontmatter-DjZuS525.js → frontmatter-C_obXuTp.js} +3 -3
  28. package/dist/{github-copilot-token-CQmATy5E.js → github-copilot-token-8N63GdbE.js} +7 -7
  29. package/dist/{image-Q8E1-lZn.js → image-Bt49ybRv.js} +4 -4
  30. package/dist/image-runtime-Cilhq73U.js +12 -0
  31. package/dist/{ir-CzM3SxId.js → ir-CVtBjUiL.js} +6 -6
  32. package/dist/llm-slug-generator.js +35 -35
  33. package/dist/{logger-ChbX1G7s.js → logger-CbUVl62f.js} +7 -7
  34. package/dist/{login-B0mtU11X.js → login-D0fUoX-p.js} +4 -4
  35. package/dist/{login-qr-DY_i60f5.js → login-qr-ClBxstxZ.js} +10 -10
  36. package/dist/{manager-FAQPC0uO.js → manager-DSfEj66R.js} +12 -12
  37. package/dist/manager-runtime-BrZlGJsj.js +15 -0
  38. package/dist/{model-selection-wf3OY5DX.js → model-selection-CMEj8bpy.js} +130 -130
  39. package/dist/{outbound-Bw0dOVS7.js → outbound-BxIJyMzV.js} +6 -6
  40. package/dist/{outbound-attachment-1R6r9Pg_.js → outbound-attachment-CVJwpypG.js} +2 -2
  41. package/dist/{paths-C0HLtPu0.js → paths-CehYKFsO.js} +7 -7
  42. package/dist/{paths-hfkBoC7i.js → paths-DkxwiA8g.js} +5 -5
  43. package/dist/{pi-embedded-BAHaY-Oh.js → pi-embedded-CHNPEUAv.js} +159 -159
  44. package/dist/{pi-model-discovery-ItS07aJB.js → pi-model-discovery-D-r5y7kV.js} +7 -7
  45. package/dist/pi-model-discovery-runtime-DZQXYmdu.js +12 -0
  46. package/dist/{pi-tools.before-tool-call.runtime-D_mthvtC.js → pi-tools.before-tool-call.runtime-DagGpfw0.js} +10 -10
  47. package/dist/{proxy-fetch-c1ZUFFcO.js → proxy-fetch-BOh1PLOW.js} +1 -1
  48. package/dist/{pw-ai-Ok6KGelf.js → pw-ai-CoIUdns_.js} +9 -9
  49. package/dist/{qmd-manager-DhfEz4Ar.js → qmd-manager-DEscZz5_.js} +6 -6
  50. package/dist/{query-expansion-GqNV2iIE.js → query-expansion-BErUY8P2.js} +4 -4
  51. package/dist/runtime-whatsapp-login.runtime-ChqE9BkX.js +13 -0
  52. package/dist/runtime-whatsapp-outbound.runtime-yiy6jzKk.js +17 -0
  53. package/dist/{send-DPflcjM5.js → send-4rRrSKp9.js} +6 -6
  54. package/dist/{send-CEg4P96c.js → send-BKO1-P1t.js} +5 -5
  55. package/dist/{send-CS0ocZHl.js → send-EDBPXjTT.js} +3 -3
  56. package/dist/{send-6R8b9zsj.js → send-K2mAG7KC.js} +5 -5
  57. package/dist/{send-DwAoiT2p.js → send-V1MRV7QF.js} +25 -25
  58. package/dist/{session-BoIID5UR.js → session-CuVCho2m.js} +7 -7
  59. package/dist/{skill-commands-DhdiziMs.js → skill-commands-B55LOaMB.js} +9 -9
  60. package/dist/slash-commands.runtime-BchS0VkW.js +12 -0
  61. package/dist/slash-dispatch.runtime-BIKRY3fr.js +39 -0
  62. package/dist/slash-skill-commands.runtime-BP4jBHU9.js +13 -0
  63. package/dist/subagent-registry-runtime-DjEYzSyM.js +39 -0
  64. package/dist/{subsystem-C8z6w6xC.js → subsystem-DfXy5gUB.js} +14 -14
  65. package/dist/{tables-DQusRhkD.js → tables-BAGqh2XD.js} +1 -1
  66. package/dist/{target-errors-CfavnC9U.js → target-errors-CeBF8Pws.js} +1 -1
  67. package/dist/{tokens-BWDIKewp.js → tokens-6ul2IrzG.js} +1 -1
  68. package/dist/{web-CrcrTQ2c.js → web-BRSmQdtm.js} +39 -39
  69. package/dist/{whatsapp-actions-B0u0ZAme.js → whatsapp-actions-Dxb2K2Xh.js} +15 -15
  70. package/dist/{workspace-CWDYHR27.js → workspace-DGIcKCCW.js} +20 -20
  71. package/extensions/mfa-auth/README.md +33 -38
  72. package/extensions/mfa-auth/index.ts +97 -92
  73. package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal +1 -6
  74. package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal.cmd +17 -0
  75. package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal.ps1 +0 -13
  76. package/extensions/mfa-auth/node_modules/.bin/tsx +1 -6
  77. package/extensions/mfa-auth/node_modules/.bin/tsx.cmd +17 -0
  78. package/extensions/mfa-auth/node_modules/.bin/tsx.ps1 +0 -13
  79. package/extensions/mfa-auth/node_modules/.package-lock.json +103 -0
  80. package/extensions/mfa-auth/package-lock.json +115 -0
  81. package/extensions/mfa-auth/package.json +1 -1
  82. package/extensions/mfa-auth/src/auth-manager.ts +4 -2
  83. package/extensions/mfa-auth/src/config.ts +1 -4
  84. package/extensions/mfa-auth/src/dabby-client.test.ts +68 -147
  85. package/extensions/mfa-auth/src/dabby-client.ts +70 -89
  86. package/extensions/mfa-auth/src/feishu-support/index.ts +2 -2
  87. package/extensions/mfa-auth/src/notification-service.ts +19 -14
  88. package/extensions/mfa-auth/src/providers/base.ts +0 -1
  89. package/extensions/mfa-auth/src/providers/qr-code.ts +3 -506
  90. package/extensions/mfa-auth/src/server.ts +3 -223
  91. package/extensions/mfa-auth/src/types.ts +13 -36
  92. package/package.json +458 -460
  93. package/dist/compact.runtime-BEn3giMt.js +0 -39
  94. package/dist/deliver-runtime-DkQ3XzGv.js +0 -19
  95. package/dist/deps-send-discord.runtime-BLpqSj6s.js +0 -19
  96. package/dist/deps-send-imessage.runtime-BFzyYqvR.js +0 -18
  97. package/dist/deps-send-signal.runtime-DT0TYCy1.js +0 -17
  98. package/dist/deps-send-slack.runtime-BhaGFfMX.js +0 -17
  99. package/dist/deps-send-telegram.runtime-B6Cic9NX.js +0 -20
  100. package/dist/deps-send-whatsapp.runtime-WtEhIq2S.js +0 -43
  101. package/dist/image-runtime-B1LFYfQ2.js +0 -12
  102. package/dist/manager-runtime-Da7ME9vS.js +0 -15
  103. package/dist/pi-model-discovery-runtime-DjM7Z1fx.js +0 -12
  104. package/dist/runtime-whatsapp-login.runtime-D4BRhQkK.js +0 -13
  105. package/dist/runtime-whatsapp-outbound.runtime-DJPpS6g-.js +0 -17
  106. package/dist/slash-commands.runtime-Cu1lTjV9.js +0 -12
  107. package/dist/slash-dispatch.runtime-DRVJEF4l.js +0 -39
  108. package/dist/slash-skill-commands.runtime-C373PJjv.js +0 -13
  109. package/dist/subagent-registry-runtime-D7hWBo1G.js +0 -39
  110. package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal.CMD +0 -12
  111. package/extensions/mfa-auth/node_modules/.bin/tsx.CMD +0 -12
@@ -1,10 +1,10 @@
1
- import { b as getChildLogger, t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
2
- import { T as toWhatsappJid, u as escapeRegExp } from "./logger-ChbX1G7s.js";
3
- import { Ja as redactIdentifier, ao as loadConfig, ci as generateSecureUuid, dr as resolveWhatsAppAccount, fr as resolveWhatsAppMediaMaxBytes } from "./model-selection-wf3OY5DX.js";
4
- import { a as loadWebMedia, s as resolveMarkdownTableMode } from "./ir-CzM3SxId.js";
1
+ import { b as getChildLogger, t as createSubsystemLogger } from "./subsystem-DfXy5gUB.js";
2
+ import { T as toWhatsappJid, u as escapeRegExp } from "./logger-CbUVl62f.js";
3
+ import { Ja as redactIdentifier, ao as loadConfig, ci as generateSecureUuid, dr as resolveWhatsAppAccount, fr as resolveWhatsAppMediaMaxBytes } from "./model-selection-CMEj8bpy.js";
4
+ import { a as loadWebMedia, s as resolveMarkdownTableMode } from "./ir-CVtBjUiL.js";
5
5
  import { n as normalizePollInput } from "./polls-Dw-aNTWI.js";
6
- import { t as convertMarkdownTables } from "./tables-DQusRhkD.js";
7
- import { n as requireActiveWebListener } from "./active-listener-DYmI7imH.js";
6
+ import { t as convertMarkdownTables } from "./tables-BAGqh2XD.js";
7
+ import { n as requireActiveWebListener } from "./active-listener-BLd27Pxd.js";
8
8
  //#region src/markdown/whatsapp.ts
9
9
  /**
10
10
  * Convert standard Markdown formatting to WhatsApp-compatible markup.
@@ -1,5 +1,5 @@
1
- import { Ai as saveMediaBuffer } from "./model-selection-wf3OY5DX.js";
2
- import { a as loadWebMedia } from "./ir-CzM3SxId.js";
1
+ import { Ai as saveMediaBuffer } from "./model-selection-CMEj8bpy.js";
2
+ import { a as loadWebMedia } from "./ir-CVtBjUiL.js";
3
3
  import { t as buildOutboundMediaLoadOptions } from "./load-options-C-AlrR3n.js";
4
4
  //#region src/media/outbound-attachment.ts
5
5
  async function resolveOutboundAttachmentFromUrl(mediaUrl, maxBytes, options) {
@@ -1,11 +1,11 @@
1
- import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix } from "./paths-hfkBoC7i.js";
2
- import { C as resolveNodeRequireFromMeta, t as createSubsystemLogger } from "./subsystem-C8z6w6xC.js";
3
- import { A as isSymlinkOpenError, C as sameFileIdentity, D as hasNodeErrorCode, M as DEFAULT_AGENT_ID, O as isNotFoundPathError, T as resolveBoundaryPath, V as resolveAgentIdFromSessionKey, k as isPathInside, p as resolveDefaultAgentWorkspaceDir, tt as parseAgentSessionKey, w as BOUNDARY_PATH_ALIAS_POLICIES, z as normalizeAgentId } from "./workspace-CWDYHR27.js";
4
- import { i as logWarn, y as resolveUserPath } from "./logger-ChbX1G7s.js";
1
+ import { c as resolveStateDir, d as resolveRequiredHomeDir, l as expandHomePrefix } from "./paths-DkxwiA8g.js";
2
+ import { C as resolveNodeRequireFromMeta, t as createSubsystemLogger } from "./subsystem-DfXy5gUB.js";
3
+ import { A as isSymlinkOpenError, C as sameFileIdentity, D as hasNodeErrorCode, M as DEFAULT_AGENT_ID, O as isNotFoundPathError, T as resolveBoundaryPath, V as resolveAgentIdFromSessionKey, k as isPathInside, p as resolveDefaultAgentWorkspaceDir, tt as parseAgentSessionKey, w as BOUNDARY_PATH_ALIAS_POLICIES, z as normalizeAgentId } from "./workspace-DGIcKCCW.js";
4
+ import { i as logWarn, y as resolveUserPath } from "./logger-CbUVl62f.js";
5
5
  import fs from "node:fs/promises";
6
6
  import os from "node:os";
7
7
  import path from "node:path";
8
- import fs$1, { constants, readFileSync, statSync } from "node:fs";
8
+ import syncFs, { constants, readFileSync, statSync } from "node:fs";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { pipeline } from "node:stream/promises";
11
11
  //#region src/config/model-input.ts
@@ -187,7 +187,7 @@ function normalizePathForComparison(input) {
187
187
  const resolved = path.resolve(stripNullBytes(resolveUserPath(input)));
188
188
  let normalized = resolved;
189
189
  try {
190
- normalized = fs$1.realpathSync.native(resolved);
190
+ normalized = syncFs.realpathSync.native(resolved);
191
191
  } catch {}
192
192
  if (process.platform === "win32") return normalized.toLowerCase();
193
193
  return normalized;
@@ -1244,7 +1244,7 @@ function resolveStructuralSessionFallbackPath(candidateAbsPath, expectedAgentId)
1244
1244
  }
1245
1245
  function safeRealpathSync(filePath) {
1246
1246
  try {
1247
- return fs$1.realpathSync(filePath);
1247
+ return syncFs.realpathSync(filePath);
1248
1248
  } catch {
1249
1249
  return;
1250
1250
  }
@@ -1,6 +1,6 @@
1
1
  import os from "node:os";
2
2
  import path from "node:path";
3
- import fs from "node:fs";
3
+ import syncFs from "node:fs";
4
4
  //#region src/infra/home-dir.ts
5
5
  function normalize(value) {
6
6
  const trimmed = value?.trim();
@@ -92,10 +92,10 @@ function resolveStateDir(env = process.env, homedir = envHomedir(env)) {
92
92
  const newDir = newStateDir(effectiveHomedir);
93
93
  if (env.OPENCLAW_TEST_FAST === "1") return newDir;
94
94
  const legacyDirs = legacyStateDirs(effectiveHomedir);
95
- if (fs.existsSync(newDir)) return newDir;
95
+ if (syncFs.existsSync(newDir)) return newDir;
96
96
  const existingLegacy = legacyDirs.find((dir) => {
97
97
  try {
98
- return fs.existsSync(dir);
98
+ return syncFs.existsSync(dir);
99
99
  } catch {
100
100
  return false;
101
101
  }
@@ -135,7 +135,7 @@ function resolveConfigPathCandidate(env = process.env, homedir = envHomedir(env)
135
135
  if (env.OPENCLAW_TEST_FAST === "1") return resolveCanonicalConfigPath(env, resolveStateDir(env, homedir));
136
136
  const existing = resolveDefaultConfigCandidates(env, homedir).find((candidate) => {
137
137
  try {
138
- return fs.existsSync(candidate);
138
+ return syncFs.existsSync(candidate);
139
139
  } catch {
140
140
  return false;
141
141
  }
@@ -153,7 +153,7 @@ function resolveConfigPath(env = process.env, stateDir = resolveStateDir(env, en
153
153
  const stateOverride = env.OPENCLAW_STATE_DIR?.trim();
154
154
  const existing = [path.join(stateDir, CONFIG_FILENAME), ...LEGACY_CONFIG_FILENAMES.map((name) => path.join(stateDir, name))].find((candidate) => {
155
155
  try {
156
- return fs.existsSync(candidate);
156
+ return syncFs.existsSync(candidate);
157
157
  } catch {
158
158
  return false;
159
159
  }