@orchid-labs/pluxx 0.1.8 → 0.1.9
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/cli/index.js +4 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -5200,6 +5200,8 @@ function buildClaudeHookCommandWrapperScript(command2) {
|
|
|
5200
5200
|
const exportLoader = [
|
|
5201
5201
|
'import { readFileSync } from "node:fs"',
|
|
5202
5202
|
"",
|
|
5203
|
+
"const shellSingleQuote = (input) => `'${String(input ?? \"\").replace(/'/g, `'\"'\"'`)}'`",
|
|
5204
|
+
"",
|
|
5203
5205
|
"const filepath = process.argv[1]",
|
|
5204
5206
|
"if (!filepath) process.exit(0)",
|
|
5205
5207
|
'const payload = JSON.parse(readFileSync(filepath, "utf8"))',
|
|
@@ -5209,7 +5211,7 @@ function buildClaudeHookCommandWrapperScript(command2) {
|
|
|
5209
5211
|
"",
|
|
5210
5212
|
"for (const [key, value] of Object.entries(env)) {",
|
|
5211
5213
|
" if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(key)) continue",
|
|
5212
|
-
|
|
5214
|
+
" process.stdout.write(`export ${key}=${shellSingleQuote(value)}\\0`)",
|
|
5213
5215
|
"}"
|
|
5214
5216
|
].join("\n");
|
|
5215
5217
|
return [
|
|
@@ -5220,7 +5222,7 @@ function buildClaudeHookCommandWrapperScript(command2) {
|
|
|
5220
5222
|
'PLUXX_USER_CONFIG_PATH="$PLUXX_PLUGIN_ROOT/.pluxx-user.json"',
|
|
5221
5223
|
"",
|
|
5222
5224
|
'if [ -f "$PLUXX_USER_CONFIG_PATH" ]; then',
|
|
5223
|
-
" while IFS= read -r pluxx_export; do",
|
|
5225
|
+
" while IFS= read -r -d '' pluxx_export; do",
|
|
5224
5226
|
' if [ -n "$pluxx_export" ]; then',
|
|
5225
5227
|
' eval "$pluxx_export"',
|
|
5226
5228
|
' if [ -n "${CLAUDE_ENV_FILE:-}" ]; then',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orchid-labs/pluxx",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Build AI agent plugins once. Prime-time on Claude Code, Cursor, Codex, and OpenCode, with beta generators for additional hosts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|