Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit298d56a

Browse files
committed
make fmt
1 parent44255eb commit298d56a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

‎scripts/traiage.sh‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ prompt_ssh() {
5252
# Write prompt to a file in the workspace
5353
ssh \
5454
-F /tmp/coder-ssh.config \
55-
"${WORKSPACE_NAME}.coder" \
55+
"${WORKSPACE_NAME}.coder" \
5656
-- \
5757
"cat > /tmp/prompt.txt"<<<"${PROMPT}"
5858

@@ -63,7 +63,7 @@ prompt_ssh() {
6363
"${WORKSPACE_NAME}.coder" \
6464
-- \
6565
"cat /tmp/prompt.txt |\"\${HOME}\"/.local/bin/claude --print --verbose --output-format=stream-json"
66-
exit 0
66+
exit 0
6767
}
6868

6969
prompt_agentapi() {
@@ -94,12 +94,12 @@ prompt_agentapi() {
9494
--show-error \
9595
--silent \
9696
"${CODER_URL}/@${username}/${WORKSPACE_NAME}/apps/${AGENTAPI_SLUG}/message"| jq -r'.ok')
97-
if [["${response}"!="true" ]];then
98-
echo"Failed to send prompt"
99-
exit 1
100-
fi
97+
if [["${response}"!="true" ]];then
98+
echo"Failed to send prompt"
99+
exit 1
100+
fi
101101

102-
wait
102+
wait
103103
}
104104

105105
wait() {
@@ -119,15 +119,15 @@ wait() {
119119

120120
forattemptin {1..600};do
121121
response=$(curl \
122-
--data-raw"${payload}" \
123-
--fail \
124-
--header"Content-Type: application/json" \
125-
--header"Coder-Session-Token:${CODER_SESSION_TOKEN}" \
126-
--location \
127-
--request GET \
128-
--show-error \
129-
--silent \
130-
"${CODER_URL}/@${username}/${WORKSPACE_NAME}/apps/agentapi/status"| jq -r'.status')
122+
--data-raw"${payload}" \
123+
--fail \
124+
--header"Content-Type: application/json" \
125+
--header"Coder-Session-Token:${CODER_SESSION_TOKEN}" \
126+
--location \
127+
--request GET \
128+
--show-error \
129+
--silent \
130+
"${CODER_URL}/@${username}/${WORKSPACE_NAME}/apps/agentapi/status"| jq -r'.status')
131131
if [["${response}"=="stable" ]];then
132132
echo"AgentAPI stable"
133133
break

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp