casualos 3.4.1 → 3.4.4
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/dist/cli.js +18 -12
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -98081,7 +98081,7 @@ var trace = TraceAPI.getInstance();
|
|
|
98081
98081
|
function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
98082
98082
|
const tracer = trace.getTracer(
|
|
98083
98083
|
"InstrumentedHashHelpers",
|
|
98084
|
-
false ? void 0 : "v3.4.
|
|
98084
|
+
false ? void 0 : "v3.4.4"
|
|
98085
98085
|
);
|
|
98086
98086
|
return tracer.startActiveSpan(
|
|
98087
98087
|
"hashLowEntropyPasswordWithSalt",
|
|
@@ -98099,7 +98099,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
|
98099
98099
|
function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
98100
98100
|
const tracer = trace.getTracer(
|
|
98101
98101
|
"InstrumentedHashHelpers",
|
|
98102
|
-
false ? void 0 : "v3.4.
|
|
98102
|
+
false ? void 0 : "v3.4.4"
|
|
98103
98103
|
);
|
|
98104
98104
|
return tracer.startActiveSpan(
|
|
98105
98105
|
"hashHighEntropyPasswordWithSalt",
|
|
@@ -98117,7 +98117,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
|
98117
98117
|
function verifyPasswordAgainstHashes2(password, salt, hashes) {
|
|
98118
98118
|
const tracer = trace.getTracer(
|
|
98119
98119
|
"InstrumentedHashHelpers",
|
|
98120
|
-
false ? void 0 : "v3.4.
|
|
98120
|
+
false ? void 0 : "v3.4.4"
|
|
98121
98121
|
);
|
|
98122
98122
|
return tracer.startActiveSpan(
|
|
98123
98123
|
"verifyPasswordAgainstHashes",
|
|
@@ -105069,7 +105069,7 @@ var import_semantic_conventions = __toESM(require_src3());
|
|
|
105069
105069
|
function traced(tracerName, options = {}, metricOptions = {}) {
|
|
105070
105070
|
const tracer = trace.getTracer(
|
|
105071
105071
|
tracerName,
|
|
105072
|
-
false ? void 0 : "v3.4.
|
|
105072
|
+
false ? void 0 : "v3.4.4"
|
|
105073
105073
|
);
|
|
105074
105074
|
return function(target, propertyKey, descriptor) {
|
|
105075
105075
|
const originalMethod = descriptor.value;
|
|
@@ -105147,7 +105147,7 @@ function getHistogram(meter) {
|
|
|
105147
105147
|
}
|
|
105148
105148
|
return metrics.getMeter(
|
|
105149
105149
|
meter.meter,
|
|
105150
|
-
false ? void 0 : "v3.4.
|
|
105150
|
+
false ? void 0 : "v3.4.4"
|
|
105151
105151
|
).createHistogram(meter.name, meter.options);
|
|
105152
105152
|
}
|
|
105153
105153
|
function getCounter(meter) {
|
|
@@ -105156,7 +105156,7 @@ function getCounter(meter) {
|
|
|
105156
105156
|
}
|
|
105157
105157
|
return metrics.getMeter(
|
|
105158
105158
|
meter.meter,
|
|
105159
|
-
false ? void 0 : "v3.4.
|
|
105159
|
+
false ? void 0 : "v3.4.4"
|
|
105160
105160
|
).createCounter(meter.name, meter.options);
|
|
105161
105161
|
}
|
|
105162
105162
|
function traceHttpResponse(options = {}) {
|
|
@@ -117263,7 +117263,7 @@ var RecordsServer = class {
|
|
|
117263
117263
|
this._notificationsController = notificationsController;
|
|
117264
117264
|
this._tracer = trace.getTracer(
|
|
117265
117265
|
"RecordsServer",
|
|
117266
|
-
false ? void 0 : "v3.4.
|
|
117266
|
+
false ? void 0 : "v3.4.4"
|
|
117267
117267
|
);
|
|
117268
117268
|
this._procedures = this._createProcedures();
|
|
117269
117269
|
this._setupRoutes();
|
|
@@ -119668,8 +119668,8 @@ var RecordsServer = class {
|
|
|
119668
119668
|
return {
|
|
119669
119669
|
success: true,
|
|
119670
119670
|
...metadata,
|
|
119671
|
-
version: true ? "v3.4.
|
|
119672
|
-
versionHash: true ? "
|
|
119671
|
+
version: true ? "v3.4.4" : void 0,
|
|
119672
|
+
versionHash: true ? "09b2b49dc7bbfeadb06899501f4c8c19c5948e0e" : void 0
|
|
119673
119673
|
};
|
|
119674
119674
|
})
|
|
119675
119675
|
};
|
|
@@ -130035,6 +130035,7 @@ var OpenAIChatInterface = class {
|
|
|
130035
130035
|
apiKey: options.apiKey,
|
|
130036
130036
|
baseURL: this._options.baseUrl ?? void 0
|
|
130037
130037
|
});
|
|
130038
|
+
this._additionalProperties = options.additionalProperties ?? {};
|
|
130038
130039
|
}
|
|
130039
130040
|
async chat(request2) {
|
|
130040
130041
|
try {
|
|
@@ -130050,6 +130051,7 @@ var OpenAIChatInterface = class {
|
|
|
130050
130051
|
const result = await axios_default.post(
|
|
130051
130052
|
`${this._baseUrl}chat/completions`,
|
|
130052
130053
|
{
|
|
130054
|
+
...this._additionalProperties,
|
|
130053
130055
|
model: request2.model,
|
|
130054
130056
|
messages: request2.messages.map((m2) => ({
|
|
130055
130057
|
role: m2.role,
|
|
@@ -130103,7 +130105,7 @@ var OpenAIChatInterface = class {
|
|
|
130103
130105
|
);
|
|
130104
130106
|
return {
|
|
130105
130107
|
choices,
|
|
130106
|
-
totalTokens: result.data.usage
|
|
130108
|
+
totalTokens: result.data.usage?.total_tokens ?? 0
|
|
130107
130109
|
};
|
|
130108
130110
|
} catch (err) {
|
|
130109
130111
|
if (axios_default.isAxiosError(err)) {
|
|
@@ -130136,6 +130138,7 @@ var OpenAIChatInterface = class {
|
|
|
130136
130138
|
}
|
|
130137
130139
|
}
|
|
130138
130140
|
const res = await this._client.chat.completions.create({
|
|
130141
|
+
...this._additionalProperties,
|
|
130139
130142
|
model: request2.model,
|
|
130140
130143
|
messages: request2.messages.map((m2) => ({
|
|
130141
130144
|
role: m2.role,
|
|
@@ -135673,7 +135676,10 @@ var aiSchema = z.object({
|
|
|
135673
135676
|
).nonempty(),
|
|
135674
135677
|
models: z.array(z.string().nonempty()).describe(
|
|
135675
135678
|
"The list of models that should be mapped to this provider"
|
|
135676
|
-
)
|
|
135679
|
+
),
|
|
135680
|
+
additionalProperties: z.object({}).passthrough().describe(
|
|
135681
|
+
"The additional properties that should be included in requests."
|
|
135682
|
+
).optional()
|
|
135677
135683
|
})
|
|
135678
135684
|
])
|
|
135679
135685
|
).describe(
|
|
@@ -148764,7 +148770,7 @@ var config = new Conf({
|
|
|
148764
148770
|
projectName: "casualos-cli"
|
|
148765
148771
|
});
|
|
148766
148772
|
var program2 = new Command();
|
|
148767
|
-
program2.name("casualos").description("A CLI for CasualOS").version("v3.4.
|
|
148773
|
+
program2.name("casualos").description("A CLI for CasualOS").version("v3.4.4").option(
|
|
148768
148774
|
"-e, --endpoint <url>",
|
|
148769
148775
|
"The endpoint to use for queries. Can be used to override the current endpoint."
|
|
148770
148776
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "casualos",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Command line interface for CasualOS.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@casual-simulation/aux-common": "^3.4.0",
|
|
39
|
-
"@casual-simulation/aux-records": "^3.4.
|
|
39
|
+
"@casual-simulation/aux-records": "^3.4.4",
|
|
40
40
|
"@octokit/app": "^15.1.0",
|
|
41
41
|
"@octokit/auth-oauth-device": "^7.1.1",
|
|
42
42
|
"@octokit/core": "^6.1.2",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"**/*.def",
|
|
64
64
|
"templates/**"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "09b2b49dc7bbfeadb06899501f4c8c19c5948e0e"
|
|
67
67
|
}
|