chore: import upstream snapshot with attribution
CI / lint (push) Failing after 1s
CI / frontend (push) Failing after 1s
CI / scripts (push) Failing after 1s
CI / Go Test (ubuntu-latest) (push) Failing after 0s
CI / frontend-node-25 (push) Failing after 1s
CI / docs (push) Failing after 0s
CI / coverage (push) Failing after 0s
CI / e2e (push) Failing after 0s
Docker / build-and-push (push) Failing after 1s
CI / integration (push) Failing after 4m43s
CI / Go Test (windows-latest) (push) Has been cancelled
CI / Desktop Unit Tests (Windows) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux (arm64)) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Windows) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (aarch64)) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (x86_64)) (push) Has been cancelled
CI / lint (push) Failing after 1s
CI / frontend (push) Failing after 1s
CI / scripts (push) Failing after 1s
CI / Go Test (ubuntu-latest) (push) Failing after 0s
CI / frontend-node-25 (push) Failing after 1s
CI / docs (push) Failing after 0s
CI / coverage (push) Failing after 0s
CI / e2e (push) Failing after 0s
Docker / build-and-push (push) Failing after 1s
CI / integration (push) Failing after 4m43s
CI / Go Test (windows-latest) (push) Has been cancelled
CI / Desktop Unit Tests (Windows) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux (arm64)) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Linux) (push) Has been cancelled
Desktop Artifacts / Desktop Build (Windows) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (aarch64)) (push) Has been cancelled
Desktop Artifacts (macOS) / Desktop Build (macOS (x86_64)) (push) Has been cancelled
This commit is contained in:
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
FROM alpine:3.21
|
||||
RUN apk add --no-cache openssh-server tar && \
|
||||
ssh-keygen -A && \
|
||||
adduser -D -s /bin/sh testuser && \
|
||||
passwd -u testuser && \
|
||||
mkdir -p /home/testuser/.ssh && \
|
||||
ssh-keygen -t ed25519 -f /home/testuser/.ssh/id_test -N "" && \
|
||||
cat /home/testuser/.ssh/id_test.pub \
|
||||
>> /home/testuser/.ssh/authorized_keys && \
|
||||
chmod 700 /home/testuser/.ssh && \
|
||||
chmod 600 /home/testuser/.ssh/authorized_keys && \
|
||||
chown -R testuser:testuser /home/testuser/.ssh && \
|
||||
cp /home/testuser/.ssh/id_test /tmp/test_ssh_key && \
|
||||
chmod 644 /tmp/test_ssh_key
|
||||
# Configure sshd: enable pubkey auth explicitly and allow
|
||||
# login for testuser. Write a fresh config to avoid any
|
||||
# Alpine defaults that might interfere.
|
||||
RUN printf '%s\n' \
|
||||
"Port 22" \
|
||||
"PubkeyAuthentication yes" \
|
||||
"AuthorizedKeysFile .ssh/authorized_keys" \
|
||||
"PasswordAuthentication no" \
|
||||
"PermitRootLogin no" \
|
||||
"Subsystem sftp /usr/lib/ssh/sftp-server" \
|
||||
> /etc/ssh/sshd_config
|
||||
|
||||
# Claude session fixture: file must be <project>/<uuid>.jsonl
|
||||
# (DiscoverClaudeProjects looks for .jsonl files directly in
|
||||
# project dirs, not inside subdirectories)
|
||||
RUN mkdir -p /home/testuser/.claude/projects/test-project
|
||||
COPY testdata/ssh/session.jsonl \
|
||||
/home/testuser/.claude/projects/test-project/aaaaaaaa-1111-2222-3333-444444444444.jsonl
|
||||
RUN chown -R testuser:testuser /home/testuser/.claude
|
||||
|
||||
EXPOSE 22
|
||||
CMD ["/usr/sbin/sshd", "-D", "-e"]
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{"type":"user","timestamp":"2024-01-01T10:00:00Z","message":{"content":"Fix the login bug"},"cwd":"/home/testuser/code/my-app"}
|
||||
{"type":"assistant","timestamp":"2024-01-01T10:00:05Z","message":{"model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Looking at the auth module..."},{"type":"tool_use","id":"toolu_1","name":"Read","input":{"file_path":"src/auth.ts"}}],"usage":{"input_tokens":100,"output_tokens":50,"cache_creation_input_tokens":200,"cache_read_input_tokens":300}}}
|
||||
{"type":"user","timestamp":"2024-01-01T10:05:00Z","message":{"content":"That looks right"}}
|
||||
{"type":"assistant","timestamp":"2024-01-01T10:05:05Z","message":{"model":"claude-sonnet-4-20250514","content":[{"type":"text","text":"Applied the fix."}],"usage":{"input_tokens":150,"output_tokens":75,"cache_creation_input_tokens":0,"cache_read_input_tokens":500}}}
|
||||
Reference in New Issue
Block a user