arreio 1.0.3 → 1.0.5

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
@@ -12,7 +12,15 @@ Install Arreio as a dependency to enable all skills in your workspace:
12
12
  npm install arreio
13
13
  ```
14
14
 
15
- The post-install script will automatically copy all Arreio skills to your project's `.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.)
15
+ The post-install script will automatically copy all Arreio skills to your project's `.agents/skills/` directory, making them available to your AI coding agent.
16
+
17
+ > **Note on npm 10+ install scripts:** npm 10+ blocks lifecycle scripts by default and will print a warning like `npm warn install-scripts arreio@x.y.z (postinstall: ...)`. The script is not run automatically until you allow it. Run:
18
+ >
19
+ > ```bash
20
+ > npm install-scripts approve arreio
21
+ > ```
22
+ >
23
+ > If you skip the postinstall, run `/arreio-init` in your AI coding agent — it will install the skills for you.
16
24
 
17
25
  Then initialize your project to set up the Arreio folder structure and documentation:
18
26
 
@@ -20,7 +28,7 @@ Then initialize your project to set up the Arreio folder structure and documenta
20
28
  /arreio-init
21
29
  ```
22
30
 
23
- Run this command in VS Code Copilot Chat to:
31
+ Run this command in your AI coding agent to:
24
32
 
25
33
  1. Verify or manually install Arreio skills to `.agents/skills/` (if postinstall was skipped)
26
34
  2. Create the project structure (`docs/plans/`, `docs/learn/`, etc.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arreio",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
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",
@@ -11,7 +11,11 @@ const path = require('path');
11
11
  // Determine the source and destination paths
12
12
  const packageDir = path.dirname(__dirname);
13
13
  const skillsSource = path.join(packageDir, 'skills');
14
- const agentsDir = path.join(process.cwd(), '.agents');
14
+
15
+ // INIT_CWD is set by npm to the project root during lifecycle scripts.
16
+ // Fallback to process.cwd() for direct/manual runs.
17
+ const projectRoot = process.env.INIT_CWD || process.cwd();
18
+ const agentsDir = path.join(projectRoot, '.agents');
15
19
  const skillsDestination = path.join(agentsDir, 'skills');
16
20
 
17
21
  // Function to recursively copy directories
@@ -42,7 +42,7 @@ The initialization workflow runs in two phases:
42
42
 
43
43
  Verify that Arreio skills are installed to the project'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 available in `.agents/skills/` so your AI coding agent can discover them. Normally, the npm postinstall script handles this automatically when you run `npm install arreio`. This step provides a manual fallback if postinstall was skipped.
46
46
 
47
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
48
 
@@ -8,7 +8,7 @@ timestamp: "2026-09-01"
8
8
 
9
9
  # Phase 0 - Install Skills (Fallback)
10
10
 
11
- **Purpose:** Verify that Arreio skills are installed to the project'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:** Verify that Arreio skills are installed to the project's `.agents/skills/` directory, making them available for discovery and invocation by your AI coding agent. 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.
12
12
 
13
13
  ## Workflow
14
14
 
@@ -103,7 +103,7 @@ If verification passes, log:
103
103
  - end-session
104
104
  - arreio-init
105
105
 
106
- Skills are now available in VS Code Copilot Chat.
106
+ Skills are now available to your AI coding agent.
107
107
  ```
108
108
 
109
109
  If verification fails for any skill, report which skills failed and suggest manual verification.
@@ -137,7 +137,7 @@ After this phase completes:
137
137
  - `.agents/skills/end-session/`
138
138
  - `.agents/skills/arreio-init/`
139
139
  - ✓ Each skill directory contains `SKILL.md` and expected subdirectories
140
- - ✓ Skills are ready for discovery by VS Code Copilot Chat
140
+ - ✓ Skills are ready for discovery by your AI coding agent
141
141
 
142
142
  ## Error Handling
143
143