arreio 1.0.1 → 1.0.2-dev.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
@@ -17,9 +17,7 @@ Install Arreio as a dependency to enable all skills in your workspace:
17
17
  npm install arreio
18
18
  ```
19
19
 
20
- The post-install script will automatically copy all Arreio skills to your `~/.agents/skills/` directory, making them available in VS Code Copilot Chat. (Note: npm may show an advisory about unallowed install scripts—this is informational and won't block the installation.)
21
-
22
- Then initialize your project to set up the Arreio folder structure and documentation:
20
+ Then initialize your project to set up Arreio workflows:
23
21
 
24
22
  ```
25
23
  /arreio-init
@@ -27,7 +25,7 @@ Then initialize your project to set up the Arreio folder structure and documenta
27
25
 
28
26
  Run this command in VS Code Copilot Chat to:
29
27
 
30
- 1. Verify or manually install Arreio skills to `~/.agents/skills/` (if postinstall was skipped)
28
+ 1. Copy all Arreio skills to your `~/.agents/skills/` directory
31
29
  2. Create the project structure (`docs/plans/`, `docs/learn/`, etc.)
32
30
  3. Set up architectural documentation and index files
33
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arreio",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-dev.0",
4
4
  "description": "Arreio transforms agentic coding workflows into a predictable, safe, and high-quality software delivery pipeline. Master the four core phases—Plan, Work, Review, Learn—to orchestrate a highly reliable development cycle.",
5
5
  "license": "MIT",
6
6
  "author": "Wicttor",
@@ -27,12 +27,8 @@
27
27
  "main": "README.md",
28
28
  "files": [
29
29
  "skills/",
30
- "scripts/",
31
30
  "README.md"
32
31
  ],
33
- "scripts": {
34
- "postinstall": "node scripts/postinstall.js"
35
- },
36
32
  "engines": {
37
33
  "node": ">=14.0.0"
38
34
  },
@@ -35,18 +35,16 @@ After initialization, the following modules can operate:
35
35
 
36
36
  The initialization workflow runs in two phases:
37
37
 
38
- 1. **Phase 0: Install Skills (Optional)** — Verify or manually copy Arreio skills to `~/.agents/skills/` (skills are normally installed via npm postinstall, but this phase can install them as a fallback)
38
+ 1. **Phase 0: Install Skills** — Copy Arreio skills to `~/.agents/skills/` for VS Code Copilot Chat discovery
39
39
  2. **Phase 1: Initialize Project Structure** — Create folders, indexes, and architectural documentation
40
40
 
41
- ### Step 1: Install Skills (Optional Fallback)
41
+ ### Step 1: Install Skills
42
42
 
43
- Verify that Arreio skills are installed to the user's `.agents/skills` directory. See [modules/install.md](modules/install.md) for detailed instructions.
43
+ Install Arreio skills to the user's `.agents/skills` directory. See [modules/install.md](modules/install.md) for detailed instructions.
44
44
 
45
- **Why:** Skills must be available in `~/.agents/skills/` for VS Code Copilot Chat discovery. Normally, the npm postinstall script handles this automatically when you run `npm install arreio`. This step provides a manual fallback if postinstall was skipped.
45
+ **Why:** Skills must be copied from the installed npm package to the user's home directory so they are discoverable by VS Code Copilot Chat. This step must run first, before project structure is created.
46
46
 
47
- **When to run:** Skip this step if npm postinstall has already run. If skills are not yet installed, this phase will copy them from `node_modules/arreio/skills/` to `~/.agents/skills/`.
48
-
49
- **Action:** See [install.md](modules/install.md) for verification and manual installation steps.
47
+ **Action:** Execute the [install.md](modules/install.md) phase to copy all skills from `node_modules/arreio/skills/` to `~/.agents/skills/`.
50
48
 
51
49
  ### Step 2: Create Core Folder Structure
52
50
 
@@ -1,37 +1,22 @@
1
1
  ---
2
2
  title: Install Skills
3
- description: Verify or manually install Arreio skills to the user's .agents/skills directory, providing a fallback if npm postinstall was skipped.
3
+ description: Install Arreio skills to the user's .agents/skills directory, making them available in VS Code Copilot Chat.
4
4
  type: module
5
5
  version: 1.0
6
6
  timestamp: "2026-09-01"
7
7
  ---
8
8
 
9
- # Phase 0 - Install Skills (Fallback)
9
+ # Phase 0 - Install Skills
10
10
 
11
- **Purpose:** Verify that Arreio skills are installed to the user's `~/.agents/skills/` directory, making them available for discovery and invocation in VS Code Copilot Chat. This is normally handled by the npm postinstall script, but this phase provides a manual fallback if postinstall was skipped or if users need to reinstall skills.
11
+ **Purpose:** Copy Arreio skills from the installed npm package to the user's `~/.agents/skills/` directory, making them available for discovery and invocation in VS Code Copilot Chat. This ensures all Arreio workflows (plan, work, review, learn, end-session) are accessible after initialization.
12
12
 
13
13
  ## Workflow
14
14
 
15
- This is the Phase 0 pipeline for the Arreio Init Skill. It performs verification and optional installation before creating project structure.
15
+ This is the Phase 0 pipeline for the Arreio Init Skill. It orchestrates the following steps before creating project structure.
16
16
 
17
- ### Step 1: Check if Skills Already Installed
17
+ ### Step 1: Verify Installation Context
18
18
 
19
- First, verify that Arreio skills are already available:
20
-
21
- 1. Check if `~/.agents/skills/` directory exists and contains the expected skill folders (plan, work, review, learn, end-session, arreio-init).
22
- 2. If all skills are present and current, log success and skip to project structure initialization (Step 2).
23
- 3. If skills are missing or incomplete, proceed to Step 2.
24
-
25
- **Result:**
26
-
27
- - ✓ Skills already installed → Skip to project structure
28
- - ✗ Skills missing → Proceed to manual installation
29
-
30
- ### Step 2: Verify Installation Context (if needed)
31
-
32
- ### Step 2: Verify Installation Context (if needed)
33
-
34
- Verify that the prerequisites are met if skills need to be installed:
19
+ Verify that the prerequisites are met:
35
20
 
36
21
  1. Arreio is installed as an npm package in the current project (`node_modules/arreio/` exists).
37
22
  2. The skills directory exists in the package: `node_modules/arreio/skills/` contains subdirectories for each skill.
@@ -43,7 +28,7 @@ If any verification fails:
43
28
  - **Missing skills:** Report a package integrity error (the skills/ directory is missing from the installed package).
44
29
  - **No home access:** Report an environment error (unable to determine home directory).
45
30
 
46
- ### Step 3: Create Target Directory
31
+ ### Step 2: Create Target Directory
47
32
 
48
33
  Create the destination directory hierarchy:
49
34
 
@@ -51,7 +36,7 @@ Create the destination directory hierarchy:
51
36
  2. If `~/.agents/skills/` does not exist, create it.
52
37
  3. Log: `✓ Created ~/.agents/skills/`
53
38
 
54
- ### Step 4: Copy Skills from Package
39
+ ### Step 3: Copy Skills from Package
55
40
 
56
41
  Copy each skill directory from `node_modules/arreio/skills/` to `~/.agents/skills/`:
57
42
 
@@ -79,7 +64,7 @@ If any copy operation fails:
79
64
  - Ask the user to manually verify the source exists and the destination is writable.
80
65
  - Do not proceed to the next phase.
81
66
 
82
- ### Step 5: Verify Installation Success
67
+ ### Step 4: Verify Installation Success
83
68
 
84
69
  After all skills are copied, verify that the expected skill files are present:
85
70
 
@@ -104,14 +89,14 @@ Skills are now available in VS Code Copilot Chat.
104
89
 
105
90
  If verification fails for any skill, report which skills failed and suggest manual verification.
106
91
 
107
- ### Step 6: Log Installation Summary
92
+ ### Step 5: Log Installation Summary
108
93
 
109
94
  Provide the user with confirmation and next steps:
110
95
 
111
96
  ```
112
97
  Installation complete. Arreio skills are now available:
113
98
 
114
- Next step: Project structure will be initialized in the next phase of arreio-init.
99
+ Next step: Project structure will be initialized in Step 1 of arreio-init.
115
100
 
116
101
  You can now use:
117
102
  /plan — Create implementation plans
@@ -1,50 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /**
4
- * Post-install script for arreio
5
- * Copies skills from the package to the user's .agents/skills directory
6
- */
7
-
8
- const fs = require('fs');
9
- const path = require('path');
10
- const os = require('os');
11
-
12
- // Determine the source and destination paths
13
- const packageDir = path.dirname(__dirname);
14
- const skillsSource = path.join(packageDir, 'skills');
15
- const agentsDir = path.join(os.homedir(), '.agents');
16
- const skillsDestination = path.join(agentsDir, 'skills');
17
-
18
- // Function to recursively copy directories
19
- function copyDirectory(src, dest) {
20
- if (!fs.existsSync(dest)) {
21
- fs.mkdirSync(dest, { recursive: true });
22
- }
23
-
24
- const files = fs.readdirSync(src);
25
- files.forEach(file => {
26
- const srcFile = path.join(src, file);
27
- const destFile = path.join(dest, file);
28
- const stat = fs.statSync(srcFile);
29
-
30
- if (stat.isDirectory()) {
31
- copyDirectory(srcFile, destFile);
32
- } else {
33
- fs.copyFileSync(srcFile, destFile);
34
- }
35
- });
36
- }
37
-
38
- try {
39
- // Create .agents directory if it doesn't exist
40
- if (!fs.existsSync(agentsDir)) {
41
- fs.mkdirSync(agentsDir, { recursive: true });
42
- }
43
-
44
- // Copy skills to .agents/skills
45
- copyDirectory(skillsSource, skillsDestination);
46
- console.log(`✓ Arreio skills installed to ${skillsDestination}`);
47
- } catch (error) {
48
- console.error(`✗ Failed to install Arreio skills: ${error.message}`);
49
- process.exit(1);
50
- }