@supernovae-st/nika 0.71.0 → 0.118.7

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,40 +1,92 @@
1
1
  {
2
2
  "name": "@supernovae-st/nika",
3
- "version": "0.71.0",
4
- "description": "Semantic YAML workflow engine for AI tasks",
5
- "license": "AGPL-3.0-or-later",
6
- "bin": {
7
- "nika": "bin.js"
8
- },
3
+ "version": "0.118.7",
4
+ "description": "One TypeScript SDK for local and remote Nika execution",
9
5
  "repository": {
10
6
  "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"
7
+ "url": "https://github.com/supernovae-st/nika-client.git"
16
8
  },
9
+ "homepage": "https://github.com/supernovae-st/nika-client#readme",
10
+ "author": "SuperNovae Studio <nika@supernovae.studio>",
17
11
  "keywords": [
12
+ "nika",
13
+ "workflow",
18
14
  "ai",
19
- "workflows",
20
- "dag",
21
- "mcp",
22
15
  "llm",
23
- "yaml",
16
+ "sdk",
17
+ "typescript",
18
+ "sse",
19
+ "openapi",
20
+ "local",
24
21
  "cli"
25
22
  ],
23
+ "type": "module",
24
+ "exports": {
25
+ ".": {
26
+ "import": {
27
+ "types": "./dist/index.d.ts",
28
+ "default": "./dist/index.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/index.d.cts",
32
+ "default": "./dist/index.cjs"
33
+ }
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "main": "./dist/index.cjs",
38
+ "module": "./dist/index.js",
39
+ "types": "./dist/index.d.ts",
40
+ "bin": {
41
+ "nika": "./dist/bin/nika.js"
42
+ },
26
43
  "files": [
27
- "bin.js",
28
- "README.md"
44
+ "dist",
45
+ "docs",
46
+ "openapi.json",
47
+ "LICENSE"
29
48
  ],
30
- "engines": {
31
- "node": ">=16"
49
+ "scripts": {
50
+ "build": "tsup",
51
+ "test": "vitest run --maxWorkers=4",
52
+ "test:watch": "vitest",
53
+ "check:package-surface": "node scripts/verify-packed-module-surfaces.mjs",
54
+ "check:coverage": "node scripts/check-sdk-coverage.js",
55
+ "check:release-evidence": "node scripts/verify-release-evidence.mjs",
56
+ "check:release-replay": "node scripts/verify-release-replay.mjs",
57
+ "gauntlet:generate": "node scripts/generate-gauntlet-corpus.mjs",
58
+ "gauntlet:check": "node scripts/verify-gauntlet-corpus.mjs",
59
+ "gauntlet:run": "node scripts/execute-gauntlet-corpus.mjs",
60
+ "gauntlet:projects": "node scripts/run-mini-saas-gauntlet.mjs",
61
+ "gauntlet:depth": "node scripts/run-depth-projects.mjs",
62
+ "gauntlet:recovery": "node scripts/run-recovery-e2e.mjs",
63
+ "gauntlet:one-door": "node scripts/run-one-door-e2e.mjs",
64
+ "gauntlet:hostile": "node scripts/run-hostile-gauntlet.mjs",
65
+ "generate:types": "node scripts/generate-types.js",
66
+ "sync:native-versions": "node scripts/sync-native-versions.mjs",
67
+ "prepack": "npm run build",
68
+ "prepublishOnly": "npm run build"
32
69
  },
33
70
  "optionalDependencies": {
34
- "@supernovae-st/nika-darwin-arm64": "0.71.0",
35
- "@supernovae-st/nika-darwin-x64": "0.71.0",
36
- "@supernovae-st/nika-linux-x64": "0.71.0",
37
- "@supernovae-st/nika-linux-arm64": "0.71.0",
38
- "@supernovae-st/nika-win32-x64": "0.71.0"
71
+ "@supernovae-st/nika-darwin-arm64": "0.118.7",
72
+ "@supernovae-st/nika-darwin-x64": "0.118.7",
73
+ "@supernovae-st/nika-linux-arm64": "0.118.7",
74
+ "@supernovae-st/nika-linux-x64": "0.118.7"
75
+ },
76
+ "devDependencies": {
77
+ "@types/node": "^26.4.1",
78
+ "openapi-typescript": "^7.13.0",
79
+ "tsup": "^8.0",
80
+ "typescript": "^5.5",
81
+ "vitest": "^4.1.11"
82
+ },
83
+ "engines": {
84
+ "node": ">=22"
85
+ },
86
+ "license": "Apache-2.0",
87
+ "mcpName": "io.github.supernovae-st/nika",
88
+ "nikaRelease": {
89
+ "preparedCommit": "42cd6a58f3c6564c7815da0f7f07ac461edc408b",
90
+ "version": "0.118.7"
39
91
  }
40
92
  }
package/bin.js DELETED
@@ -1,49 +0,0 @@
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
- }