Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Merge remote-tracking branch 'upstream/main' into pipe-create-example

matthew-heartful0aae05668a1a
diff --cc screenpipe-js/cli/src/commands/pipe/create.ts
index c6b8eeb33,5f18d8a3c..360afa95f
--- a/screenpipe-js/cli/src/commands/pipe/create.ts
+++ b/screenpipe-js/cli/src/commands/pipe/create.ts
@@@ -73,11 -91,14 +91,14 @@@ export const createPipeCommand = new Co
const loadingSpinner = spinner("creating your pipe...");
try {
+ // Ensure we have an absolute path
+ const absoluteDirectory = path.resolve(process.cwd(), directory);
+
// Download and extract the appropriate template
- await downloadAndExtractSubdir("pipes/example-pipe", directory);
- await downloadAndExtractSubdir("pipes/obsidian", absoluteDirectory);
++ await downloadAndExtractSubdir("pipes/example-pipe", absoluteDirectory);
// Update package.json with the pipe name
- const pkgPath = path.join(process.cwd(), directory, "package.json");
+ const pkgPath = path.join(absoluteDirectory, "package.json");
const pkg = await fs.readJson(pkgPath);
pkg.name = pipeName;