safeword 0.30.1 → 0.30.2

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.
@@ -6,7 +6,7 @@ import {
6
6
  createProjectContext,
7
7
  getMissingPacks,
8
8
  reconcile
9
- } from "./chunk-P4RX4IUV.js";
9
+ } from "./chunk-VKYVBKM6.js";
10
10
  import "./chunk-YVZL7WO5.js";
11
11
  import {
12
12
  VERSION
@@ -189,4 +189,4 @@ async function check(options) {
189
189
  export {
190
190
  check
191
191
  };
192
- //# sourceMappingURL=check-YKI5457M.js.map
192
+ //# sourceMappingURL=check-KU5QI4TK.js.map
@@ -3,7 +3,7 @@ import {
3
3
  addInstalledPack,
4
4
  isGitRepo,
5
5
  isPackInstalled
6
- } from "./chunk-P4RX4IUV.js";
6
+ } from "./chunk-VKYVBKM6.js";
7
7
 
8
8
  // src/packs/install.ts
9
9
  function installPack(packId, cwd) {
@@ -21,4 +21,4 @@ function installPack(packId, cwd) {
21
21
  export {
22
22
  installPack
23
23
  };
24
- //# sourceMappingURL=chunk-PUG7T2AD.js.map
24
+ //# sourceMappingURL=chunk-37EMD6NO.js.map
@@ -915,7 +915,13 @@ function executeJsonUnmerge(cwd, path2, definition, ctx) {
915
915
  function executeTextPatch(cwd, path2, definition) {
916
916
  const fullPath = nodePath7.join(cwd, path2);
917
917
  let content = readFileSafe(fullPath) ?? "";
918
- if (content.includes(definition.marker)) return;
918
+ if (content.includes(definition.marker)) {
919
+ if (content.includes("\n\n---#")) {
920
+ const healed = content.replaceAll("\n\n---#", "\n\n---\n\n#");
921
+ writeFile(fullPath, healed);
922
+ }
923
+ return;
924
+ }
919
925
  content = definition.operation === "prepend" ? definition.content + content : content + definition.content;
920
926
  writeFile(fullPath, content);
921
927
  }
@@ -2272,10 +2278,14 @@ var AGENTS_MD_LINK = `**\u26A0\uFE0F ALWAYS READ FIRST:** \`.safeword/SAFEWORD.m
2272
2278
  The SAFEWORD.md file contains core development patterns, workflows, and conventions.
2273
2279
  Read it BEFORE working on any task in this project.
2274
2280
 
2275
- ---`;
2281
+ ---
2282
+
2283
+ `;
2276
2284
  var CLAUDE_MD_IMPORT_BLOCK = `@./.safeword/SAFEWORD.md
2277
2285
 
2278
- ---`;
2286
+ ---
2287
+
2288
+ `;
2279
2289
 
2280
2290
  // src/utils/hooks.ts
2281
2291
  function isHookEntry(h) {
@@ -3012,4 +3022,4 @@ export {
3012
3022
  detectLanguages2,
3013
3023
  createProjectContext
3014
3024
  };
3015
- //# sourceMappingURL=chunk-P4RX4IUV.js.map
3025
+ //# sourceMappingURL=chunk-VKYVBKM6.js.map