shapeup-cli 0.10.2 → 0.10.3
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.
- checksums.yaml +4 -4
- data/lib/shapeup_cli/version.rb +1 -1
- data/skills/shapeup-connect/SKILL.md +19 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c375b2778939c522cdc558c09d8065c5ef8a05e3fe66ffba8ff294c4bd216d30
|
|
4
|
+
data.tar.gz: 19e00ac320970b20aa0690fc971c9bbfafcc33edcb18cd6601f529173cf9da6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 053af8fe5fc51632541677b89db6473376aadf1a93120cfbbaf16d2510f85576e06d2177d7104b8e55bb1e39a90520083a6ba5dd7ec3d04d5263f08bd8aaf9d3
|
|
7
|
+
data.tar.gz: 721a2cf000f7e3f87769b4715efe8153d977a8912d5e69bff2117416c2f4edb54f43b874534ed17c1588481b7cd4448c7f2347e1f304c6e2da6ca6752b965c5c
|
data/lib/shapeup_cli/version.rb
CHANGED
|
@@ -103,9 +103,25 @@ Signed in as the user, it gives the agent a fresh token, saves it as a CLI profi
|
|
|
103
103
|
the agent, and listens as the agent. Add `--trust members` only if the user asked for anyone in
|
|
104
104
|
the organisation to be able to use the agent. The default trusts only the agent's owner.
|
|
105
105
|
|
|
106
|
-
Watch its output
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
Watch its output with the Monitor tool when you have it, using the longest timeout it allows and
|
|
107
|
+
exactly this command, with `OUTPUT` set to the connector's output file:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
f=OUTPUT; seen="$f.seen"; n=$(cat "$seen" 2>/dev/null || echo 0)
|
|
111
|
+
while true; do
|
|
112
|
+
m=$(wc -l < "$f")
|
|
113
|
+
if [ "$m" -gt "$n" ]; then
|
|
114
|
+
sed -n "$((n + 1)),${m}p" "$f" | grep -v '"retryable":true'
|
|
115
|
+
n=$m; echo "$n" > "$seen"
|
|
116
|
+
fi
|
|
117
|
+
sleep 3
|
|
118
|
+
done
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Don't use `tail -f` or `tail -F` on the output file: they can miss lines. The command keeps its place
|
|
122
|
+
in `OUTPUT.seen`, so when the watch ends but the connector is still running, start it again
|
|
123
|
+
straight away, without telling the user, and nothing is missed or repeated. If the connector
|
|
124
|
+
exits, you are told separately. Every line is one JSON event:
|
|
109
125
|
|
|
110
126
|
| `type` | What to do |
|
|
111
127
|
|--------|------------|
|