@ha-bits/cortex 1.0.6 → 1.1.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 +14 -0
- package/pack/279.index.cjs.js +22269 -0
- package/pack/715.index.cjs.js +14 -0
- package/pack/index.cjs +18979 -31813
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -20,6 +20,16 @@ cortex [command] [options]
|
|
|
20
20
|
npx @ha-bits/cortex [command] [options]
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
### Local Development
|
|
24
|
+
|
|
25
|
+
To run the Cortex server locally during development:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm nx dev @ha-bits/cortex --config ./packages/cortex/server/examples/business-intersect-standalone/config.json
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
This starts the server with the specified example workflow.
|
|
32
|
+
|
|
23
33
|
### Available Commands
|
|
24
34
|
|
|
25
35
|
- `server` - Start the Cortex server
|
|
@@ -54,6 +64,9 @@ Cortex uses `createRequire` from Node.js's `module` API instead of the standard
|
|
|
54
64
|
```typescript
|
|
55
65
|
// Instead of: require(dynamicPath) // ❌ Fails in bundled code
|
|
56
66
|
// We use:
|
|
67
|
+
customRequire(__filename, dynamicPath)
|
|
68
|
+
|
|
69
|
+
//OR
|
|
57
70
|
import { createRequire } from 'module';
|
|
58
71
|
const dynamicRequire = createRequire(__filename);
|
|
59
72
|
const loadedModule = dynamicRequire(dynamicPath); // ✅ Works in bundled code
|
|
@@ -66,3 +79,4 @@ Apache-2.0
|
|
|
66
79
|
## Repository
|
|
67
80
|
|
|
68
81
|
https://github.com/codenteam/habits
|
|
82
|
+
|