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.
- package/dist/{check-YKI5457M.js → check-KU5QI4TK.js} +2 -2
- package/dist/{chunk-PUG7T2AD.js → chunk-37EMD6NO.js} +2 -2
- package/dist/{chunk-P4RX4IUV.js → chunk-VKYVBKM6.js} +14 -4
- package/dist/chunk-VKYVBKM6.js.map +1 -0
- package/dist/cli.js +5 -5
- package/dist/{diff-VSRZS6FY.js → diff-NUCYYB5G.js} +2 -2
- package/dist/{reset-PCD2LGRW.js → reset-DRUPPK3U.js} +2 -2
- package/dist/{setup-EYFOH44C.js → setup-UBRPTBRY.js} +3 -3
- package/dist/{upgrade-HGM6PVF2.js → upgrade-I4T5ULZO.js} +3 -3
- package/package.json +6 -6
- package/dist/chunk-P4RX4IUV.js.map +0 -1
- /package/dist/{check-YKI5457M.js.map → check-KU5QI4TK.js.map} +0 -0
- /package/dist/{chunk-PUG7T2AD.js.map → chunk-37EMD6NO.js.map} +0 -0
- /package/dist/{diff-VSRZS6FY.js.map → diff-NUCYYB5G.js.map} +0 -0
- /package/dist/{reset-PCD2LGRW.js.map → reset-DRUPPK3U.js.map} +0 -0
- /package/dist/{setup-EYFOH44C.js.map → setup-UBRPTBRY.js.map} +0 -0
- /package/dist/{upgrade-HGM6PVF2.js.map → upgrade-I4T5ULZO.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
createProjectContext,
|
|
7
7
|
getMissingPacks,
|
|
8
8
|
reconcile
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
192
|
+
//# sourceMappingURL=check-KU5QI4TK.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
addInstalledPack,
|
|
4
4
|
isGitRepo,
|
|
5
5
|
isPackInstalled
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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))
|
|
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-
|
|
3025
|
+
//# sourceMappingURL=chunk-VKYVBKM6.js.map
|