waypoint-codex 1.0.10 → 1.0.11
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/src/core.js +26 -2
- package/package.json +1 -1
- package/templates/.gitignore.snippet +1 -17
package/dist/src/core.js
CHANGED
|
@@ -11,6 +11,7 @@ const DEFAULT_WORKSPACE = ".waypoint/WORKSPACE.md";
|
|
|
11
11
|
const DEFAULT_ACTIVE_PLANS = ".waypoint/ACTIVE_PLANS.md";
|
|
12
12
|
const GITIGNORE_WAYPOINT_START = "# Waypoint state";
|
|
13
13
|
const GITIGNORE_WAYPOINT_END = "# End Waypoint state";
|
|
14
|
+
const GITIGNORE_SKILLS_PLACEHOLDER = "__WAYPOINT_SKILL_IGNORES__";
|
|
14
15
|
const LEGACY_WAYPOINT_GITIGNORE_RULES = new Set([
|
|
15
16
|
".codex/",
|
|
16
17
|
".codex/config.toml",
|
|
@@ -155,9 +156,31 @@ function migrateLegacyRootFiles(projectRoot) {
|
|
|
155
156
|
removePathIfExists(path.join(projectRoot, "MEMORY.md"));
|
|
156
157
|
removePathIfExists(path.join(projectRoot, "DOCS_INDEX.md"));
|
|
157
158
|
}
|
|
159
|
+
function templateSkillIgnoreLines() {
|
|
160
|
+
const skillsRoot = templatePath(".agents/skills");
|
|
161
|
+
if (!existsSync(skillsRoot)) {
|
|
162
|
+
return [];
|
|
163
|
+
}
|
|
164
|
+
return readdirSync(skillsRoot)
|
|
165
|
+
.filter((entry) => statSync(path.join(skillsRoot, entry)).isDirectory())
|
|
166
|
+
.sort((left, right) => left.localeCompare(right))
|
|
167
|
+
.map((skillName) => `.agents/skills/${skillName}/`);
|
|
168
|
+
}
|
|
169
|
+
function renderGitignoreSnippet() {
|
|
170
|
+
const snippet = readTemplate(".gitignore.snippet").trim();
|
|
171
|
+
const renderedLines = [];
|
|
172
|
+
for (const line of snippet.split("\n")) {
|
|
173
|
+
if (line === GITIGNORE_SKILLS_PLACEHOLDER) {
|
|
174
|
+
renderedLines.push(...templateSkillIgnoreLines());
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
renderedLines.push(line);
|
|
178
|
+
}
|
|
179
|
+
return renderedLines.join("\n");
|
|
180
|
+
}
|
|
158
181
|
function appendGitignoreSnippet(projectRoot) {
|
|
159
182
|
const gitignorePath = path.join(projectRoot, ".gitignore");
|
|
160
|
-
const snippet =
|
|
183
|
+
const snippet = renderGitignoreSnippet();
|
|
161
184
|
const snippetLines = snippet.split("\n");
|
|
162
185
|
if (!existsSync(gitignorePath)) {
|
|
163
186
|
writeText(gitignorePath, `${snippet}\n`);
|
|
@@ -231,7 +254,8 @@ function findLegacyWaypointGitignoreBlockEnd(lines, startIndex) {
|
|
|
231
254
|
}
|
|
232
255
|
function isLegacyWaypointGitignoreRule(line) {
|
|
233
256
|
const normalizedLine = line.startsWith("/") ? line.slice(1) : line;
|
|
234
|
-
return LEGACY_WAYPOINT_GITIGNORE_RULES.has(normalizedLine)
|
|
257
|
+
return LEGACY_WAYPOINT_GITIGNORE_RULES.has(normalizedLine)
|
|
258
|
+
|| /^\.agents\/skills\/[^/]+\/$/.test(normalizedLine);
|
|
235
259
|
}
|
|
236
260
|
function isManagedWaypointGitignoreLine(line, managedLineSet) {
|
|
237
261
|
return managedLineSet.has(line) || isLegacyWaypointGitignoreRule(line);
|
package/package.json
CHANGED
|
@@ -3,23 +3,7 @@
|
|
|
3
3
|
.codex/agents/code-reviewer.toml
|
|
4
4
|
.codex/agents/code-health-reviewer.toml
|
|
5
5
|
.codex/agents/plan-reviewer.toml
|
|
6
|
-
|
|
7
|
-
.agents/skills/foundational-redesign/
|
|
8
|
-
.agents/skills/verify-completeness/
|
|
9
|
-
.agents/skills/work-tracker/
|
|
10
|
-
.agents/skills/docs-sync/
|
|
11
|
-
.agents/skills/code-guide-audit/
|
|
12
|
-
.agents/skills/adversarial-review/
|
|
13
|
-
.agents/skills/break-it-qa/
|
|
14
|
-
.agents/skills/frontend-context-interview/
|
|
15
|
-
.agents/skills/backend-context-interview/
|
|
16
|
-
.agents/skills/frontend-ship-audit/
|
|
17
|
-
.agents/skills/backend-ship-audit/
|
|
18
|
-
.agents/skills/conversation-retrospective/
|
|
19
|
-
.agents/skills/merge-ready-owner/
|
|
20
|
-
.agents/skills/workspace-compress/
|
|
21
|
-
.agents/skills/pre-pr-hygiene/
|
|
22
|
-
.agents/skills/pr-review/
|
|
6
|
+
__WAYPOINT_SKILL_IGNORES__
|
|
23
7
|
.waypoint/config.toml
|
|
24
8
|
.waypoint/README.md
|
|
25
9
|
.waypoint/SOUL.md
|