wile 0.6.6 → 0.6.8
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/agent/Dockerfile
CHANGED
|
@@ -36,13 +36,6 @@ RUN cd /opt/agent-browser \
|
|
|
36
36
|
&& node /opt/agent-browser/node_modules/agent-browser/scripts/postinstall.js \
|
|
37
37
|
&& ln -s /opt/agent-browser/node_modules/agent-browser/bin/agent-browser /usr/local/bin/agent-browser
|
|
38
38
|
|
|
39
|
-
# Install Python 3.11
|
|
40
|
-
RUN add-apt-repository ppa:deadsnakes/ppa -y \
|
|
41
|
-
&& apt-get update \
|
|
42
|
-
&& apt-get install -y python3.11 python3.11-venv python3-pip \
|
|
43
|
-
&& update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 \
|
|
44
|
-
&& rm -rf /var/lib/apt/lists/*
|
|
45
|
-
|
|
46
39
|
# Create non-root user
|
|
47
40
|
RUN useradd -m -s /bin/bash wile \
|
|
48
41
|
&& mkdir -p /home/wile/workspace \
|
|
@@ -6,8 +6,9 @@ Steps:
|
|
|
6
6
|
1. Read `.wile/prd.json` and `.wile/progress.txt`.
|
|
7
7
|
2. Update `.wile/prd.json` to:
|
|
8
8
|
- Keep every story where `passes` is `false` exactly as-is.
|
|
9
|
-
-
|
|
10
|
-
-
|
|
9
|
+
- Preserve any existing grouped stories (ids starting with `GROUP-`) exactly as-is.
|
|
10
|
+
- Replace all remaining stories where `passes` is `true` with a single grouped story.
|
|
11
|
+
- The final structure must be: `{ "userStories": [ ...existing-group-stories, { ...GROUP-001... }, ...all-passes-false-stories ] }`.
|
|
11
12
|
- The grouped story must use `id: "GROUP-001"`.
|
|
12
13
|
- `title`: a concise summary of everything done.
|
|
13
14
|
- `tasks`: 2-4 short bullet items derived from the summary tasks.
|
|
@@ -107,6 +107,20 @@ if (fs.existsSync(prdOriginalPath)) {
|
|
|
107
107
|
console.error("Compaction removed passes:false stories.");
|
|
108
108
|
process.exit(1);
|
|
109
109
|
}
|
|
110
|
+
|
|
111
|
+
const originalGroups = original.userStories.filter((story) =>
|
|
112
|
+
typeof story?.id === "string" && story.id.startsWith("GROUP-"),
|
|
113
|
+
);
|
|
114
|
+
const currentGroups = payload.userStories.filter((story) =>
|
|
115
|
+
typeof story?.id === "string" && story.id.startsWith("GROUP-"),
|
|
116
|
+
);
|
|
117
|
+
const missingGroups = originalGroups.filter(
|
|
118
|
+
(story) => !currentGroups.some((current) => current?.id === story?.id),
|
|
119
|
+
);
|
|
120
|
+
if (missingGroups.length > 0) {
|
|
121
|
+
console.error("Compaction removed existing grouped stories.");
|
|
122
|
+
process.exit(1);
|
|
123
|
+
}
|
|
110
124
|
}
|
|
111
125
|
|
|
112
126
|
const progressText = fs.readFileSync(progressPath, "utf8");
|