@david_was/nenna 0.1.1

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/nenna.js ADDED
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+ const { spawnSync } = require('child_process');
7
+
8
+ const dllPath = path.join(__dirname, '..', 'publish', 'nenna.dll');
9
+
10
+ if (!fs.existsSync(dllPath)) {
11
+ console.error(
12
+ '✗ nenna: bundled .NET build not found at\n' +
13
+ ` ${dllPath}\n` +
14
+ 'This usually means the npm package was packed without running the build\n' +
15
+ 'step first (see npm/scripts/publish-dotnet.js / "npm run build").'
16
+ );
17
+ process.exit(1);
18
+ }
19
+
20
+ const args = process.argv.slice(2);
21
+ const result = spawnSync('dotnet', [dllPath, ...args], { stdio: 'inherit' });
22
+
23
+ if (result.error) {
24
+ if (result.error.code === 'ENOENT') {
25
+ console.error(
26
+ '✗ nenna requires the .NET runtime, but `dotnet` was not found on your PATH.\n' +
27
+ ' Install the .NET 10 runtime (the full SDK also works) from:\n' +
28
+ ' https://dotnet.microsoft.com/download/dotnet/10.0\n' +
29
+ ' Then re-run this command.'
30
+ );
31
+ } else {
32
+ console.error(`✗ nenna: failed to launch dotnet: ${result.error.message}`);
33
+ }
34
+ process.exit(1);
35
+ }
36
+
37
+ process.exit(result.status === null ? 1 : result.status);
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@david_was/nenna",
3
+ "version": "0.1.1",
4
+ "description": "Agentic coding CLI for nenna.ai (Open WebUI) instances.",
5
+ "bin": {
6
+ "nenna": "./cli/nenna.js"
7
+ },
8
+ "files": [
9
+ "cli",
10
+ "publish"
11
+ ],
12
+ "engines": {
13
+ "node": ">=18"
14
+ },
15
+ "preferGlobal": true,
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "scripts": {
20
+ "build": "node ./scripts/publish-dotnet.js",
21
+ "prepack": "npm run build"
22
+ },
23
+ "license": "UNLICENSED"
24
+ }
Binary file
Binary file
package/publish/nenna ADDED
Binary file
@@ -0,0 +1,59 @@
1
+ {
2
+ "runtimeTarget": {
3
+ "name": ".NETCoreApp,Version=v10.0",
4
+ "signature": ""
5
+ },
6
+ "compilationOptions": {},
7
+ "targets": {
8
+ ".NETCoreApp,Version=v10.0": {
9
+ "nenna/0.1.1": {
10
+ "dependencies": {
11
+ "Spectre.Console": "0.57.2"
12
+ },
13
+ "runtime": {
14
+ "nenna.dll": {}
15
+ }
16
+ },
17
+ "Spectre.Console/0.57.2": {
18
+ "dependencies": {
19
+ "Spectre.Console.Ansi": "0.57.2"
20
+ },
21
+ "runtime": {
22
+ "lib/net10.0/Spectre.Console.dll": {
23
+ "assemblyVersion": "0.0.0.0",
24
+ "fileVersion": "0.57.2.0"
25
+ }
26
+ }
27
+ },
28
+ "Spectre.Console.Ansi/0.57.2": {
29
+ "runtime": {
30
+ "lib/net10.0/Spectre.Console.Ansi.dll": {
31
+ "assemblyVersion": "0.0.0.0",
32
+ "fileVersion": "0.57.2.0"
33
+ }
34
+ }
35
+ }
36
+ }
37
+ },
38
+ "libraries": {
39
+ "nenna/0.1.1": {
40
+ "type": "project",
41
+ "serviceable": false,
42
+ "sha512": ""
43
+ },
44
+ "Spectre.Console/0.57.2": {
45
+ "type": "package",
46
+ "serviceable": true,
47
+ "sha512": "sha512-wzsB+P9i6F9G+cFOJxRotCiQWNSzZVAMxi8YMiHlGXXU1JLMXGp7zSSqBMmROZS2bzpK5jk+Saa7Evp8HwqhKg==",
48
+ "path": "spectre.console/0.57.2",
49
+ "hashPath": "spectre.console.0.57.2.nupkg.sha512"
50
+ },
51
+ "Spectre.Console.Ansi/0.57.2": {
52
+ "type": "package",
53
+ "serviceable": true,
54
+ "sha512": "sha512-Y1+u73shwP+JYHmrkdN6bSt2kaGBEAafhi2nrecczbXdFRey+k7J/WF9YPfcB0rqivv2S8fmif6FSBq9m/AFvw==",
55
+ "path": "spectre.console.ansi/0.57.2",
56
+ "hashPath": "spectre.console.ansi.0.57.2.nupkg.sha512"
57
+ }
58
+ }
59
+ }
Binary file
Binary file
@@ -0,0 +1,15 @@
1
+ {
2
+ "runtimeOptions": {
3
+ "tfm": "net10.0",
4
+ "framework": {
5
+ "name": "Microsoft.NETCore.App",
6
+ "version": "10.0.0"
7
+ },
8
+ "configProperties": {
9
+ "System.Globalization.Invariant": true,
10
+ "System.Globalization.PredefinedCulturesOnly": true,
11
+ "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
12
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
13
+ }
14
+ }
15
+ }