@ax-llm/ax 16.0.12 → 16.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ax-llm/ax",
3
- "version": "16.0.12",
3
+ "version": "16.0.13",
4
4
  "type": "module",
5
5
  "description": "The best library to work with LLMs",
6
6
  "repository": {
@@ -17,7 +17,6 @@
17
17
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
18
18
  import { dirname, join } from 'node:path';
19
19
  import { fileURLToPath } from 'node:url';
20
- import { homedir } from 'node:os';
21
20
 
22
21
  const __filename = fileURLToPath(import.meta.url);
23
22
  const __dirname = dirname(__filename);
@@ -142,7 +141,10 @@ function install() {
142
141
  try {
143
142
  // Paths
144
143
  const skillSource = join(__dirname, '..', 'skills', 'ax-llm.md');
145
- const skillTargetDir = join(homedir(), '.claude', 'skills', 'ax');
144
+ // When installed via npm, script runs from: node_modules/@ax-llm/ax/scripts/postinstall.mjs
145
+ // Project root is 4 directories up: ../../../../
146
+ const projectRoot = join(__dirname, '..', '..', '..', '..');
147
+ const skillTargetDir = join(projectRoot, '.claude', 'skills', 'ax');
146
148
  const skillTarget = join(skillTargetDir, 'ax-llm.md');
147
149
 
148
150
  // Check if source exists
package/skills/ax-llm.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ax-llm
3
3
  description: This skill helps with using the @ax-llm/ax TypeScript library for building LLM applications. Use when the user asks about ax(), ai(), f(), s(), agent(), flow(), AxGen, AxAgent, AxFlow, signatures, streaming, or mentions @ax-llm/ax.
4
- version: "16.0.12"
4
+ version: "16.0.13"
5
5
  ---
6
6
 
7
7
  # Ax Library (@ax-llm/ax) Usage Guide