Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules
.npm-cache
dist
build
packages/cli-js/templates
npm-debug.log

# python
Expand Down
6 changes: 3 additions & 3 deletions packages/cli-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "planforge",
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"description": "PlanForge CLI - Bring your own AI to Cursor",
"keywords": ["cursor", "claude", "codex", "ai", "cli", "planning", "planforge"],
Expand All @@ -14,13 +14,13 @@
"publishConfig": {
"access": "public"
},
"files": ["dist", "README.md"],
"files": ["dist", "templates", "README.md"],
"bin": {
"planforge": "dist/index.js"
},
"scripts": {
"check:templates": "node scripts/check-templates.js",
"build": "pnpm run check:templates && tsc",
"build": "pnpm run check:templates && tsc && node scripts/copy-templates.js",
"dev": "tsc --watch",
"planforge": "node dist/index.js",
"install:global": "pnpm run build && npm install -g .",
Expand Down
20 changes: 20 additions & 0 deletions packages/cli-js/scripts/copy-templates.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copy repo-root templates into packages/cli-js/templates so the published npm package contains them.
* Run from packages/cli-js (e.g. node scripts/copy-templates.js).
*/
import { cpSync, mkdirSync, existsSync } from "fs";
import { resolve, dirname } from "path";
import { fileURLToPath } from "url";

const __dirname = dirname(fileURLToPath(import.meta.url));
const repoRoot = resolve(__dirname, "..", "..", "..");
const src = resolve(repoRoot, "templates");
const dest = resolve(__dirname, "..", "templates");

if (!existsSync(src)) {
console.error("copy-templates: repo templates not found at", src);
process.exit(1);
}
mkdirSync(dest, { recursive: true });
cpSync(src, dest, { recursive: true });
console.log("copy-templates: copied templates to", dest);
2 changes: 1 addition & 1 deletion packages/cli-js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const program = new Command();
program
.name("planforge")
.description("Bring your own AI to Cursor. Use Claude or Codex inside Cursor Free.")
.version("0.1.0");
.version("0.1.6");

program
.command("init")
Expand Down
3 changes: 2 additions & 1 deletion packages/cli-js/src/utils/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ export function getDatedPlansDir(projectRoot: string, date: Date = new Date()):

/**
* Resolve path relative to CLI package (for templates).
* From dist/utils/paths.js: two levels up = package root; templates live next to dist/ when published.
*/
export function getTemplatesRoot(): string {
return resolve(__dirname, "..", "..", "..", "..", "templates");
return resolve(__dirname, "..", "..", "templates");
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-py/planforge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""PlanForge CLI - Bring your own AI to Cursor."""

__version__ = "0.1.0"
__version__ = "0.1.6"
2 changes: 1 addition & 1 deletion packages/cli-py/planforge/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


@click.group()
@click.version_option(version="0.1.0")
@click.version_option(version="0.1.6")
def main() -> None:
"""Bring your own AI to Cursor. Use Claude or Codex inside Cursor Free."""

Expand Down
2 changes: 1 addition & 1 deletion packages/cli-py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "planforge"
version = "0.1.5"
version = "0.1.6"
description = "PlanForge CLI - Bring your own AI to Cursor"
requires-python = ">=3.10"
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@planforge/core",
"version": "0.1.5",
"version": "0.1.6",
"description": "PlanForge shared prompts",
"license": "MIT",
"files": ["prompts", "models.json"]
Expand Down
2 changes: 1 addition & 1 deletion packages/core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "planforge-core"
version = "0.1.5"
version = "0.1.6"
description = "PlanForge shared prompts"
requires-python = ">=3.10"

Expand Down
Loading