cairn-work 0.3.0 → 0.5.0

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/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # Cairn šŸ”ļø
1
+ # Cairn 🦮
2
2
 
3
3
  AI-native project management where markdown files are the source of truth.
4
4
 
5
5
  ## Quick Start
6
6
 
7
7
  ```bash
8
- npm install -g cairn
8
+ npm install -g cairn-work
9
9
  cairn onboard
10
10
  ```
11
11
 
@@ -27,9 +27,9 @@ Cairn is a project management system designed for working with AI agents. Instea
27
27
  ### Global Install (Recommended)
28
28
 
29
29
  ```bash
30
- npm install -g cairn
30
+ npm install -g cairn-work
31
31
  # or
32
- bun install -g cairn
32
+ bun install -g cairn-work
33
33
  ```
34
34
 
35
35
  ### Test Locally
package/bin/cairn.js CHANGED
@@ -14,7 +14,7 @@ const program = new Command();
14
14
 
15
15
  program
16
16
  .name('cairn')
17
- .description('šŸ”ļø AI-native project management')
17
+ .description('🦮 AI-native project management')
18
18
  .version(packageJson.version);
19
19
 
20
20
  // Import commands
@@ -12,7 +12,7 @@ import { verifyCursor } from '../agents/cursor.js';
12
12
  import { validateWorkspace, createWorkspace, createWelcomeFile, resolveWorkspace } from '../setup/workspace.js';
13
13
 
14
14
  export default async function doctor() {
15
- console.log(chalk.bold.cyan('\nšŸ”ļø Cairn Doctor\n'));
15
+ console.log(chalk.bold.cyan('\n🦮 Cairn Doctor\n'));
16
16
  console.log(chalk.dim('Checking workspace health...\n'));
17
17
 
18
18
  const workspacePath = resolveWorkspace() || join(homedir(), 'cairn');
@@ -3,7 +3,7 @@ import chalk from 'chalk';
3
3
  import { createWorkspace, createWelcomeFile, workspaceExists } from '../setup/workspace.js';
4
4
 
5
5
  export default async function init(options) {
6
- console.log(chalk.bold.cyan('\nšŸ”ļø Initializing Cairn\n'));
6
+ console.log(chalk.bold.cyan('\n🦮 Initializing Cairn\n'));
7
7
 
8
8
  const workspacePath = options.path || process.cwd();
9
9
 
@@ -12,7 +12,7 @@ import { setupGeneric, getGenericInstructions } from '../agents/generic.js';
12
12
  import { createWorkspace, createWelcomeFile, workspaceExists } from '../setup/workspace.js';
13
13
 
14
14
  export default async function onboard(options) {
15
- console.log(chalk.bold.cyan('\nšŸ”ļø Cairn Onboarding\n'));
15
+ console.log(chalk.bold.cyan('\n🦮 Cairn Onboarding\n'));
16
16
 
17
17
  // Prompt for workspace path (if not provided)
18
18
  let workspacePath = options.path;
@@ -134,8 +134,10 @@ export default async function onboard(options) {
134
134
  // Success!
135
135
  console.log(chalk.bold.green('\nšŸŽ‰ Onboarding complete!\n'));
136
136
  console.log(chalk.dim('Next steps:'));
137
- console.log(chalk.dim(' 1. Test your agent with: "Help me create a project"'));
138
- console.log(chalk.dim(' 2. Read the docs: cairn --help'));
139
- console.log(chalk.dim(' 3. Create your first project: cairn create project "My Project"'));
137
+ console.log(chalk.dim(' 1. Open your workspace and tell your agent:'));
138
+ console.log(chalk.dim(' "I use Cairn for project management. Run `cairn --help`'));
139
+ console.log(chalk.dim(' to learn the commands, then help me create my first project."'));
140
+ console.log(chalk.dim(' 2. Or try it yourself: cairn create project "My Project"'));
141
+ console.log(chalk.dim(' 3. Explore commands: cairn --help'));
140
142
  console.log();
141
143
  }
@@ -8,7 +8,7 @@ import { setupCursor } from '../agents/cursor.js';
8
8
  import { resolveWorkspace } from '../setup/workspace.js';
9
9
 
10
10
  export default async function updateSkill(options) {
11
- console.log(chalk.bold.cyan('\nšŸ”ļø Updating Agent Skill\n'));
11
+ console.log(chalk.bold.cyan('\n🦮 Updating Agent Skill\n'));
12
12
 
13
13
  const workspacePath = resolveWorkspace();
14
14
 
@@ -14,7 +14,7 @@ const __dirname = dirname(__filename);
14
14
  * Check npm registry for latest version and prompt to update
15
15
  */
16
16
  export default async function update() {
17
- console.log(chalk.bold.cyan('\nšŸ”ļø Checking for updates...\n'));
17
+ console.log(chalk.bold.cyan('\n🦮 Checking for updates...\n'));
18
18
 
19
19
  // Get current version
20
20
  const packageJson = JSON.parse(
@@ -24,7 +24,7 @@ export default async function update() {
24
24
 
25
25
  try {
26
26
  // Check npm registry for latest version
27
- const { stdout } = await execAsync('npm view cairn version');
27
+ const { stdout } = await execAsync('npm view cairn-work version');
28
28
  const latestVersion = stdout.trim();
29
29
 
30
30
  console.log(chalk.dim('Current version:'), chalk.cyan(currentVersion));
@@ -52,10 +52,10 @@ export default async function update() {
52
52
 
53
53
  // Perform update
54
54
  console.log();
55
- console.log(chalk.dim('Running:'), chalk.cyan('npm install -g cairn@latest'));
55
+ console.log(chalk.dim('Running:'), chalk.cyan('npm install -g cairn-work@latest'));
56
56
  console.log();
57
57
 
58
- const updateProcess = exec('npm install -g cairn@latest');
58
+ const updateProcess = exec('npm install -g cairn-work@latest');
59
59
  updateProcess.stdout.pipe(process.stdout);
60
60
  updateProcess.stderr.pipe(process.stderr);
61
61
 
@@ -68,7 +68,7 @@ export default async function update() {
68
68
  } else {
69
69
  console.log();
70
70
  console.error(chalk.red('āœ—'), 'Update failed');
71
- console.log(chalk.dim('Try running manually:'), chalk.cyan('npm install -g cairn@latest'));
71
+ console.log(chalk.dim('Try running manually:'), chalk.cyan('npm install -g cairn-work@latest'));
72
72
  console.log();
73
73
  process.exit(1);
74
74
  }
@@ -77,7 +77,7 @@ export default async function update() {
77
77
  } catch (error) {
78
78
  console.error(chalk.red('Error checking for updates:'), error.message);
79
79
  console.log(chalk.dim('\nYou can update manually:'));
80
- console.log(chalk.cyan(' npm install -g cairn@latest'));
80
+ console.log(chalk.cyan(' npm install -g cairn-work@latest'));
81
81
  console.log();
82
82
  process.exit(1);
83
83
  }
@@ -40,7 +40,7 @@ export function createWelcomeFile(path) {
40
40
  return; // Don't overwrite existing README
41
41
  }
42
42
 
43
- const content = `# Welcome to Cairn šŸ”ļø
43
+ const content = `# Welcome to Cairn 🦮
44
44
 
45
45
  You've successfully set up Cairn!
46
46
 
@@ -104,7 +104,7 @@ owner: me
104
104
  - **Check health:** \`cairn doctor\`
105
105
  - **Update skill:** \`cairn update-skill\`
106
106
 
107
- Happy building! šŸ”ļø
107
+ Happy building! 🦮
108
108
  `;
109
109
 
110
110
  writeFileSync(readmePath, content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cairn-work",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "AI-native project management - work with AI agents using markdown files",
5
5
  "type": "module",
6
6
  "bin": {