lumenflow 2.19.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 +22 -0
- package/bin/lumenflow.mjs +40 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# lumenflow
|
|
2
|
+
|
|
3
|
+
Give your AI agent a workflow it can't break.
|
|
4
|
+
|
|
5
|
+
This is a convenience wrapper for [`@lumenflow/cli`](https://www.npmjs.com/package/@lumenflow/cli). It exists so `npx lumenflow init` works.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx lumenflow init
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or install as a dev dependency:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install -D @lumenflow/cli
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Documentation
|
|
20
|
+
|
|
21
|
+
- [lumenflow.dev](https://lumenflow.dev) — Full documentation
|
|
22
|
+
- [GitHub](https://github.com/hellmai/lumenflow) — Source code
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Thin wrapper that delegates to @lumenflow/cli's init command.
|
|
4
|
+
* This package exists so `npx lumenflow init` resolves correctly
|
|
5
|
+
* (npm requires the bare package name to match for npx resolution).
|
|
6
|
+
*
|
|
7
|
+
* WU-1690
|
|
8
|
+
*/
|
|
9
|
+
import { execFileSync } from 'node:child_process';
|
|
10
|
+
import { existsSync } from 'node:fs';
|
|
11
|
+
import { dirname, join } from 'node:path';
|
|
12
|
+
import { fileURLToPath } from 'node:url';
|
|
13
|
+
|
|
14
|
+
// Walk up from this file to find @lumenflow/cli in node_modules.
|
|
15
|
+
// This avoids Node's exports resolution which blocks subpath access.
|
|
16
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
17
|
+
let dir = __dirname;
|
|
18
|
+
let initPath;
|
|
19
|
+
|
|
20
|
+
while (dir !== dirname(dir)) {
|
|
21
|
+
const candidate = join(dir, 'node_modules', '@lumenflow', 'cli', 'dist', 'init.js');
|
|
22
|
+
if (existsSync(candidate)) {
|
|
23
|
+
initPath = candidate;
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
dir = dirname(dir);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (!initPath) {
|
|
30
|
+
console.error('[lumenflow] Could not find @lumenflow/cli. Run: npm install @lumenflow/cli');
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
execFileSync(process.execPath, [initPath, ...process.argv.slice(2)], {
|
|
36
|
+
stdio: 'inherit',
|
|
37
|
+
});
|
|
38
|
+
} catch (err) {
|
|
39
|
+
process.exit(err.status ?? 1);
|
|
40
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lumenflow",
|
|
3
|
+
"version": "2.19.0",
|
|
4
|
+
"description": "Give your AI agent a workflow it can't break. CLI wrapper for @lumenflow/cli.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"lumenflow",
|
|
7
|
+
"workflow",
|
|
8
|
+
"ai-agents",
|
|
9
|
+
"cli",
|
|
10
|
+
"developer-tools"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://lumenflow.dev",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/hellmai/lumenflow.git",
|
|
16
|
+
"directory": "packages/lumenflow"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "HellmAI",
|
|
21
|
+
"url": "https://hellm.ai"
|
|
22
|
+
},
|
|
23
|
+
"type": "module",
|
|
24
|
+
"bin": {
|
|
25
|
+
"lumenflow": "./bin/lumenflow.mjs"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@lumenflow/cli": "workspace:*"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@lumenflow/cli": "^2.19.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|