upregistry 1.0.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/bin/upai.js +32 -0
- package/dist/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/dist/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/dist/Spectre.Console.Cli.dll +0 -0
- package/dist/Spectre.Console.dll +0 -0
- package/dist/de/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/es/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/fr/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/it/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/ja/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/ko/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/pt/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/ru/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/sv/Spectre.Console.Cli.resources.dll +0 -0
- package/dist/upai.deps.json +125 -0
- package/dist/upai.dll +0 -0
- package/dist/upai.exe +0 -0
- package/dist/upai.pdb +0 -0
- package/dist/upai.runtimeconfig.json +13 -0
- package/dist/zh-Hans/Spectre.Console.Cli.resources.dll +0 -0
- package/package.json +28 -0
package/bin/upai.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
const { spawnSync } = require('node:child_process');
|
|
6
|
+
|
|
7
|
+
const args = process.argv.slice(2);
|
|
8
|
+
const dllPath = path.join(__dirname, '..', 'dist', 'upai.dll');
|
|
9
|
+
|
|
10
|
+
if (!fs.existsSync(dllPath)) {
|
|
11
|
+
console.error('upai npm package is missing dist artifacts.');
|
|
12
|
+
console.error('Run dotnet publish to populate src/UpAi.Cli.Npm/dist before packing.');
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const run = spawnSync('dotnet', [dllPath, ...args], {
|
|
17
|
+
stdio: 'inherit',
|
|
18
|
+
windowsHide: false,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
if (run.error) {
|
|
22
|
+
if (run.error.code === 'ENOENT') {
|
|
23
|
+
console.error('dotnet runtime not found in PATH.');
|
|
24
|
+
console.error('Install .NET 10 runtime or SDK, then retry.');
|
|
25
|
+
} else {
|
|
26
|
+
console.error(run.error.message);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
process.exit(run.status ?? 1);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeTarget": {
|
|
3
|
+
"name": ".NETCoreApp,Version=v10.0",
|
|
4
|
+
"signature": ""
|
|
5
|
+
},
|
|
6
|
+
"compilationOptions": {},
|
|
7
|
+
"targets": {
|
|
8
|
+
".NETCoreApp,Version=v10.0": {
|
|
9
|
+
"upai/1.0.0": {
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"Microsoft.Extensions.DependencyInjection": "10.0.0",
|
|
12
|
+
"Spectre.Console.Cli": "0.53.1"
|
|
13
|
+
},
|
|
14
|
+
"runtime": {
|
|
15
|
+
"upai.dll": {}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"Microsoft.Extensions.DependencyInjection/10.0.0": {
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.0"
|
|
21
|
+
},
|
|
22
|
+
"runtime": {
|
|
23
|
+
"lib/net10.0/Microsoft.Extensions.DependencyInjection.dll": {
|
|
24
|
+
"assemblyVersion": "10.0.0.0",
|
|
25
|
+
"fileVersion": "10.0.25.52411"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"Microsoft.Extensions.DependencyInjection.Abstractions/10.0.0": {
|
|
30
|
+
"runtime": {
|
|
31
|
+
"lib/net10.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
|
|
32
|
+
"assemblyVersion": "10.0.0.0",
|
|
33
|
+
"fileVersion": "10.0.25.52411"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"Spectre.Console/0.53.1": {
|
|
38
|
+
"runtime": {
|
|
39
|
+
"lib/net9.0/Spectre.Console.dll": {
|
|
40
|
+
"assemblyVersion": "0.0.0.0",
|
|
41
|
+
"fileVersion": "0.53.1.0"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"Spectre.Console.Cli/0.53.1": {
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"Spectre.Console": "0.53.1"
|
|
48
|
+
},
|
|
49
|
+
"runtime": {
|
|
50
|
+
"lib/net9.0/Spectre.Console.Cli.dll": {
|
|
51
|
+
"assemblyVersion": "0.0.0.0",
|
|
52
|
+
"fileVersion": "0.53.1.0"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"resources": {
|
|
56
|
+
"lib/net9.0/de/Spectre.Console.Cli.resources.dll": {
|
|
57
|
+
"locale": "de"
|
|
58
|
+
},
|
|
59
|
+
"lib/net9.0/es/Spectre.Console.Cli.resources.dll": {
|
|
60
|
+
"locale": "es"
|
|
61
|
+
},
|
|
62
|
+
"lib/net9.0/fr/Spectre.Console.Cli.resources.dll": {
|
|
63
|
+
"locale": "fr"
|
|
64
|
+
},
|
|
65
|
+
"lib/net9.0/it/Spectre.Console.Cli.resources.dll": {
|
|
66
|
+
"locale": "it"
|
|
67
|
+
},
|
|
68
|
+
"lib/net9.0/ja/Spectre.Console.Cli.resources.dll": {
|
|
69
|
+
"locale": "ja"
|
|
70
|
+
},
|
|
71
|
+
"lib/net9.0/ko/Spectre.Console.Cli.resources.dll": {
|
|
72
|
+
"locale": "ko"
|
|
73
|
+
},
|
|
74
|
+
"lib/net9.0/pt/Spectre.Console.Cli.resources.dll": {
|
|
75
|
+
"locale": "pt"
|
|
76
|
+
},
|
|
77
|
+
"lib/net9.0/ru/Spectre.Console.Cli.resources.dll": {
|
|
78
|
+
"locale": "ru"
|
|
79
|
+
},
|
|
80
|
+
"lib/net9.0/sv/Spectre.Console.Cli.resources.dll": {
|
|
81
|
+
"locale": "sv"
|
|
82
|
+
},
|
|
83
|
+
"lib/net9.0/zh-Hans/Spectre.Console.Cli.resources.dll": {
|
|
84
|
+
"locale": "zh-Hans"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"libraries": {
|
|
91
|
+
"upai/1.0.0": {
|
|
92
|
+
"type": "project",
|
|
93
|
+
"serviceable": false,
|
|
94
|
+
"sha512": ""
|
|
95
|
+
},
|
|
96
|
+
"Microsoft.Extensions.DependencyInjection/10.0.0": {
|
|
97
|
+
"type": "package",
|
|
98
|
+
"serviceable": true,
|
|
99
|
+
"sha512": "sha512-f0RBabswJq+gRu5a+hWIobrLWiUYPKMhCD9WO3sYBAdSy3FFH14LMvLVFZc2kPSCimBLxSuitUhsd6tb0TAY6A==",
|
|
100
|
+
"path": "microsoft.extensions.dependencyinjection/10.0.0",
|
|
101
|
+
"hashPath": "microsoft.extensions.dependencyinjection.10.0.0.nupkg.sha512"
|
|
102
|
+
},
|
|
103
|
+
"Microsoft.Extensions.DependencyInjection.Abstractions/10.0.0": {
|
|
104
|
+
"type": "package",
|
|
105
|
+
"serviceable": true,
|
|
106
|
+
"sha512": "sha512-L3AdmZ1WOK4XXT5YFPEwyt0ep6l8lGIPs7F5OOBZc77Zqeo01Of7XXICy47628sdVl0v/owxYJTe86DTgFwKCA==",
|
|
107
|
+
"path": "microsoft.extensions.dependencyinjection.abstractions/10.0.0",
|
|
108
|
+
"hashPath": "microsoft.extensions.dependencyinjection.abstractions.10.0.0.nupkg.sha512"
|
|
109
|
+
},
|
|
110
|
+
"Spectre.Console/0.53.1": {
|
|
111
|
+
"type": "package",
|
|
112
|
+
"serviceable": true,
|
|
113
|
+
"sha512": "sha512-wNLoytZpc7brgH3V9ZmrRyQqplOQUnNkEu1qSjRnEa0KOGvWAxgdEG6jmFTfyXKzO7p1pTLBHYH+AgxsWi69Cg==",
|
|
114
|
+
"path": "spectre.console/0.53.1",
|
|
115
|
+
"hashPath": "spectre.console.0.53.1.nupkg.sha512"
|
|
116
|
+
},
|
|
117
|
+
"Spectre.Console.Cli/0.53.1": {
|
|
118
|
+
"type": "package",
|
|
119
|
+
"serviceable": true,
|
|
120
|
+
"sha512": "sha512-y//7ZZ0shhvgXzoJXJzMaLGA4dPem8qCbkyv9khfE8NQDlH4hPVsHOHYoz6uzAwiTX9Yd7OnX3wNOX/wRfPUOg==",
|
|
121
|
+
"path": "spectre.console.cli/0.53.1",
|
|
122
|
+
"hashPath": "spectre.console.cli.0.53.1.nupkg.sha512"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
package/dist/upai.dll
ADDED
|
Binary file
|
package/dist/upai.exe
ADDED
|
Binary file
|
package/dist/upai.pdb
ADDED
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"runtimeOptions": {
|
|
3
|
+
"tfm": "net10.0",
|
|
4
|
+
"framework": {
|
|
5
|
+
"name": "Microsoft.NETCore.App",
|
|
6
|
+
"version": "10.0.0"
|
|
7
|
+
},
|
|
8
|
+
"configProperties": {
|
|
9
|
+
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
10
|
+
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "upregistry",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Up AI CLI npm wrapper",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build:dist": "dotnet publish ../UpAi.Cli/UpAi.Cli.csproj -c Release -o ./dist",
|
|
8
|
+
"pack:local": "npm run build:dist && npm pack",
|
|
9
|
+
"publish:dry": "npm run build:dist && npm publish --access public --dry-run",
|
|
10
|
+
"publish:npm": "npm run build:dist && npm publish --access public",
|
|
11
|
+
"version:patch": "npm version patch",
|
|
12
|
+
"version:minor": "npm version minor",
|
|
13
|
+
"version:major": "npm version major",
|
|
14
|
+
"release:patch": "npm run version:patch && npm run publish:npm",
|
|
15
|
+
"release:minor": "npm run version:minor && npm run publish:npm",
|
|
16
|
+
"release:major": "npm run version:major && npm run publish:npm"
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"upregistry": "bin/upai.js"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"bin",
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
}
|
|
28
|
+
}
|