openclaw-multi-auto 1.5.2 → 1.5.4
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/{audio-preflight-5FEeDooz.js → audio-preflight-DDBLZBdb.js} +4 -4
- package/dist/{audio-transcription-runner-B-UvoDjZ.js → audio-transcription-runner-DZbSWT9E.js} +1 -1
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-D45SyhQL.js → chrome-CMU2WVFh.js} +8 -8
- package/dist/{deliver-B9cys0EZ.js → deliver-BXVcFIHL.js} +1 -1
- package/dist/{deliver-runtime-DhaQJ0pI.js → deliver-runtime-DTaIS-1i.js} +3 -3
- package/dist/{deps-send-whatsapp.runtime-DvTL2tzN.js → deps-send-whatsapp.runtime-CIZqFAqb.js} +7 -7
- package/dist/extensionAPI.js +6 -6
- package/dist/{image-DAOPwVXi.js → image-BCVLo0qw.js} +1 -1
- package/dist/{image-runtime-wlCLVvVv.js → image-runtime-DtCKpMPZ.js} +3 -3
- package/dist/{pi-embedded-DYU79yGe.js → pi-embedded-CgQ_W6Xs.js} +24 -24
- package/dist/{pi-embedded-helpers-uTRAmQ4n.js → pi-embedded-helpers-CwuBTKza.js} +3 -3
- package/dist/plugin-sdk/accounts-CJWOBzwB.js +35 -0
- package/dist/plugin-sdk/accounts-DP1-L-QS.js +288 -0
- package/dist/plugin-sdk/accounts-DZhWlEg3.js +46 -0
- package/dist/plugin-sdk/active-listener-B_sLJTXM.js +50 -0
- package/dist/plugin-sdk/api-key-rotation-BRE4X2tf.js +181 -0
- package/dist/plugin-sdk/audio-preflight-DGEUDxxR.js +69 -0
- package/dist/plugin-sdk/audio-transcription-runner-DkoPNPYt.js +2176 -0
- package/dist/plugin-sdk/audit-membership-runtime-DSBHHw7o.js +58 -0
- package/dist/plugin-sdk/bluebubbles.js +2 -2
- package/dist/plugin-sdk/channel-activity-F3d0yUwy.js +94 -0
- package/dist/plugin-sdk/channel-web-QF7EpjeP.js +2256 -0
- package/dist/plugin-sdk/chrome-BXoCyCkY.js +2415 -0
- package/dist/plugin-sdk/commands-registry-t7cXBTfN.js +1125 -0
- package/dist/plugin-sdk/config-BkEnz2Po.js +17913 -0
- package/dist/plugin-sdk/deliver-B6AG_l67.js +1694 -0
- package/dist/plugin-sdk/deliver-runtime-D585kJZc.js +32 -0
- package/dist/plugin-sdk/deps-send-discord.runtime-a_OKY2js.js +23 -0
- package/dist/plugin-sdk/deps-send-imessage.runtime-Baxy9TD4.js +22 -0
- package/dist/plugin-sdk/deps-send-signal.runtime-BwXoCrFl.js +21 -0
- package/dist/plugin-sdk/deps-send-slack.runtime-CLmKjgso.js +19 -0
- package/dist/plugin-sdk/deps-send-telegram.runtime-BKfdBKnZ.js +24 -0
- package/dist/plugin-sdk/deps-send-whatsapp.runtime-BOTwkbx_.js +57 -0
- package/dist/plugin-sdk/diagnostic-CsP-lEkI.js +319 -0
- package/dist/plugin-sdk/errors-DaiAM-yU.js +54 -0
- package/dist/plugin-sdk/fetch-guard-DETCcJzQ.js +156 -0
- package/dist/plugin-sdk/fs-safe-B8y811FR.js +352 -0
- package/dist/plugin-sdk/image-DjTEkYZE.js +2310 -0
- package/dist/plugin-sdk/image-ops-BSiMpAw4.js +584 -0
- package/dist/plugin-sdk/image-runtime-6xPp8m5a.js +25 -0
- package/dist/plugin-sdk/index.js +50 -50
- package/dist/plugin-sdk/ir-DQ7_HbvK.js +1296 -0
- package/dist/plugin-sdk/irc.js +2 -2
- package/dist/plugin-sdk/local-roots-BUP4YBmR.js +186 -0
- package/dist/plugin-sdk/logger-CZY9KIoY.js +1163 -0
- package/dist/plugin-sdk/login-BxEKLlCo.js +57 -0
- package/dist/plugin-sdk/login-qr-BQIpMPr9.js +320 -0
- package/dist/plugin-sdk/manager-I6KbPihW.js +3917 -0
- package/dist/plugin-sdk/manager-runtime-CFfYYWIQ.js +15 -0
- package/dist/plugin-sdk/outbound-NS6UHnB6.js +212 -0
- package/dist/plugin-sdk/outbound-attachment-Dy6fyf6H.js +19 -0
- package/dist/plugin-sdk/path-alias-guards-DBjLbIX_.js +43 -0
- package/dist/plugin-sdk/paths-vTM3Lh3X.js +166 -0
- package/dist/plugin-sdk/pi-embedded-helpers-1R1gu7eX.js +9627 -0
- package/dist/plugin-sdk/pi-model-discovery-runtime-Do9o-dUd.js +8 -0
- package/dist/plugin-sdk/pi-model-discovery-v-XPUOOf.js +134 -0
- package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-D4sFsIks.js +354 -0
- package/dist/plugin-sdk/plugins-DeBZB9l_.js +864 -0
- package/dist/plugin-sdk/proxy-fetch-ChxOhWF4.js +38 -0
- package/dist/plugin-sdk/pw-ai-DEOmCSSC.js +1938 -0
- package/dist/plugin-sdk/qmd-manager-HyYKoEch.js +1448 -0
- package/dist/plugin-sdk/query-expansion-CeyKUeDW.js +1011 -0
- package/dist/plugin-sdk/redact-DjVX-1N3.js +319 -0
- package/dist/plugin-sdk/reply-DAo_Jt8K.js +97916 -0
- package/dist/plugin-sdk/resolve-outbound-target-B42qgQS9.js +40 -0
- package/dist/plugin-sdk/run-with-concurrency-Bt_ks0Qa.js +1994 -0
- package/dist/plugin-sdk/runtime-whatsapp-login.runtime-B6W989eF.js +10 -0
- package/dist/plugin-sdk/runtime-whatsapp-outbound.runtime-c_GDFy37.js +19 -0
- package/dist/plugin-sdk/send-CQpMudwO.js +2587 -0
- package/dist/plugin-sdk/send-DQHLzVyO.js +414 -0
- package/dist/plugin-sdk/send-DTB24bEF.js +3135 -0
- package/dist/plugin-sdk/send-DfHadjZ_.js +503 -0
- package/dist/plugin-sdk/send-XXlW2iny.js +540 -0
- package/dist/plugin-sdk/session-6TF6MyaC.js +169 -0
- package/dist/plugin-sdk/skill-commands-CkGeFUMl.js +342 -0
- package/dist/plugin-sdk/skills-CBkHBYPq.js +1428 -0
- package/dist/plugin-sdk/slash-commands.runtime-CxliuGaP.js +13 -0
- package/dist/plugin-sdk/slash-dispatch.runtime-DFaeYlJQ.js +52 -0
- package/dist/plugin-sdk/slash-skill-commands.runtime-0M0OLCxq.js +16 -0
- package/dist/plugin-sdk/ssrf-cFtplYtS.js +202 -0
- package/dist/plugin-sdk/store-5nyxY3WU.js +81 -0
- package/dist/plugin-sdk/subagent-registry-runtime-DCtmDwna.js +52 -0
- package/dist/plugin-sdk/tables-C47P4GTN.js +55 -0
- package/dist/plugin-sdk/target-errors-Blia4S69.js +195 -0
- package/dist/plugin-sdk/thinking-Bo2eosVa.js +1206 -0
- package/dist/plugin-sdk/tokens-DgNRBwIg.js +52 -0
- package/dist/plugin-sdk/tool-images-Gk_-0y2N.js +274 -0
- package/dist/plugin-sdk/web-CVxZbXyH.js +56 -0
- package/dist/plugin-sdk/whatsapp-actions-Bw0H9g-n.js +80 -0
- package/dist/{pw-ai-GcYO6HPE.js → pw-ai-CmphSzHx.js} +1 -1
- package/dist/{slash-dispatch.runtime-Dh053pQK.js → slash-dispatch.runtime-131yup2e.js} +6 -6
- package/dist/{subagent-registry-runtime-DSi5mnCQ.js → subagent-registry-runtime-DbSf_Je6.js} +6 -6
- package/dist/{web-1hWJDzNA.js → web-MR9d7KyB.js} +6 -6
- package/package.json +1 -1
- package/scripts/create-instance.sh +1 -37
- package/scripts/npm_publish.sh +0 -65
- package/scripts/npm_publish_backup.sh +185 -0
- package/extensions/page-action-cache/dist/actions-executor.d.ts +0 -62
- package/extensions/page-action-cache/dist/actions-executor.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/actions-executor.js +0 -339
- package/extensions/page-action-cache/dist/actions-executor.js.map +0 -1
- package/extensions/page-action-cache/dist/cache-invalidator.d.ts +0 -70
- package/extensions/page-action-cache/dist/cache-invalidator.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/cache-invalidator.js +0 -212
- package/extensions/page-action-cache/dist/cache-invalidator.js.map +0 -1
- package/extensions/page-action-cache/dist/cache-store.d.ts +0 -80
- package/extensions/page-action-cache/dist/cache-store.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/cache-store.js +0 -361
- package/extensions/page-action-cache/dist/cache-store.js.map +0 -1
- package/extensions/page-action-cache/dist/cache-strategy.d.ts +0 -65
- package/extensions/page-action-cache/dist/cache-strategy.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/cache-strategy.js +0 -237
- package/extensions/page-action-cache/dist/cache-strategy.js.map +0 -1
- package/extensions/page-action-cache/dist/hooks-entry.d.ts +0 -29
- package/extensions/page-action-cache/dist/hooks-entry.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/hooks-entry.js +0 -83
- package/extensions/page-action-cache/dist/hooks-entry.js.map +0 -1
- package/extensions/page-action-cache/dist/hooks.d.ts +0 -10
- package/extensions/page-action-cache/dist/hooks.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/hooks.js +0 -277
- package/extensions/page-action-cache/dist/hooks.js.map +0 -1
- package/extensions/page-action-cache/dist/index.d.ts +0 -24
- package/extensions/page-action-cache/dist/index.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/index.js +0 -34
- package/extensions/page-action-cache/dist/index.js.map +0 -1
- package/extensions/page-action-cache/dist/scenario-recognizer.d.ts +0 -45
- package/extensions/page-action-cache/dist/scenario-recognizer.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/scenario-recognizer.js +0 -213
- package/extensions/page-action-cache/dist/scenario-recognizer.js.map +0 -1
- package/extensions/page-action-cache/dist/security-policy.d.ts +0 -62
- package/extensions/page-action-cache/dist/security-policy.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/security-policy.js +0 -219
- package/extensions/page-action-cache/dist/security-policy.js.map +0 -1
- package/extensions/page-action-cache/dist/tools.d.ts +0 -209
- package/extensions/page-action-cache/dist/tools.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/tools.js +0 -383
- package/extensions/page-action-cache/dist/tools.js.map +0 -1
- package/extensions/page-action-cache/dist/types.d.ts +0 -336
- package/extensions/page-action-cache/dist/types.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/types.js +0 -8
- package/extensions/page-action-cache/dist/types.js.map +0 -1
- package/extensions/page-action-cache/dist/ux-enhancer.d.ts +0 -60
- package/extensions/page-action-cache/dist/ux-enhancer.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/ux-enhancer.js +0 -218
- package/extensions/page-action-cache/dist/ux-enhancer.js.map +0 -1
- package/extensions/page-action-cache/dist/variable-resolver.d.ts +0 -28
- package/extensions/page-action-cache/dist/variable-resolver.d.ts.map +0 -1
- package/extensions/page-action-cache/dist/variable-resolver.js +0 -201
- package/extensions/page-action-cache/dist/variable-resolver.js.map +0 -1
- package/extensions/page-action-cache/docs/API.md +0 -555
- package/extensions/page-action-cache/docs/IMPLEMENTATION.md +0 -1792
- package/extensions/page-action-cache/docs/INTEGRATION.md +0 -387
- package/extensions/page-action-cache/docs/README.md +0 -183
- package/extensions/page-action-cache/index.ts +0 -118
- package/extensions/page-action-cache/node_modules/.bin/nlc +0 -21
- package/extensions/page-action-cache/node_modules/.bin/node-llama-cpp +0 -21
- package/extensions/page-action-cache/node_modules/.bin/openclaw +0 -21
- package/extensions/page-action-cache/node_modules/.bin/tsc +0 -21
- package/extensions/page-action-cache/node_modules/.bin/tsserver +0 -21
- package/extensions/page-action-cache/node_modules/.bin/vitest +0 -21
- package/extensions/page-action-cache/openclaw.plugin.json +0 -208
- package/extensions/page-action-cache/package.json +0 -74
- package/extensions/page-action-cache/scripts/npm_publish.sh +0 -80
- package/extensions/page-action-cache/skills/page-action-cache/SKILL.md +0 -216
- package/extensions/page-action-cache/src/actions-executor.ts +0 -441
- package/extensions/page-action-cache/src/cache-invalidator.ts +0 -271
- package/extensions/page-action-cache/src/cache-store.ts +0 -457
- package/extensions/page-action-cache/src/cache-strategy.ts +0 -327
- package/extensions/page-action-cache/src/hooks-entry.ts +0 -114
- package/extensions/page-action-cache/src/hooks.ts +0 -332
- package/extensions/page-action-cache/src/index.ts +0 -89
- package/extensions/page-action-cache/src/scenario-recognizer.ts +0 -259
- package/extensions/page-action-cache/src/security-policy.ts +0 -268
- package/extensions/page-action-cache/src/tools.ts +0 -437
- package/extensions/page-action-cache/src/types.ts +0 -482
- package/extensions/page-action-cache/src/ux-enhancer.ts +0 -266
- package/extensions/page-action-cache/src/variable-resolver.ts +0 -258
- package/extensions/page-action-cache/tests/actions-executor.test.ts +0 -424
- package/extensions/page-action-cache/tests/cache-store.test.ts +0 -267
- package/extensions/page-action-cache/tests/integration-test.ts +0 -62
- package/extensions/page-action-cache/tests/scenario-recognizer.test.ts +0 -140
- package/extensions/page-action-cache/tests/variable-resolver.test.ts +0 -187
- package/extensions/page-action-cache/tsconfig.json +0 -39
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/cli.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/cli.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/cli.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../../../../node_modules/.pnpm/node-llama-cpp@3.16.2_typescript@5.9.3/node_modules/node-llama-cpp/dist/cli/cli.js" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/openclaw@2026.3.13_@napi-rs+canvas@0.1.96_@types+express@5.0.6_node-llama-cpp@3.16.2_typescript@5.9.3_/node_modules/openclaw/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/openclaw@2026.3.13_@napi-rs+canvas@0.1.96_@types+express@5.0.6_node-llama-cpp@3.16.2_typescript@5.9.3_/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/openclaw@2026.3.13_@napi-rs+canvas@0.1.96_@types+express@5.0.6_node-llama-cpp@3.16.2_typescript@5.9.3_/node_modules/openclaw/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/openclaw@2026.3.13_@napi-rs+canvas@0.1.96_@types+express@5.0.6_node-llama-cpp@3.16.2_typescript@5.9.3_/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../openclaw/openclaw.mjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../openclaw/openclaw.mjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/bin/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/typescript@5.9.3/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
-
fi
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/vitest@1.6.1_@types+node@20.19.37/node_modules/vitest/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/vitest@1.6.1_@types+node@20.19.37/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/vitest@1.6.1_@types+node@20.19.37/node_modules/vitest/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/vitest@1.6.1_@types+node@20.19.37/node_modules:/Users/zhoujinyu/Documents/projects/repo/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../vitest/vitest.mjs" "$@"
|
|
21
|
-
fi
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "page-action-cache",
|
|
3
|
-
"name": "Page Action Cache",
|
|
4
|
-
"version": "1.0.4",
|
|
5
|
-
"description": "Caches LLM browser operations to avoid re-analyzing the same DOM. Reduces token consumption and operation latency through scenario recognition (login, search, payment, etc.) and multi-level caching (L3/L2/L1).",
|
|
6
|
-
"author": "OpenClaw",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"kind": "extension",
|
|
9
|
-
"main": "./dist/hooks-entry.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": "./dist/index.js",
|
|
12
|
-
"./hooks-entry": "./dist/hooks-entry.js"
|
|
13
|
-
},
|
|
14
|
-
"configSchema": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"additionalProperties": false,
|
|
17
|
-
"properties": {
|
|
18
|
-
"enabled": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"default": true,
|
|
21
|
-
"description": "Enable or disable the page action cache extension"
|
|
22
|
-
},
|
|
23
|
-
"autoUseCache": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"default": true,
|
|
26
|
-
"description": "Automatically use cached actions when available"
|
|
27
|
-
},
|
|
28
|
-
"scenarioRecognitionEnabled": {
|
|
29
|
-
"type": "boolean",
|
|
30
|
-
"default": true,
|
|
31
|
-
"description": "Enable automatic scenario recognition (login, search, checkout, etc.)"
|
|
32
|
-
},
|
|
33
|
-
"llmClassificationThreshold": {
|
|
34
|
-
"type": "number",
|
|
35
|
-
"default": 70,
|
|
36
|
-
"minimum": 0,
|
|
37
|
-
"maximum": 100,
|
|
38
|
-
"description": "Confidence threshold for LLM-based scenario classification (0-100)"
|
|
39
|
-
},
|
|
40
|
-
"cacheLevelStrategy": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"enum": ["auto", "l3-only", "l2-only", "l1-only"],
|
|
43
|
-
"default": "auto",
|
|
44
|
-
"description": "Cache level strategy: auto (default), l3-only (scenario-level only), l2-only (flow-level only), l1-only (atomic-level only)"
|
|
45
|
-
},
|
|
46
|
-
"defaultCacheLevel": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"enum": ["L3", "L2", "L1"],
|
|
49
|
-
"default": "L3",
|
|
50
|
-
"description": "Default cache level when no scenario is recognized"
|
|
51
|
-
},
|
|
52
|
-
"pageChangeDetectionEnabled": {
|
|
53
|
-
"type": "boolean",
|
|
54
|
-
"default": true,
|
|
55
|
-
"description": "Enable automatic page change detection to invalidate stale caches"
|
|
56
|
-
},
|
|
57
|
-
"changeInvalidationThreshold": {
|
|
58
|
-
"type": "number",
|
|
59
|
-
"default": 80,
|
|
60
|
-
"minimum": 0,
|
|
61
|
-
"maximum": 100,
|
|
62
|
-
"description": "Page change confidence threshold for cache invalidation (0-100)"
|
|
63
|
-
},
|
|
64
|
-
"invalidationStrategy": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"enum": ["soft", "hard"],
|
|
67
|
-
"default": "soft",
|
|
68
|
-
"description": "Cache invalidation strategy: soft (mark stale, allow override) or hard (immediately delete)"
|
|
69
|
-
},
|
|
70
|
-
"variableExtractionEnabled": {
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"default": true,
|
|
73
|
-
"description": "Enable automatic variable extraction from user input (username, password, etc.)"
|
|
74
|
-
},
|
|
75
|
-
"allowUserConfirmVariables": {
|
|
76
|
-
"type": "boolean",
|
|
77
|
-
"default": false,
|
|
78
|
-
"description": "Allow user confirmation for extracted variables before execution"
|
|
79
|
-
},
|
|
80
|
-
"encryptSensitiveCache": {
|
|
81
|
-
"type": "boolean",
|
|
82
|
-
"default": false,
|
|
83
|
-
"description": "Encrypt sensitive cache entries (passwords, tokens) using AES-256-GCM"
|
|
84
|
-
},
|
|
85
|
-
"accessControlEnabled": {
|
|
86
|
-
"type": "boolean",
|
|
87
|
-
"default": false,
|
|
88
|
-
"description": "Enable access control for sensitive cache operations"
|
|
89
|
-
},
|
|
90
|
-
"logSanitizationEnabled": {
|
|
91
|
-
"type": "boolean",
|
|
92
|
-
"default": true,
|
|
93
|
-
"description": "Automatically redact sensitive data from logs"
|
|
94
|
-
},
|
|
95
|
-
"showCacheStatusToUser": {
|
|
96
|
-
"type": "boolean",
|
|
97
|
-
"default": true,
|
|
98
|
-
"description": "Display cache hit/miss status to users"
|
|
99
|
-
},
|
|
100
|
-
"enableUserCacheConfirmation": {
|
|
101
|
-
"type": "boolean",
|
|
102
|
-
"default": false,
|
|
103
|
-
"description": "Require user confirmation before using cached actions"
|
|
104
|
-
},
|
|
105
|
-
"enableUserForcedRefresh": {
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"default": true,
|
|
108
|
-
"description": "Allow users to force refresh specific cache entries"
|
|
109
|
-
},
|
|
110
|
-
"enableUserCacheErrorReport": {
|
|
111
|
-
"type": "boolean",
|
|
112
|
-
"default": true,
|
|
113
|
-
"description": "Enable user reporting of cache execution errors"
|
|
114
|
-
},
|
|
115
|
-
"trackExecutionStats": {
|
|
116
|
-
"type": "boolean",
|
|
117
|
-
"default": true,
|
|
118
|
-
"description": "Track execution statistics (hit rate, saved tokens, saved time)"
|
|
119
|
-
},
|
|
120
|
-
"statsUpdateInterval": {
|
|
121
|
-
"type": "number",
|
|
122
|
-
"default": 60,
|
|
123
|
-
"minimum": 10,
|
|
124
|
-
"description": "Statistics update interval in seconds (minimum 10)"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"uiHints": {
|
|
129
|
-
"enabled": {
|
|
130
|
-
"label": "Enable Cache Extension",
|
|
131
|
-
"description": "Enable or disable the page action cache extension"
|
|
132
|
-
},
|
|
133
|
-
"autoUseCache": {
|
|
134
|
-
"label": "Auto Use Cache",
|
|
135
|
-
"description": "Automatically use cached actions when available"
|
|
136
|
-
},
|
|
137
|
-
"scenarioRecognitionEnabled": {
|
|
138
|
-
"label": "Scenario Recognition",
|
|
139
|
-
"description": "Enable automatic scenario recognition (login, search, checkout, etc.)"
|
|
140
|
-
},
|
|
141
|
-
"cacheLevelStrategy": {
|
|
142
|
-
"label": "Cache Strategy",
|
|
143
|
-
"description": "Cache level strategy (auto, l3-only, l2-only, l1-only)"
|
|
144
|
-
},
|
|
145
|
-
"encryptSensitiveCache": {
|
|
146
|
-
"label": "Encrypt Sensitive Data",
|
|
147
|
-
"description": "Encrypt sensitive cache entries (passwords, tokens)",
|
|
148
|
-
"sensitive": false
|
|
149
|
-
},
|
|
150
|
-
"showCacheStatusToUser": {
|
|
151
|
-
"label": "Show Cache Status",
|
|
152
|
-
"description": "Display cache hit/miss status to users"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"tools": [
|
|
156
|
-
{
|
|
157
|
-
"name": "execute_cached",
|
|
158
|
-
"label": "Execute Cached Actions",
|
|
159
|
-
"description": "Execute cached page action sequences, skipping LLM analysis. Significantly reduces token consumption and operation latency."
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "cache_stats",
|
|
163
|
-
"label": "Cache Statistics",
|
|
164
|
-
"description": "View cache statistics including hit rate, saved tokens, and saved time."
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"name": "cache_list",
|
|
168
|
-
"label": "List Cache Entries",
|
|
169
|
-
"description": "List all cached page action entries with their metadata."
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"name": "cache_clear",
|
|
173
|
-
"label": "Clear Cache",
|
|
174
|
-
"description": "Clear all cached page action entries."
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"name": "scenario_list",
|
|
178
|
-
"label": "List Scenarios",
|
|
179
|
-
"description": "List all recognized scenarios with their match patterns."
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "force_refresh",
|
|
183
|
-
"label": "Force Refresh Cache",
|
|
184
|
-
"description": "Force refresh a specific cache entry by URL and viewport."
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"hooks": [
|
|
188
|
-
{
|
|
189
|
-
"name": "before_tool_call",
|
|
190
|
-
"description": "Scenario recognition and cache interception"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"name": "after_tool_call",
|
|
194
|
-
"description": "Save LLM analysis results to cache"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"name": "before_prompt_build",
|
|
198
|
-
"description": "Inject cache usage guide into prompts"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"runtime": {
|
|
202
|
-
"node": ">=18.0.0"
|
|
203
|
-
},
|
|
204
|
-
"openclaw": {
|
|
205
|
-
"minVersion": "2026.2.0",
|
|
206
|
-
"extensions": ["./dist/hooks-entry.js"]
|
|
207
|
-
}
|
|
208
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "page-action-cache",
|
|
3
|
-
"version": "1.0.4",
|
|
4
|
-
"description": "Page action caching extension for OpenClaw - caches LLM browser operations to avoid re-analyzing the same DOM",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"automation",
|
|
7
|
-
"browser",
|
|
8
|
-
"cache",
|
|
9
|
-
"extension",
|
|
10
|
-
"openclaw"
|
|
11
|
-
],
|
|
12
|
-
"license": "MIT",
|
|
13
|
-
"author": "OpenClaw",
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "https://github.com/openclaw/openclaw.git",
|
|
17
|
-
"directory": "extensions/page-action-cache"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"dist/",
|
|
21
|
-
"skills/",
|
|
22
|
-
"docs/",
|
|
23
|
-
"package.json",
|
|
24
|
-
"openclaw.plugin.json"
|
|
25
|
-
],
|
|
26
|
-
"type": "module",
|
|
27
|
-
"main": "dist/hooks-entry.js",
|
|
28
|
-
"exports": {
|
|
29
|
-
".": {
|
|
30
|
-
"types": "./dist/index.d.ts",
|
|
31
|
-
"default": "./dist/index.js"
|
|
32
|
-
},
|
|
33
|
-
"./hooks-entry": {
|
|
34
|
-
"types": "./dist/hooks-entry.d.ts",
|
|
35
|
-
"default": "./dist/hooks-entry.js"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "tsc",
|
|
40
|
-
"publish:npm": "./scripts/npm_publish.sh",
|
|
41
|
-
"test": "vitest",
|
|
42
|
-
"typecheck": "tsc --noEmit"
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@types/node": "^20.0.0",
|
|
46
|
-
"typescript": "^5.0.0",
|
|
47
|
-
"vitest": "^1.0.0"
|
|
48
|
-
},
|
|
49
|
-
"peerDependencies": {
|
|
50
|
-
"openclaw": ">=2026.2.0"
|
|
51
|
-
},
|
|
52
|
-
"peerDependenciesMeta": {
|
|
53
|
-
"openclaw": {
|
|
54
|
-
"optional": true
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
"config": {
|
|
58
|
-
"test": {
|
|
59
|
-
"include": [
|
|
60
|
-
"tests/**/*.test.ts"
|
|
61
|
-
],
|
|
62
|
-
"exclude": [
|
|
63
|
-
"node_modules",
|
|
64
|
-
"dist",
|
|
65
|
-
"**/node_modules/**"
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"openclaw": {
|
|
70
|
-
"extensions": [
|
|
71
|
-
"./dist/hooks-entry.js"
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# npm 发布脚本 - 处理工作区依赖问题
|
|
3
|
-
# 解决 npm 不支持 workspace:* 协议的问题
|
|
4
|
-
|
|
5
|
-
set -e
|
|
6
|
-
|
|
7
|
-
# 获取脚本所在目录
|
|
8
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
9
|
-
PROJECT_ROOT="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
|
10
|
-
PLUGIN_DIR="$PROJECT_ROOT/extensions/page-action-cache"
|
|
11
|
-
|
|
12
|
-
echo "📦 准备发布 @openclaw/page-action-cache"
|
|
13
|
-
echo "📍 插件目录: $PLUGIN_DIR"
|
|
14
|
-
|
|
15
|
-
# 切换到插件目录
|
|
16
|
-
cd "$PLUGIN_DIR"
|
|
17
|
-
|
|
18
|
-
# 创建临时 package.json 用于发布
|
|
19
|
-
TMP_PACKAGE_JSON="/tmp/package-publish-$(date +%s).json"
|
|
20
|
-
cp package.json "$TMP_PACKAGE_JSON"
|
|
21
|
-
|
|
22
|
-
# 移除工作区依赖(npm 不支持 workspace:*)
|
|
23
|
-
echo "🔧 处理 package.json..."
|
|
24
|
-
node -e "
|
|
25
|
-
const pkg = JSON.parse(require('fs').readFileSync('$TMP_PACKAGE_JSON', 'utf8'));
|
|
26
|
-
// 移除 workspace:* 依赖
|
|
27
|
-
delete pkg.dependencies;
|
|
28
|
-
// 保留 peerDependencies
|
|
29
|
-
pkg.peerDependencies = pkg.peerDependencies || {};
|
|
30
|
-
require('fs').writeFileSync('$TMP_PACKAGE_JSON', JSON.stringify(pkg, null, 2));
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
echo "✅ 已处理 package.json(移除 workspace 依赖)"
|
|
34
|
-
|
|
35
|
-
# 构建插件
|
|
36
|
-
echo "🔨 构建插件..."
|
|
37
|
-
pnpm build
|
|
38
|
-
|
|
39
|
-
# 复制处理后的 package.json 到构建目录
|
|
40
|
-
echo "📋 复制 package.json..."
|
|
41
|
-
cp "$TMP_PACKAGE_JSON" package.json
|
|
42
|
-
|
|
43
|
-
# 清理旧的 dist 目录
|
|
44
|
-
echo "🧹 清理旧的构建..."
|
|
45
|
-
rm -rf dist
|
|
46
|
-
|
|
47
|
-
# 重新构建
|
|
48
|
-
echo "🔨 重新构建..."
|
|
49
|
-
pnpm build
|
|
50
|
-
|
|
51
|
-
# 检查构建结果
|
|
52
|
-
if [ ! -d "dist" ]; then
|
|
53
|
-
echo "❌ 构建失败:dist 目录不存在"
|
|
54
|
-
exit 1
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
echo "✅ 构建成功"
|
|
58
|
-
|
|
59
|
-
# 发布到 npm(不检查登录状态,避免触发 npm 操作)
|
|
60
|
-
echo "🚀 发布到 npm..."
|
|
61
|
-
echo "💡 提示:如果未登录 npm,请先运行 npm login"
|
|
62
|
-
npm publish --access public
|
|
63
|
-
|
|
64
|
-
# 检查发布是否成功
|
|
65
|
-
if [ $? -eq 0 ]; then
|
|
66
|
-
echo "✅ 发布成功!"
|
|
67
|
-
# 恢复原始 package.json
|
|
68
|
-
echo "🔄 恢复原始 package.json..."
|
|
69
|
-
git checkout package.json 2>/dev/null || true
|
|
70
|
-
else
|
|
71
|
-
echo "❌ 发布失败,请检查上面的错误信息"
|
|
72
|
-
# 恢复原始 package.json
|
|
73
|
-
echo "🔄 恢复原始 package.json..."
|
|
74
|
-
git checkout package.json 2>/dev/null || true
|
|
75
|
-
fi
|
|
76
|
-
|
|
77
|
-
# 清理临时文件
|
|
78
|
-
rm -f "$TMP_PACKAGE_JSON"
|
|
79
|
-
|
|
80
|
-
echo "📋 发布流程结束"
|