@pourkit/cli 0.0.0-next-20260617220545 → 0.0.0-next-20260617232425
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/.sandcastle/Dockerfile +61 -0
- package/dist/cli.js +8 -5
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
FROM node:22-trixie
|
|
2
|
+
|
|
3
|
+
# Install system dependencies
|
|
4
|
+
RUN apt-get update && apt-get install -y \
|
|
5
|
+
git \
|
|
6
|
+
curl \
|
|
7
|
+
jq \
|
|
8
|
+
ca-certificates \
|
|
9
|
+
python3 \
|
|
10
|
+
python3-venv \
|
|
11
|
+
build-essential \
|
|
12
|
+
ripgrep \
|
|
13
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
14
|
+
|
|
15
|
+
# Install GitHub CLI
|
|
16
|
+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
|
|
17
|
+
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
|
|
18
|
+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
|
|
19
|
+
| tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
|
|
20
|
+
&& apt-get update && apt-get install -y gh \
|
|
21
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
22
|
+
|
|
23
|
+
# Rename the base image's "node" user (UID 1000) to "agent".
|
|
24
|
+
# This keeps UID 1000 so that --userns=keep-id (Podman) and
|
|
25
|
+
# --user 1000:1000 (Docker) map to the correct home directory owner.
|
|
26
|
+
RUN usermod -d /home/agent -m -l agent node
|
|
27
|
+
|
|
28
|
+
# Install OpenCode CLI (run as root before USER agent)
|
|
29
|
+
RUN npm install -g opencode-ai@latest
|
|
30
|
+
|
|
31
|
+
# Install Pourkit CLI for agent-executed validation/verification
|
|
32
|
+
RUN npm install -g @pourkit/cli@next
|
|
33
|
+
|
|
34
|
+
# Install opensrc so agents can inspect dependency source code
|
|
35
|
+
RUN npm install -g opensrc
|
|
36
|
+
|
|
37
|
+
# Pre-create writable XDG directories so bind mounts do not leave
|
|
38
|
+
# parent paths root-owned inside the container.
|
|
39
|
+
RUN mkdir -p \
|
|
40
|
+
/home/agent/.local/bin \
|
|
41
|
+
/home/agent/.local/share \
|
|
42
|
+
/home/agent/.local/state \
|
|
43
|
+
/home/agent/.config \
|
|
44
|
+
/home/agent/.cache \
|
|
45
|
+
&& chown -R agent:node /home/agent/.local /home/agent/.config /home/agent/.cache
|
|
46
|
+
|
|
47
|
+
USER agent
|
|
48
|
+
|
|
49
|
+
WORKDIR /home/agent
|
|
50
|
+
|
|
51
|
+
ENV PATH="/home/agent/.local/bin:${PATH}"
|
|
52
|
+
|
|
53
|
+
# Install RTK
|
|
54
|
+
RUN curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
|
|
55
|
+
RUN rtk init -g --opencode
|
|
56
|
+
|
|
57
|
+
# Install Vera CLI
|
|
58
|
+
# In worktree sandbox mode, Sandcastle bind-mounts the git worktree at ${SANDBOX_REPO_DIR}
|
|
59
|
+
# and overrides the working directory to ${SANDBOX_REPO_DIR} at container start.
|
|
60
|
+
# Structure your Dockerfile so that ${SANDBOX_REPO_DIR} can serve as the project root.
|
|
61
|
+
ENTRYPOINT ["sleep", "infinity"]
|
package/dist/cli.js
CHANGED
|
@@ -13336,7 +13336,7 @@ Do not edit this file.
|
|
|
13336
13336
|
});
|
|
13337
13337
|
}
|
|
13338
13338
|
}
|
|
13339
|
-
const srcSandboxDockerfile =
|
|
13339
|
+
const srcSandboxDockerfile = resolveSourceAssetPath(
|
|
13340
13340
|
sourceRoot,
|
|
13341
13341
|
".sandcastle",
|
|
13342
13342
|
"Dockerfile"
|
|
@@ -14186,6 +14186,7 @@ async function applyInitFromSource(options) {
|
|
|
14186
14186
|
packageManager,
|
|
14187
14187
|
noGitCheck,
|
|
14188
14188
|
skipInstall,
|
|
14189
|
+
releaseWorkflow,
|
|
14189
14190
|
labelConflictPolicy
|
|
14190
14191
|
} = options;
|
|
14191
14192
|
const ghClientResult = await tryCreateGitHubClient({ cwd: targetRoot });
|
|
@@ -14199,6 +14200,7 @@ async function applyInitFromSource(options) {
|
|
|
14199
14200
|
noGitCheck,
|
|
14200
14201
|
skipInstall,
|
|
14201
14202
|
labels: options.labels,
|
|
14203
|
+
releaseWorkflow,
|
|
14202
14204
|
labelConflictPolicy,
|
|
14203
14205
|
githubClient
|
|
14204
14206
|
});
|
|
@@ -14377,6 +14379,7 @@ ${plan.warnings.length} warning(s) \u2014 review above before applying.`
|
|
|
14377
14379
|
noGitCheck: options.noGitCheck,
|
|
14378
14380
|
skipInstall: options.skipInstall,
|
|
14379
14381
|
labels: planLabels,
|
|
14382
|
+
releaseWorkflow: options.releaseWorkflow,
|
|
14380
14383
|
labelConflictPolicy: planLabelConflictPolicy
|
|
14381
14384
|
});
|
|
14382
14385
|
if (result.errors.length > 0) {
|
|
@@ -17431,11 +17434,11 @@ function createCliProgram(version) {
|
|
|
17431
17434
|
return program;
|
|
17432
17435
|
}
|
|
17433
17436
|
async function resolveCliVersion() {
|
|
17434
|
-
if (isPackageVersion("0.0.0-next-
|
|
17435
|
-
return "0.0.0-next-
|
|
17437
|
+
if (isPackageVersion("0.0.0-next-20260617232425")) {
|
|
17438
|
+
return "0.0.0-next-20260617232425";
|
|
17436
17439
|
}
|
|
17437
|
-
if (isReleaseVersion("0.0.0-next-
|
|
17438
|
-
return "0.0.0-next-
|
|
17440
|
+
if (isReleaseVersion("0.0.0-next-20260617232425")) {
|
|
17441
|
+
return "0.0.0-next-20260617232425";
|
|
17439
17442
|
}
|
|
17440
17443
|
try {
|
|
17441
17444
|
const root = repoRoot();
|