cclawd 1.0.0 → 1.0.1
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/{active-listener-DYmI7imH.js → active-listener-Dkhmfuwx.js} +2 -2
- package/dist/{api-key-rotation-DLU4jvSu.js → api-key-rotation-BOfI3cG3.js} +1 -1
- package/dist/{audio-preflight-C9TMbRb4.js → audio-preflight-CtkZ5SAs.js} +15 -15
- package/dist/{audio-transcription-runner-Q5zG_hYd.js → audio-transcription-runner-CbPqoiHX.js} +10 -10
- package/dist/{audit-membership-runtime-DhxSwFnF.js → audit-membership-runtime-hXUuer4x.js} +6 -6
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +35 -35
- package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
- package/dist/bundled/command-logger/handler.js +2 -2
- package/dist/bundled/session-memory/handler.js +35 -35
- package/dist/{channel-activity-Bx08UTAg.js → channel-activity-DWAER4wd.js} +2 -2
- package/dist/{commands-registry-llLVCTH9.js → commands-registry-BUyiA7nE.js} +2 -2
- package/dist/compact.runtime-DpcZpcTl.js +39 -0
- package/dist/{deliver-DJf2ZBpe.js → deliver-aHOaRbkt.js} +19 -19
- package/dist/deliver-runtime-D4bCsr6d.js +19 -0
- package/dist/deps-send-discord.runtime-BziKU-pE.js +19 -0
- package/dist/deps-send-imessage.runtime-CFRnDTqp.js +18 -0
- package/dist/deps-send-signal.runtime-BuOtABJm.js +17 -0
- package/dist/deps-send-slack.runtime-BOLqvMxW.js +17 -0
- package/dist/deps-send-telegram.runtime-DeEoFLv5.js +20 -0
- package/dist/deps-send-whatsapp.runtime-CG1uXYLY.js +43 -0
- package/dist/{diagnostic-BCCMF3O_.js → diagnostic-BdcXX9iJ.js} +2 -2
- package/dist/{env-aYXLHjfZ.js → env-lw2hsIUY.js} +1 -1
- package/dist/{fetch-bvgIiupu.js → fetch-C0iyt-Iz.js} +3 -3
- package/dist/{fetch-DCTUdr1U.js → fetch-D9NUULbj.js} +5 -5
- package/dist/{fetch-guard-CqpEmMQ2.js → fetch-guard-B5ZMnGaN.js} +2 -2
- package/dist/{frontmatter-DjZuS525.js → frontmatter-C_obXuTp.js} +3 -3
- package/dist/{github-copilot-token-CQmATy5E.js → github-copilot-token-8N63GdbE.js} +7 -7
- package/dist/{image-Q8E1-lZn.js → image-4x07m4Jl.js} +4 -4
- package/dist/image-runtime-smkMrIol.js +12 -0
- package/dist/{ir-CzM3SxId.js → ir-CsgNUpOU.js} +6 -6
- package/dist/llm-slug-generator.js +35 -35
- package/dist/{logger-ChbX1G7s.js → logger-CbUVl62f.js} +7 -7
- package/dist/{login-B0mtU11X.js → login-p_O59TVQ.js} +4 -4
- package/dist/{login-qr-DY_i60f5.js → login-qr-BCJpDsAy.js} +10 -10
- package/dist/{manager-FAQPC0uO.js → manager-CwYv8O3T.js} +12 -12
- package/dist/manager-runtime-D_jEoBr9.js +15 -0
- package/dist/{model-selection-wf3OY5DX.js → model-selection-Cv2Puf5z.js} +122 -122
- package/dist/{outbound-Bw0dOVS7.js → outbound-Chpiwybe.js} +6 -6
- package/dist/{outbound-attachment-1R6r9Pg_.js → outbound-attachment-BnAVJDLe.js} +2 -2
- package/dist/{paths-C0HLtPu0.js → paths-CehYKFsO.js} +7 -7
- package/dist/{paths-hfkBoC7i.js → paths-DkxwiA8g.js} +5 -5
- package/dist/{pi-embedded-BAHaY-Oh.js → pi-embedded-CJVNBk0y.js} +150 -150
- package/dist/pi-model-discovery-7IzK0Uc3.js +131 -0
- package/dist/pi-model-discovery-runtime-DABef3qy.js +12 -0
- package/dist/{pi-tools.before-tool-call.runtime-D_mthvtC.js → pi-tools.before-tool-call.runtime-BP2UvGJb.js} +10 -10
- package/dist/plugin-sdk/active-listener-CN-tMEvN.js +35 -0
- package/dist/plugin-sdk/api-key-rotation-CimGYMBc.js +176 -0
- package/dist/plugin-sdk/audio-preflight-C-xXBoE2.js +51 -0
- package/dist/plugin-sdk/audio-transcription-runner-CTIHpebA.js +2173 -0
- package/dist/plugin-sdk/audit-membership-runtime-BFatB2LJ.js +58 -0
- package/dist/plugin-sdk/channel-activity-DO0FEzyj.js +95 -0
- package/dist/plugin-sdk/channel-web-Da-__nUF.js +2238 -0
- package/dist/plugin-sdk/commands-registry-6no2NNrY.js +1118 -0
- package/dist/plugin-sdk/compact.runtime-CCoclu5e.js +35 -0
- package/dist/plugin-sdk/compat.js +35 -35
- package/dist/plugin-sdk/config-B9ODwgpz.js +37426 -0
- package/dist/plugin-sdk/deliver-B1fFpKjV.js +1757 -0
- package/dist/plugin-sdk/deliver-runtime-DB-VRMe1.js +15 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-DklqycYG.js +15 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-Chs8zeon.js +14 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-clW9aSJP.js +13 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-BUx0LYY1.js +13 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-LECSHgMG.js +16 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-D2d65fw0.js +40 -0
- package/dist/plugin-sdk/diagnostic-CxIvS-C2.js +315 -0
- package/dist/plugin-sdk/dispatch-BqlR4dPx.js +105863 -0
- package/dist/plugin-sdk/env-b9k1PHMI.js +34 -0
- package/dist/plugin-sdk/fetch-PoxzAANT.js +326 -0
- package/dist/plugin-sdk/fetch-guard-4UVSZ0uS.js +164 -0
- package/dist/plugin-sdk/image-Ch6M4tnJ.js +2420 -0
- package/dist/plugin-sdk/image-runtime-CSh2o5wY.js +8 -0
- package/dist/plugin-sdk/ir-CugsqGH8.js +1312 -0
- package/dist/plugin-sdk/local-roots-adnEg9zb.js +217 -0
- package/dist/plugin-sdk/logger-D6zRubj0.js +1164 -0
- package/dist/plugin-sdk/login-CYvkQ0At.js +54 -0
- package/dist/plugin-sdk/login-qr-ll4NtaT5.js +316 -0
- package/dist/plugin-sdk/manager-CHy8IclH.js +3959 -0
- package/dist/plugin-sdk/manager-runtime-C70EkEr7.js +11 -0
- package/dist/plugin-sdk/outbound-Wzs2iN7X.js +216 -0
- package/dist/plugin-sdk/outbound-attachment-khXJwucX.js +17 -0
- package/dist/plugin-sdk/paths-BtVqCdw4.js +3063 -0
- package/dist/{pi-model-discovery-ItS07aJB.js → plugin-sdk/pi-model-discovery-Dh4ziodY.js} +2 -2
- package/dist/plugin-sdk/pi-model-discovery-runtime-b83Xe-HT.js +8 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-C1z5CDBF.js +349 -0
- package/dist/{proxy-fetch-c1ZUFFcO.js → plugin-sdk/proxy-fetch-CJEmoBxi.js} +1 -1
- package/dist/plugin-sdk/pw-ai-Dj3Cvlzl.js +1990 -0
- package/dist/plugin-sdk/qmd-manager-egHUAseQ.js +1581 -0
- package/dist/plugin-sdk/resolve-outbound-target-BiICvIKs.js +38 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-DNApufzW.js +9 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-CBmtfIQ8.js +13 -0
- package/dist/plugin-sdk/send-CScblaI4.js +532 -0
- package/dist/plugin-sdk/send-CeHhnld6.js +407 -0
- package/dist/plugin-sdk/send-DP_c8JfR.js +3277 -0
- package/dist/plugin-sdk/send-Dc5fI6e8.js +495 -0
- package/dist/plugin-sdk/send-l-77_s1_.js +2507 -0
- package/dist/plugin-sdk/session-CkOKZaqa.js +166 -0
- package/dist/plugin-sdk/skill-commands-BohYCgkq.js +336 -0
- package/dist/plugin-sdk/slash-commands.runtime-DpLfVTM6.js +8 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-CASMHwpm.js +35 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-D7rrJEci.js +9 -0
- package/dist/plugin-sdk/sqlite-CJE3X7Mv.js +1005 -0
- package/dist/plugin-sdk/subagent-registry-runtime-B1oo5bih.js +35 -0
- package/dist/plugin-sdk/tables-D5VgpTmm.js +53 -0
- package/dist/plugin-sdk/target-errors-C6zZ_OpA.js +191 -0
- package/dist/{tokens-BWDIKewp.js → plugin-sdk/tokens-DUnJnpMS.js} +1 -1
- package/dist/plugin-sdk/web-TfUM1nSi.js +39 -0
- package/dist/plugin-sdk/whatsapp-actions-DuWJ0j1r.js +71 -0
- package/dist/proxy-fetch-BOh1PLOW.js +54 -0
- package/dist/{pw-ai-Ok6KGelf.js → pw-ai-DwH5GpEO.js} +9 -9
- package/dist/{qmd-manager-DhfEz4Ar.js → qmd-manager-DEscZz5_.js} +6 -6
- package/dist/{query-expansion-GqNV2iIE.js → query-expansion-BErUY8P2.js} +4 -4
- package/dist/runtime-whatsapp-login.runtime-BI3U306v.js +13 -0
- package/dist/runtime-whatsapp-outbound.runtime-Bsc2uD09.js +17 -0
- package/dist/{send-DwAoiT2p.js → send-BDnOgWIp.js} +25 -25
- package/dist/{send-CS0ocZHl.js → send-C-Q_WPMf.js} +3 -3
- package/dist/{send-6R8b9zsj.js → send-DUibfNQD.js} +5 -5
- package/dist/{send-DPflcjM5.js → send-DtBvCnPQ.js} +6 -6
- package/dist/{send-CEg4P96c.js → send-ORtn50qg.js} +5 -5
- package/dist/{session-BoIID5UR.js → session-B7imi6T5.js} +7 -7
- package/dist/{skill-commands-DhdiziMs.js → skill-commands-B9brPuiL.js} +9 -9
- package/dist/slash-commands.runtime-Cf6ygfBp.js +12 -0
- package/dist/slash-dispatch.runtime-CsmvhO5K.js +39 -0
- package/dist/slash-skill-commands.runtime-CX7stIEP.js +13 -0
- package/dist/subagent-registry-runtime-B_S1nf7y.js +39 -0
- package/dist/{subsystem-C8z6w6xC.js → subsystem-DfXy5gUB.js} +14 -14
- package/dist/{tables-DQusRhkD.js → tables-CjQqTOdD.js} +1 -1
- package/dist/{target-errors-CfavnC9U.js → target-errors-BZE1mc-W.js} +1 -1
- package/dist/tokens-6ul2IrzG.js +50 -0
- package/dist/{web-CrcrTQ2c.js → web-Cd8yK1Zq.js} +39 -39
- package/dist/{whatsapp-actions-B0u0ZAme.js → whatsapp-actions-CYEzUMBI.js} +15 -15
- package/dist/{workspace-CWDYHR27.js → workspace-DGIcKCCW.js} +20 -20
- package/extensions/mfa-auth/README.md +33 -38
- package/extensions/mfa-auth/index.ts +94 -89
- package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal +1 -6
- package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal.cmd +17 -0
- package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal.ps1 +0 -13
- package/extensions/mfa-auth/node_modules/.bin/tsx +1 -6
- package/extensions/mfa-auth/node_modules/.bin/tsx.cmd +17 -0
- package/extensions/mfa-auth/node_modules/.bin/tsx.ps1 +0 -13
- package/extensions/mfa-auth/node_modules/.package-lock.json +103 -0
- package/extensions/mfa-auth/package-lock.json +115 -0
- package/extensions/mfa-auth/package.json +1 -1
- package/extensions/mfa-auth/src/auth-manager.ts +4 -2
- package/extensions/mfa-auth/src/config.ts +1 -4
- package/extensions/mfa-auth/src/dabby-client.test.ts +68 -147
- package/extensions/mfa-auth/src/dabby-client.ts +70 -89
- package/extensions/mfa-auth/src/feishu-support/index.ts +2 -2
- package/extensions/mfa-auth/src/notification-service.ts +17 -12
- package/extensions/mfa-auth/src/providers/base.ts +0 -1
- package/extensions/mfa-auth/src/providers/qr-code.ts +3 -506
- package/extensions/mfa-auth/src/server.ts +3 -223
- package/extensions/mfa-auth/src/types.ts +13 -36
- package/package.json +456 -458
- package/dist/compact.runtime-BEn3giMt.js +0 -39
- package/dist/deliver-runtime-DkQ3XzGv.js +0 -19
- package/dist/deps-send-discord.runtime-BLpqSj6s.js +0 -19
- package/dist/deps-send-imessage.runtime-BFzyYqvR.js +0 -18
- package/dist/deps-send-signal.runtime-DT0TYCy1.js +0 -17
- package/dist/deps-send-slack.runtime-BhaGFfMX.js +0 -17
- package/dist/deps-send-telegram.runtime-B6Cic9NX.js +0 -20
- package/dist/deps-send-whatsapp.runtime-WtEhIq2S.js +0 -43
- package/dist/image-runtime-B1LFYfQ2.js +0 -12
- package/dist/manager-runtime-Da7ME9vS.js +0 -15
- package/dist/pi-model-discovery-runtime-DjM7Z1fx.js +0 -12
- package/dist/runtime-whatsapp-login.runtime-D4BRhQkK.js +0 -13
- package/dist/runtime-whatsapp-outbound.runtime-DJPpS6g-.js +0 -17
- package/dist/slash-commands.runtime-Cu1lTjV9.js +0 -12
- package/dist/slash-dispatch.runtime-DRVJEF4l.js +0 -39
- package/dist/slash-skill-commands.runtime-C373PJjv.js +0 -13
- package/dist/subagent-registry-runtime-D7hWBo1G.js +0 -39
- package/extensions/mfa-auth/node_modules/.bin/qrcode-terminal.CMD +0 -12
- package/extensions/mfa-auth/node_modules/.bin/tsx.CMD +0 -12
|
@@ -9,13 +9,8 @@ case `uname` in
|
|
|
9
9
|
;;
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/bin/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/bin/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
12
|
if [ -x "$basedir/node" ]; then
|
|
18
13
|
exec "$basedir/node" "$basedir/../qrcode-terminal/bin/qrcode-terminal.js" "$@"
|
|
19
|
-
else
|
|
14
|
+
else
|
|
20
15
|
exec node "$basedir/../qrcode-terminal/bin/qrcode-terminal.js" "$@"
|
|
21
16
|
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@ECHO off
|
|
2
|
+
GOTO start
|
|
3
|
+
:find_dp0
|
|
4
|
+
SET dp0=%~dp0
|
|
5
|
+
EXIT /b
|
|
6
|
+
:start
|
|
7
|
+
SETLOCAL
|
|
8
|
+
CALL :find_dp0
|
|
9
|
+
|
|
10
|
+
IF EXIST "%dp0%\node.exe" (
|
|
11
|
+
SET "_prog=%dp0%\node.exe"
|
|
12
|
+
) ELSE (
|
|
13
|
+
SET "_prog=node"
|
|
14
|
+
SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\qrcode-terminal\bin\qrcode-terminal.js" %*
|
|
@@ -2,23 +2,11 @@
|
|
|
2
2
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
3
|
|
|
4
4
|
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\qrcode-terminal@0.12.0\node_modules\qrcode-terminal\bin\node_modules;C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\qrcode-terminal@0.12.0\node_modules\qrcode-terminal\node_modules;C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\qrcode-terminal@0.12.0\node_modules;C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\node_modules"
|
|
8
5
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
6
|
# Fix case when both the Windows and Linux builds of Node
|
|
10
7
|
# are installed in the same directory
|
|
11
8
|
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/bin/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
9
|
}
|
|
21
|
-
|
|
22
10
|
$ret=0
|
|
23
11
|
if (Test-Path "$basedir/node$exe") {
|
|
24
12
|
# Support pipeline input
|
|
@@ -37,5 +25,4 @@ if (Test-Path "$basedir/node$exe") {
|
|
|
37
25
|
}
|
|
38
26
|
$ret=$LASTEXITCODE
|
|
39
27
|
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
28
|
exit $ret
|
|
@@ -9,13 +9,8 @@ case `uname` in
|
|
|
9
9
|
;;
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
12
|
if [ -x "$basedir/node" ]; then
|
|
18
13
|
exec "$basedir/node" "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
19
|
-
else
|
|
14
|
+
else
|
|
20
15
|
exec node "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
21
16
|
fi
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@ECHO off
|
|
2
|
+
GOTO start
|
|
3
|
+
:find_dp0
|
|
4
|
+
SET dp0=%~dp0
|
|
5
|
+
EXIT /b
|
|
6
|
+
:start
|
|
7
|
+
SETLOCAL
|
|
8
|
+
CALL :find_dp0
|
|
9
|
+
|
|
10
|
+
IF EXIST "%dp0%\node.exe" (
|
|
11
|
+
SET "_prog=%dp0%\node.exe"
|
|
12
|
+
) ELSE (
|
|
13
|
+
SET "_prog=node"
|
|
14
|
+
SET PATHEXT=%PATHEXT:;.JS;=;%
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\tsx\dist\cli.mjs" %*
|
|
@@ -2,23 +2,11 @@
|
|
|
2
2
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
|
3
3
|
|
|
4
4
|
$exe=""
|
|
5
|
-
$pathsep=":"
|
|
6
|
-
$env_node_path=$env:NODE_PATH
|
|
7
|
-
$new_node_path="C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\dist\node_modules;C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\tsx@4.21.0\node_modules\tsx\node_modules;C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\tsx@4.21.0\node_modules;C:\Users\asta1\PycharmProjects\cclawd\node_modules\.pnpm\node_modules"
|
|
8
5
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
|
9
6
|
# Fix case when both the Windows and Linux builds of Node
|
|
10
7
|
# are installed in the same directory
|
|
11
8
|
$exe=".exe"
|
|
12
|
-
$pathsep=";"
|
|
13
|
-
} else {
|
|
14
|
-
$new_node_path="/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/dist/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/tsx@4.21.0/node_modules:/mnt/c/Users/asta1/PycharmProjects/cclawd/node_modules/.pnpm/node_modules"
|
|
15
|
-
}
|
|
16
|
-
if ([string]::IsNullOrEmpty($env_node_path)) {
|
|
17
|
-
$env:NODE_PATH=$new_node_path
|
|
18
|
-
} else {
|
|
19
|
-
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
|
|
20
9
|
}
|
|
21
|
-
|
|
22
10
|
$ret=0
|
|
23
11
|
if (Test-Path "$basedir/node$exe") {
|
|
24
12
|
# Support pipeline input
|
|
@@ -37,5 +25,4 @@ if (Test-Path "$basedir/node$exe") {
|
|
|
37
25
|
}
|
|
38
26
|
$ret=$LASTEXITCODE
|
|
39
27
|
}
|
|
40
|
-
$env:NODE_PATH=$env_node_path
|
|
41
28
|
exit $ret
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "openclaw-mfa-auth",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"../../node_modules/.pnpm/@larksuiteoapi+node-sdk@1.59.0/node_modules/@larksuiteoapi/node-sdk": {
|
|
8
|
+
"version": "1.59.0",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"axios": "~1.13.3",
|
|
12
|
+
"lodash.identity": "^3.0.0",
|
|
13
|
+
"lodash.merge": "^4.6.2",
|
|
14
|
+
"lodash.pickby": "^4.6.0",
|
|
15
|
+
"protobufjs": "^7.2.6",
|
|
16
|
+
"qs": "^6.14.2",
|
|
17
|
+
"ws": "^8.19.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@koa/router": "^12.0.0",
|
|
21
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
22
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
23
|
+
"@types/jest": "^28.1.3",
|
|
24
|
+
"@types/lodash.merge": "^4.6.7",
|
|
25
|
+
"@types/lodash.pick": "^4.4.7",
|
|
26
|
+
"@types/qs": "^6.9.16",
|
|
27
|
+
"@types/ws": "^8.5.10",
|
|
28
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
29
|
+
"body-parser": "^1.20.1",
|
|
30
|
+
"eslint": "^8.17.0",
|
|
31
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
32
|
+
"eslint-config-prettier": "^8.5.0",
|
|
33
|
+
"eslint-plugin-import": "^2.26.0",
|
|
34
|
+
"express": "^4.18.2",
|
|
35
|
+
"jest": "^28.1.1",
|
|
36
|
+
"koa": "^2.13.4",
|
|
37
|
+
"koa-body": "^5.0.0",
|
|
38
|
+
"prettier": "2.6.2",
|
|
39
|
+
"rollup": "^2.75.5",
|
|
40
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
41
|
+
"rollup-plugin-license": "^2.8.1",
|
|
42
|
+
"ts-jest": "^28.0.5",
|
|
43
|
+
"ts-node": "^10.8.1",
|
|
44
|
+
"tsconfig-paths": "^4.0.0",
|
|
45
|
+
"tslib": "^2.4.0",
|
|
46
|
+
"typescript": "^4.7.3"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"../../node_modules/.pnpm/@types+node@20.19.37/node_modules/@types/node": {
|
|
50
|
+
"version": "20.19.37",
|
|
51
|
+
"dev": true,
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"undici-types": "~6.21.0"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal": {
|
|
58
|
+
"version": "0.12.0",
|
|
59
|
+
"bin": {
|
|
60
|
+
"qrcode-terminal": "bin/qrcode-terminal.js"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"expect.js": "*",
|
|
64
|
+
"jshint": "*",
|
|
65
|
+
"mocha": "*",
|
|
66
|
+
"sinon": "*"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx": {
|
|
70
|
+
"version": "4.21.0",
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"esbuild": "~0.27.0",
|
|
74
|
+
"get-tsconfig": "^4.7.5"
|
|
75
|
+
},
|
|
76
|
+
"bin": {
|
|
77
|
+
"tsx": "dist/cli.mjs"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18.0.0"
|
|
81
|
+
},
|
|
82
|
+
"optionalDependencies": {
|
|
83
|
+
"fsevents": "~2.3.3"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"node_modules/@larksuiteoapi/node-sdk": {
|
|
87
|
+
"resolved": "../../node_modules/.pnpm/@larksuiteoapi+node-sdk@1.59.0/node_modules/@larksuiteoapi/node-sdk",
|
|
88
|
+
"link": true
|
|
89
|
+
},
|
|
90
|
+
"node_modules/@types/node": {
|
|
91
|
+
"resolved": "../../node_modules/.pnpm/@types+node@20.19.37/node_modules/@types/node",
|
|
92
|
+
"link": true
|
|
93
|
+
},
|
|
94
|
+
"node_modules/qrcode-terminal": {
|
|
95
|
+
"resolved": "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal",
|
|
96
|
+
"link": true
|
|
97
|
+
},
|
|
98
|
+
"node_modules/tsx": {
|
|
99
|
+
"resolved": "../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx",
|
|
100
|
+
"link": true
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "openclaw-mfa-auth",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"": {
|
|
8
|
+
"name": "openclaw-mfa-auth",
|
|
9
|
+
"version": "1.0.0",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@larksuiteoapi/node-sdk": "^1.59.0",
|
|
12
|
+
"qrcode-terminal": "^0.12.0",
|
|
13
|
+
"tsx": "^4.21.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/node": "^20.0.0"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"../../node_modules/.pnpm/@larksuiteoapi+node-sdk@1.59.0/node_modules/@larksuiteoapi/node-sdk": {
|
|
20
|
+
"version": "1.59.0",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"axios": "~1.13.3",
|
|
24
|
+
"lodash.identity": "^3.0.0",
|
|
25
|
+
"lodash.merge": "^4.6.2",
|
|
26
|
+
"lodash.pickby": "^4.6.0",
|
|
27
|
+
"protobufjs": "^7.2.6",
|
|
28
|
+
"qs": "^6.14.2",
|
|
29
|
+
"ws": "^8.19.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@koa/router": "^12.0.0",
|
|
33
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
34
|
+
"@rollup/plugin-typescript": "^8.3.2",
|
|
35
|
+
"@types/jest": "^28.1.3",
|
|
36
|
+
"@types/lodash.merge": "^4.6.7",
|
|
37
|
+
"@types/lodash.pick": "^4.4.7",
|
|
38
|
+
"@types/qs": "^6.9.16",
|
|
39
|
+
"@types/ws": "^8.5.10",
|
|
40
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
41
|
+
"body-parser": "^1.20.1",
|
|
42
|
+
"eslint": "^8.17.0",
|
|
43
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
44
|
+
"eslint-config-prettier": "^8.5.0",
|
|
45
|
+
"eslint-plugin-import": "^2.26.0",
|
|
46
|
+
"express": "^4.18.2",
|
|
47
|
+
"jest": "^28.1.1",
|
|
48
|
+
"koa": "^2.13.4",
|
|
49
|
+
"koa-body": "^5.0.0",
|
|
50
|
+
"prettier": "2.6.2",
|
|
51
|
+
"rollup": "^2.75.5",
|
|
52
|
+
"rollup-plugin-dts": "^4.2.2",
|
|
53
|
+
"rollup-plugin-license": "^2.8.1",
|
|
54
|
+
"ts-jest": "^28.0.5",
|
|
55
|
+
"ts-node": "^10.8.1",
|
|
56
|
+
"tsconfig-paths": "^4.0.0",
|
|
57
|
+
"tslib": "^2.4.0",
|
|
58
|
+
"typescript": "^4.7.3"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"../../node_modules/.pnpm/@types+node@20.19.37/node_modules/@types/node": {
|
|
62
|
+
"version": "20.19.37",
|
|
63
|
+
"dev": true,
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"undici-types": "~6.21.0"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal": {
|
|
70
|
+
"version": "0.12.0",
|
|
71
|
+
"bin": {
|
|
72
|
+
"qrcode-terminal": "bin/qrcode-terminal.js"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"expect.js": "*",
|
|
76
|
+
"jshint": "*",
|
|
77
|
+
"mocha": "*",
|
|
78
|
+
"sinon": "*"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx": {
|
|
82
|
+
"version": "4.21.0",
|
|
83
|
+
"license": "MIT",
|
|
84
|
+
"dependencies": {
|
|
85
|
+
"esbuild": "~0.27.0",
|
|
86
|
+
"get-tsconfig": "^4.7.5"
|
|
87
|
+
},
|
|
88
|
+
"bin": {
|
|
89
|
+
"tsx": "dist/cli.mjs"
|
|
90
|
+
},
|
|
91
|
+
"engines": {
|
|
92
|
+
"node": ">=18.0.0"
|
|
93
|
+
},
|
|
94
|
+
"optionalDependencies": {
|
|
95
|
+
"fsevents": "~2.3.3"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"node_modules/@larksuiteoapi/node-sdk": {
|
|
99
|
+
"resolved": "../../node_modules/.pnpm/@larksuiteoapi+node-sdk@1.59.0/node_modules/@larksuiteoapi/node-sdk",
|
|
100
|
+
"link": true
|
|
101
|
+
},
|
|
102
|
+
"node_modules/@types/node": {
|
|
103
|
+
"resolved": "../../node_modules/.pnpm/@types+node@20.19.37/node_modules/@types/node",
|
|
104
|
+
"link": true
|
|
105
|
+
},
|
|
106
|
+
"node_modules/qrcode-terminal": {
|
|
107
|
+
"resolved": "../../node_modules/.pnpm/qrcode-terminal@0.12.0/node_modules/qrcode-terminal",
|
|
108
|
+
"link": true
|
|
109
|
+
},
|
|
110
|
+
"node_modules/tsx": {
|
|
111
|
+
"resolved": "../../node_modules/.pnpm/tsx@4.21.0/node_modules/tsx",
|
|
112
|
+
"link": true
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -171,12 +171,12 @@ export class AuthManager {
|
|
|
171
171
|
return this.providers.get(methodType);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
generateSession(
|
|
174
|
+
async generateSession(
|
|
175
175
|
userId: string,
|
|
176
176
|
originalContext: PendingAuthContext,
|
|
177
177
|
authMethod: string = this.config.defaultAuthMethod,
|
|
178
178
|
extraFields?: Partial<AuthSession>,
|
|
179
|
-
): AuthSession | null {
|
|
179
|
+
): Promise<AuthSession | null> {
|
|
180
180
|
const provider = this.getProvider(authMethod);
|
|
181
181
|
if (!provider) {
|
|
182
182
|
console.error(`[mfa-auth] Auth provider not found: ${authMethod}`);
|
|
@@ -195,6 +195,8 @@ export class AuthManager {
|
|
|
195
195
|
|
|
196
196
|
this.sessions.set(sessionId, session);
|
|
197
197
|
|
|
198
|
+
await provider.initialize(session);
|
|
199
|
+
|
|
198
200
|
if (this.config.debug) {
|
|
199
201
|
console.log(`[mfa-auth] Generated session: ${sessionId}`);
|
|
200
202
|
console.log(`[mfa-auth] User ID: ${userId}`);
|
|
@@ -19,7 +19,6 @@ export const config: MfaConfig = {
|
|
|
19
19
|
timeout: 5 * 60 * 1000,
|
|
20
20
|
verificationDuration:
|
|
21
21
|
Number.parseInt(process.env.MFA_VERIFICATION_DURATION || "", 10) || 2 * 60 * 1000,
|
|
22
|
-
port: 18801,
|
|
23
22
|
domain: process.env.MFA_AUTH_DOMAIN || "",
|
|
24
23
|
allowlistUsers: [],
|
|
25
24
|
enabledAuthMethods: ["qr-code"],
|
|
@@ -38,9 +37,7 @@ export const config: MfaConfig = {
|
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
export const dabbyConfig: DabbyConfig = {
|
|
41
|
-
|
|
42
|
-
clientSecret: process.env.DABBY_CLIENT_SECRET || "",
|
|
40
|
+
apiKey: process.env.MFA_AUTH_API_KEY || "",
|
|
43
41
|
apiBaseUrl: process.env.DABBY_API_BASE_URL || "",
|
|
44
|
-
tokenCacheDuration: 7000000,
|
|
45
42
|
pollInterval: 2000,
|
|
46
43
|
};
|