@cassiomc1/forgeloop 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@cassiomc1/forgeloop",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Portable, verifiable instruction kit for AI agents and developers",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/cassiomc1/mdfiles.git"
7
+ "url": "git+https://github.com/cassiomc1/mdfiles.git"
8
8
  },
9
9
  "homepage": "https://github.com/cassiomc1/mdfiles#readme",
10
10
  "license": "SEE LICENSE IN LICENSE",
@@ -22,7 +22,7 @@
22
22
  "src",
23
23
  "ENG",
24
24
  "schemas",
25
- ".forgeloop/.gitignore",
25
+ ".forgeloop/forgeloop.gitignore",
26
26
  "AGENTS.md",
27
27
  "CLAUDE.md",
28
28
  "GUIDE_ROUTER.md",
@@ -4,6 +4,10 @@ import { fileURLToPath } from "node:url";
4
4
 
5
5
  const PACKAGE_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
6
6
 
7
+ const TEMPLATE_SOURCE_PATHS = Object.freeze({
8
+ ".forgeloop/.gitignore": ".forgeloop/forgeloop.gitignore",
9
+ });
10
+
7
11
  export const TEMPLATE_PATHS = [
8
12
  ".forgeloop/.gitignore",
9
13
  "AGENTS.md",
@@ -48,9 +52,12 @@ export function getPackageRoot() {
48
52
 
49
53
  export async function readTemplateEntries(packageRoot = PACKAGE_ROOT) {
50
54
  return Promise.all(
51
- TEMPLATE_PATHS.map(async (relativePath) => ({
52
- relativePath,
53
- bytes: await readFile(path.join(packageRoot, relativePath)),
54
- })),
55
+ TEMPLATE_PATHS.map(async (relativePath) => {
56
+ const sourcePath = TEMPLATE_SOURCE_PATHS[relativePath] ?? relativePath;
57
+ return {
58
+ relativePath,
59
+ bytes: await readFile(path.join(packageRoot, sourcePath)),
60
+ };
61
+ }),
55
62
  );
56
63
  }
File without changes