@supernovae-st/nika 0.66.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 +47 -0
- package/bin.js +49 -0
- package/package.json +40 -0
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @supernovae-st/nika
|
|
2
|
+
|
|
3
|
+
Thin npm wrapper for the [Nika CLI](https://github.com/supernovae-st/nika) -- a semantic YAML workflow engine for AI tasks.
|
|
4
|
+
|
|
5
|
+
This package downloads the pre-built Nika binary for your platform during `npm install`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Global install
|
|
11
|
+
npm install -g @supernovae-st/nika
|
|
12
|
+
|
|
13
|
+
# Or run directly
|
|
14
|
+
npx @supernovae-st/nika
|
|
15
|
+
|
|
16
|
+
# Or as a project dependency
|
|
17
|
+
npm install @supernovae-st/nika
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
nika run workflow.nika.yaml # Execute a workflow
|
|
24
|
+
nika check workflow.nika.yaml # Validate syntax + DAG
|
|
25
|
+
nika ui # Terminal UI
|
|
26
|
+
nika provider list # Check API key status
|
|
27
|
+
nika init # Interactive project setup
|
|
28
|
+
nika course next # Start the learning course
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Supported Platforms
|
|
32
|
+
|
|
33
|
+
| OS | Architecture |
|
|
34
|
+
|---------|-------------|
|
|
35
|
+
| macOS | arm64 (Apple Silicon) |
|
|
36
|
+
| macOS | x64 (Intel) |
|
|
37
|
+
| Linux | x64 |
|
|
38
|
+
| Linux | arm64 |
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
AGPL-3.0-or-later
|
|
43
|
+
|
|
44
|
+
## Links
|
|
45
|
+
|
|
46
|
+
- [GitHub Repository](https://github.com/supernovae-st/nika)
|
|
47
|
+
- [SuperNovae Studio](https://supernovae.studio)
|
package/bin.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { execFileSync } = require('child_process');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
|
|
7
|
+
const PLATFORM_PACKAGES = {
|
|
8
|
+
'darwin-arm64': '@supernovae-st/nika-darwin-arm64',
|
|
9
|
+
'darwin-x64': '@supernovae-st/nika-darwin-x64',
|
|
10
|
+
'linux-x64': '@supernovae-st/nika-linux-x64',
|
|
11
|
+
'linux-arm64': '@supernovae-st/nika-linux-arm64',
|
|
12
|
+
'win32-x64': '@supernovae-st/nika-win32-x64',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function getBinaryPath() {
|
|
16
|
+
const key = `${process.platform}-${process.arch}`;
|
|
17
|
+
const pkg = PLATFORM_PACKAGES[key];
|
|
18
|
+
|
|
19
|
+
if (!pkg) {
|
|
20
|
+
console.error(
|
|
21
|
+
`Unsupported platform: ${key}\n` +
|
|
22
|
+
`Supported: ${Object.keys(PLATFORM_PACKAGES).join(', ')}\n` +
|
|
23
|
+
'Install manually: https://github.com/supernovae-st/nika/releases'
|
|
24
|
+
);
|
|
25
|
+
process.exit(1);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const binaryName = process.platform === 'win32' ? 'nika.exe' : 'nika';
|
|
29
|
+
|
|
30
|
+
try {
|
|
31
|
+
// Resolve the platform package and find the binary inside it
|
|
32
|
+
const pkgDir = path.dirname(require.resolve(`${pkg}/package.json`));
|
|
33
|
+
return path.join(pkgDir, binaryName);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error(
|
|
36
|
+
`Platform package ${pkg} not found.\n` +
|
|
37
|
+
'This usually means your package manager did not install the optional dependency.\n' +
|
|
38
|
+
'Try: npm install @supernovae-st/nika --force\n' +
|
|
39
|
+
'Or install directly: https://github.com/supernovae-st/nika/releases'
|
|
40
|
+
);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
try {
|
|
46
|
+
execFileSync(getBinaryPath(), process.argv.slice(2), { stdio: 'inherit' });
|
|
47
|
+
} catch (e) {
|
|
48
|
+
process.exit(e.status || 1);
|
|
49
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@supernovae-st/nika",
|
|
3
|
+
"version": "0.66.0",
|
|
4
|
+
"description": "Semantic YAML workflow engine for AI tasks",
|
|
5
|
+
"license": "AGPL-3.0-or-later",
|
|
6
|
+
"bin": {
|
|
7
|
+
"nika": "bin.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/supernovae-st/nika.git"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://supernovae.studio",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/supernovae-st/nika/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"ai",
|
|
19
|
+
"workflows",
|
|
20
|
+
"dag",
|
|
21
|
+
"mcp",
|
|
22
|
+
"llm",
|
|
23
|
+
"yaml",
|
|
24
|
+
"cli"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"bin.js",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=16"
|
|
32
|
+
},
|
|
33
|
+
"optionalDependencies": {
|
|
34
|
+
"@supernovae-st/nika-darwin-arm64": "0.66.0",
|
|
35
|
+
"@supernovae-st/nika-darwin-x64": "0.66.0",
|
|
36
|
+
"@supernovae-st/nika-linux-x64": "0.66.0",
|
|
37
|
+
"@supernovae-st/nika-linux-arm64": "0.66.0",
|
|
38
|
+
"@supernovae-st/nika-win32-x64": "0.66.0"
|
|
39
|
+
}
|
|
40
|
+
}
|