@codyswann/lisa 2.336.1 → 2.336.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.
- package/all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh +30 -4
- package/dist/core/upstream-evidence-manifest.js +2 -2
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/hooks/sonar-secrets.sh +30 -4
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/sonar-secrets.sh +30 -4
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/sonar-secrets.sh +30 -4
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/sonar-secrets.sh +30 -4
|
@@ -81,11 +81,37 @@ is_inactive() {
|
|
|
81
81
|
# `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
|
|
82
82
|
# `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
|
|
83
83
|
# portable form. A timeout leaves `value` empty, which the caller treats as "the
|
|
84
|
-
# provider had nothing" — the warn path, never a block.
|
|
85
|
-
#
|
|
84
|
+
# provider had nothing" — the warn path, never a block.
|
|
85
|
+
#
|
|
86
|
+
# Giving up on the read is not the same as stopping the work: a resolver blocked
|
|
87
|
+
# on the network otherwise outlives the hook that started it, and this runs in
|
|
88
|
+
# front of every prompt and every file read. So the child is killed and reaped,
|
|
89
|
+
# which requires knowing its PID — and that is why the transport is a FIFO and
|
|
90
|
+
# not the process substitution this function used to read from.
|
|
91
|
+
#
|
|
92
|
+
# On /bin/bash 3.2, `$!` after `< <(cmd)` is the SHELL'S OWN PID, not the
|
|
93
|
+
# substitution's child (verified: the child's PPID is the shell, and `$!` equals
|
|
94
|
+
# the shell). A `kill -9 "$!"` there tells the hook to kill itself. Backgrounding
|
|
95
|
+
# the resolver explicitly is what makes `$!` mean the resolver.
|
|
96
|
+
#
|
|
97
|
+
# The FIFO is a rendezvous, not storage: a named pipe holds no data at rest, so
|
|
98
|
+
# the value still never lands on disk (CWE-922) and a kill at any point leaves an
|
|
99
|
+
# empty pipe behind rather than a readable token. The directory is `mktemp -d`,
|
|
100
|
+
# which is 0700.
|
|
86
101
|
resolve_secret() {
|
|
87
|
-
local resolver="$1" name="$2" value=""
|
|
88
|
-
|
|
102
|
+
local resolver="$1" name="$2" value="" child="" dir="" fifo=""
|
|
103
|
+
dir="$(mktemp -d)" || return 0
|
|
104
|
+
fifo="$dir/resolver"
|
|
105
|
+
if ! mkfifo -m 600 "$fifo" 2>/dev/null; then
|
|
106
|
+
rm -rf "$dir"
|
|
107
|
+
return 0
|
|
108
|
+
fi
|
|
109
|
+
node "$resolver" get "$name" >"$fifo" 2>/dev/null &
|
|
110
|
+
child=$!
|
|
111
|
+
IFS= read -r -t 10 value < "$fifo" || true
|
|
112
|
+
kill -9 "$child" 2>/dev/null
|
|
113
|
+
wait "$child" 2>/dev/null
|
|
114
|
+
rm -rf "$dir"
|
|
89
115
|
printf '%s' "$value"
|
|
90
116
|
}
|
|
91
117
|
|
|
@@ -9,7 +9,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
9
9
|
"all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh": "a6ed91576efebb6ba40cfa4e9d8a3e8566314909210ae8d5860be62a3feb4cff",
|
|
10
10
|
"all/copy-overwrite/scripts/lisa-hooks/block-shell-json-parsing.sh": "3b5f074f3ab5708030af507eea962389f3b067c5dbdc76580bd9e44d3ac6c603",
|
|
11
11
|
"all/copy-overwrite/scripts/lisa-hooks/parity-safety-net.sh": "062c69eea85157f1e941ec3626d8912aa9f182af6ccdbe19687588a6074db5ce",
|
|
12
|
-
"all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh": "
|
|
12
|
+
"all/copy-overwrite/scripts/lisa-hooks/sonar-secrets.sh": "bf4132e49ba18e2f7e941520c299c15aeeacfd220e489f3d2eb8397f2048157b",
|
|
13
13
|
"all/copy-overwrite/scripts/lisa-work-item.mjs": "6a8be8577242588f14ab52b25b2a22b6def53aefa9513b4d3d7c49f4d8027079",
|
|
14
14
|
"all/create-only/.claude/rules/PROJECT_RULES.md": "6e1c7923ad2a15356babc60c97e7f97be728d790af285b6a7cd7d1b4d39cd97f",
|
|
15
15
|
"all/create-only/.lisaignore": "3c9827e7e98daa46510b5357cd6dd9406da1821e64cc46d2eea9f311cd6d06b9",
|
|
@@ -313,7 +313,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
|
|
|
313
313
|
"plugins/src/base/hooks/parity-safety-net.sh": "062c69eea85157f1e941ec3626d8912aa9f182af6ccdbe19687588a6074db5ce",
|
|
314
314
|
"plugins/src/base/hooks/setup-jira-cli.sh": "a675f6b17ce7f0d6b9fb7daeba6d2bc59bcb48ef79b034076ea73b2b1e72ee09",
|
|
315
315
|
"plugins/src/base/hooks/shell-write-nudge.sh": "69839af423f8792b1e52c71097316c3264425553031627c0a2f9409a9d5becd0",
|
|
316
|
-
"plugins/src/base/hooks/sonar-secrets.sh": "
|
|
316
|
+
"plugins/src/base/hooks/sonar-secrets.sh": "bf4132e49ba18e2f7e941520c299c15aeeacfd220e489f3d2eb8397f2048157b",
|
|
317
317
|
"plugins/src/base/hooks/threshold-ratchet-compare.mjs": "4535a145c5c5cbee13bdf970bc91d390a264043604e607288cdd6bf28de56192",
|
|
318
318
|
"plugins/src/base/hooks/threshold-ratchet-families.mjs": "db14245ed89b483912af287bdee917a7a921dc21bb29b49be37fc799c05c413f",
|
|
319
319
|
"plugins/src/base/hooks/threshold-ratchet.mjs": "04f660131bf50864239eb09cbf4d9555e53921254f6ab45ff2b85c173e160901",
|
package/package.json
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"brace-expansion": ">=5.0.9"
|
|
116
116
|
},
|
|
117
117
|
"name": "@codyswann/lisa",
|
|
118
|
-
"version": "2.336.
|
|
118
|
+
"version": "2.336.2",
|
|
119
119
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
120
120
|
"main": "dist/index.js",
|
|
121
121
|
"exports": {
|
|
@@ -81,11 +81,37 @@ is_inactive() {
|
|
|
81
81
|
# `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
|
|
82
82
|
# `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
|
|
83
83
|
# portable form. A timeout leaves `value` empty, which the caller treats as "the
|
|
84
|
-
# provider had nothing" — the warn path, never a block.
|
|
85
|
-
#
|
|
84
|
+
# provider had nothing" — the warn path, never a block.
|
|
85
|
+
#
|
|
86
|
+
# Giving up on the read is not the same as stopping the work: a resolver blocked
|
|
87
|
+
# on the network otherwise outlives the hook that started it, and this runs in
|
|
88
|
+
# front of every prompt and every file read. So the child is killed and reaped,
|
|
89
|
+
# which requires knowing its PID — and that is why the transport is a FIFO and
|
|
90
|
+
# not the process substitution this function used to read from.
|
|
91
|
+
#
|
|
92
|
+
# On /bin/bash 3.2, `$!` after `< <(cmd)` is the SHELL'S OWN PID, not the
|
|
93
|
+
# substitution's child (verified: the child's PPID is the shell, and `$!` equals
|
|
94
|
+
# the shell). A `kill -9 "$!"` there tells the hook to kill itself. Backgrounding
|
|
95
|
+
# the resolver explicitly is what makes `$!` mean the resolver.
|
|
96
|
+
#
|
|
97
|
+
# The FIFO is a rendezvous, not storage: a named pipe holds no data at rest, so
|
|
98
|
+
# the value still never lands on disk (CWE-922) and a kill at any point leaves an
|
|
99
|
+
# empty pipe behind rather than a readable token. The directory is `mktemp -d`,
|
|
100
|
+
# which is 0700.
|
|
86
101
|
resolve_secret() {
|
|
87
|
-
local resolver="$1" name="$2" value=""
|
|
88
|
-
|
|
102
|
+
local resolver="$1" name="$2" value="" child="" dir="" fifo=""
|
|
103
|
+
dir="$(mktemp -d)" || return 0
|
|
104
|
+
fifo="$dir/resolver"
|
|
105
|
+
if ! mkfifo -m 600 "$fifo" 2>/dev/null; then
|
|
106
|
+
rm -rf "$dir"
|
|
107
|
+
return 0
|
|
108
|
+
fi
|
|
109
|
+
node "$resolver" get "$name" >"$fifo" 2>/dev/null &
|
|
110
|
+
child=$!
|
|
111
|
+
IFS= read -r -t 10 value < "$fifo" || true
|
|
112
|
+
kill -9 "$child" 2>/dev/null
|
|
113
|
+
wait "$child" 2>/dev/null
|
|
114
|
+
rm -rf "$dir"
|
|
89
115
|
printf '%s' "$value"
|
|
90
116
|
}
|
|
91
117
|
|
|
@@ -81,11 +81,37 @@ is_inactive() {
|
|
|
81
81
|
# `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
|
|
82
82
|
# `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
|
|
83
83
|
# portable form. A timeout leaves `value` empty, which the caller treats as "the
|
|
84
|
-
# provider had nothing" — the warn path, never a block.
|
|
85
|
-
#
|
|
84
|
+
# provider had nothing" — the warn path, never a block.
|
|
85
|
+
#
|
|
86
|
+
# Giving up on the read is not the same as stopping the work: a resolver blocked
|
|
87
|
+
# on the network otherwise outlives the hook that started it, and this runs in
|
|
88
|
+
# front of every prompt and every file read. So the child is killed and reaped,
|
|
89
|
+
# which requires knowing its PID — and that is why the transport is a FIFO and
|
|
90
|
+
# not the process substitution this function used to read from.
|
|
91
|
+
#
|
|
92
|
+
# On /bin/bash 3.2, `$!` after `< <(cmd)` is the SHELL'S OWN PID, not the
|
|
93
|
+
# substitution's child (verified: the child's PPID is the shell, and `$!` equals
|
|
94
|
+
# the shell). A `kill -9 "$!"` there tells the hook to kill itself. Backgrounding
|
|
95
|
+
# the resolver explicitly is what makes `$!` mean the resolver.
|
|
96
|
+
#
|
|
97
|
+
# The FIFO is a rendezvous, not storage: a named pipe holds no data at rest, so
|
|
98
|
+
# the value still never lands on disk (CWE-922) and a kill at any point leaves an
|
|
99
|
+
# empty pipe behind rather than a readable token. The directory is `mktemp -d`,
|
|
100
|
+
# which is 0700.
|
|
86
101
|
resolve_secret() {
|
|
87
|
-
local resolver="$1" name="$2" value=""
|
|
88
|
-
|
|
102
|
+
local resolver="$1" name="$2" value="" child="" dir="" fifo=""
|
|
103
|
+
dir="$(mktemp -d)" || return 0
|
|
104
|
+
fifo="$dir/resolver"
|
|
105
|
+
if ! mkfifo -m 600 "$fifo" 2>/dev/null; then
|
|
106
|
+
rm -rf "$dir"
|
|
107
|
+
return 0
|
|
108
|
+
fi
|
|
109
|
+
node "$resolver" get "$name" >"$fifo" 2>/dev/null &
|
|
110
|
+
child=$!
|
|
111
|
+
IFS= read -r -t 10 value < "$fifo" || true
|
|
112
|
+
kill -9 "$child" 2>/dev/null
|
|
113
|
+
wait "$child" 2>/dev/null
|
|
114
|
+
rm -rf "$dir"
|
|
89
115
|
printf '%s' "$value"
|
|
90
116
|
}
|
|
91
117
|
|
|
@@ -81,11 +81,37 @@ is_inactive() {
|
|
|
81
81
|
# `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
|
|
82
82
|
# `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
|
|
83
83
|
# portable form. A timeout leaves `value` empty, which the caller treats as "the
|
|
84
|
-
# provider had nothing" — the warn path, never a block.
|
|
85
|
-
#
|
|
84
|
+
# provider had nothing" — the warn path, never a block.
|
|
85
|
+
#
|
|
86
|
+
# Giving up on the read is not the same as stopping the work: a resolver blocked
|
|
87
|
+
# on the network otherwise outlives the hook that started it, and this runs in
|
|
88
|
+
# front of every prompt and every file read. So the child is killed and reaped,
|
|
89
|
+
# which requires knowing its PID — and that is why the transport is a FIFO and
|
|
90
|
+
# not the process substitution this function used to read from.
|
|
91
|
+
#
|
|
92
|
+
# On /bin/bash 3.2, `$!` after `< <(cmd)` is the SHELL'S OWN PID, not the
|
|
93
|
+
# substitution's child (verified: the child's PPID is the shell, and `$!` equals
|
|
94
|
+
# the shell). A `kill -9 "$!"` there tells the hook to kill itself. Backgrounding
|
|
95
|
+
# the resolver explicitly is what makes `$!` mean the resolver.
|
|
96
|
+
#
|
|
97
|
+
# The FIFO is a rendezvous, not storage: a named pipe holds no data at rest, so
|
|
98
|
+
# the value still never lands on disk (CWE-922) and a kill at any point leaves an
|
|
99
|
+
# empty pipe behind rather than a readable token. The directory is `mktemp -d`,
|
|
100
|
+
# which is 0700.
|
|
86
101
|
resolve_secret() {
|
|
87
|
-
local resolver="$1" name="$2" value=""
|
|
88
|
-
|
|
102
|
+
local resolver="$1" name="$2" value="" child="" dir="" fifo=""
|
|
103
|
+
dir="$(mktemp -d)" || return 0
|
|
104
|
+
fifo="$dir/resolver"
|
|
105
|
+
if ! mkfifo -m 600 "$fifo" 2>/dev/null; then
|
|
106
|
+
rm -rf "$dir"
|
|
107
|
+
return 0
|
|
108
|
+
fi
|
|
109
|
+
node "$resolver" get "$name" >"$fifo" 2>/dev/null &
|
|
110
|
+
child=$!
|
|
111
|
+
IFS= read -r -t 10 value < "$fifo" || true
|
|
112
|
+
kill -9 "$child" 2>/dev/null
|
|
113
|
+
wait "$child" 2>/dev/null
|
|
114
|
+
rm -rf "$dir"
|
|
89
115
|
printf '%s' "$value"
|
|
90
116
|
}
|
|
91
117
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.336.
|
|
3
|
+
"version": "2.336.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.336.
|
|
3
|
+
"version": "2.336.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.336.
|
|
3
|
+
"version": "2.336.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.336.
|
|
3
|
+
"version": "2.336.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.336.
|
|
3
|
+
"version": "2.336.2",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -81,11 +81,37 @@ is_inactive() {
|
|
|
81
81
|
# `read -t` supplies the ceiling. `timeout` is absent on a stock macOS and
|
|
82
82
|
# `coproc` needs Bash 4 (the hooks run under /bin/bash 3.2 there), so this is the
|
|
83
83
|
# portable form. A timeout leaves `value` empty, which the caller treats as "the
|
|
84
|
-
# provider had nothing" — the warn path, never a block.
|
|
85
|
-
#
|
|
84
|
+
# provider had nothing" — the warn path, never a block.
|
|
85
|
+
#
|
|
86
|
+
# Giving up on the read is not the same as stopping the work: a resolver blocked
|
|
87
|
+
# on the network otherwise outlives the hook that started it, and this runs in
|
|
88
|
+
# front of every prompt and every file read. So the child is killed and reaped,
|
|
89
|
+
# which requires knowing its PID — and that is why the transport is a FIFO and
|
|
90
|
+
# not the process substitution this function used to read from.
|
|
91
|
+
#
|
|
92
|
+
# On /bin/bash 3.2, `$!` after `< <(cmd)` is the SHELL'S OWN PID, not the
|
|
93
|
+
# substitution's child (verified: the child's PPID is the shell, and `$!` equals
|
|
94
|
+
# the shell). A `kill -9 "$!"` there tells the hook to kill itself. Backgrounding
|
|
95
|
+
# the resolver explicitly is what makes `$!` mean the resolver.
|
|
96
|
+
#
|
|
97
|
+
# The FIFO is a rendezvous, not storage: a named pipe holds no data at rest, so
|
|
98
|
+
# the value still never lands on disk (CWE-922) and a kill at any point leaves an
|
|
99
|
+
# empty pipe behind rather than a readable token. The directory is `mktemp -d`,
|
|
100
|
+
# which is 0700.
|
|
86
101
|
resolve_secret() {
|
|
87
|
-
local resolver="$1" name="$2" value=""
|
|
88
|
-
|
|
102
|
+
local resolver="$1" name="$2" value="" child="" dir="" fifo=""
|
|
103
|
+
dir="$(mktemp -d)" || return 0
|
|
104
|
+
fifo="$dir/resolver"
|
|
105
|
+
if ! mkfifo -m 600 "$fifo" 2>/dev/null; then
|
|
106
|
+
rm -rf "$dir"
|
|
107
|
+
return 0
|
|
108
|
+
fi
|
|
109
|
+
node "$resolver" get "$name" >"$fifo" 2>/dev/null &
|
|
110
|
+
child=$!
|
|
111
|
+
IFS= read -r -t 10 value < "$fifo" || true
|
|
112
|
+
kill -9 "$child" 2>/dev/null
|
|
113
|
+
wait "$child" 2>/dev/null
|
|
114
|
+
rm -rf "$dir"
|
|
89
115
|
printf '%s' "$value"
|
|
90
116
|
}
|
|
91
117
|
|