cowork-flow 0.0.1 → 0.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cowork-flow",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "CLI for installing and maintaining cowork-flow collaboration templates.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,12 +32,20 @@ async function listFiles(root, current = root) {
32
32
  return files.sort();
33
33
  }
34
34
 
35
+ function toTemplatePath(relativePath) {
36
+ return relativePath.replaceAll('\\', '/');
37
+ }
38
+
39
+ export function isInternalTemplateFile(relativePath) {
40
+ return toTemplatePath(relativePath).startsWith('.superpowers/');
41
+ }
42
+
35
43
  export async function buildInitPlan(targetDir, options = {}) {
36
44
  const files = await listFiles(templateRoot);
37
45
  const actions = [];
38
46
 
39
47
  for (const file of files) {
40
- if (file === '.cowork-flow/.version' || file.startsWith('.superpowers/')) {
48
+ if (toTemplatePath(file) === '.cowork-flow/.version' || isInternalTemplateFile(file)) {
41
49
  continue;
42
50
  }
43
51
 
@@ -125,7 +133,7 @@ export async function buildSyncPlan(targetDir, options = {}) {
125
133
  const actions = [];
126
134
 
127
135
  for (const file of files) {
128
- if (file === '.cowork-flow/.version' || file.startsWith('.superpowers/')) {
136
+ if (toTemplatePath(file) === '.cowork-flow/.version' || isInternalTemplateFile(file)) {
129
137
  continue;
130
138
  }
131
139
 
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2