@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/cli/index.mjs +3 -4
- package/index.cjs +23 -23
- package/index.cjs.map +1 -1
- package/index.global.js +21 -21
- package/index.global.js.map +1 -1
- package/index.js +23 -23
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.mjs +4 -2
- package/skills/ax-llm.md +1 -1
package/package.json
CHANGED
package/scripts/postinstall.mjs
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
4
|
+
version: "16.0.13"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Ax Library (@ax-llm/ax) Usage Guide
|