casualos 3.10.1 → 3.10.2-alpha.20753519096
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 +89 -14
- package/minify.js +12 -2
- package/minify.js.map +1 -1
- package/package.json +67 -68
package/dist/cli.js
CHANGED
|
@@ -146480,7 +146480,7 @@ function getProcedureMetadata(procedures) {
|
|
|
146480
146480
|
function getSchemaMetadata(schema) {
|
|
146481
146481
|
if (schema instanceof $ZodPipe) {
|
|
146482
146482
|
return getSchemaMetadata(schema._zod.def.out);
|
|
146483
|
-
} else if (schema instanceof $ZodString) {
|
|
146483
|
+
} else if (schema instanceof $ZodString || schema instanceof $ZodBigInt) {
|
|
146484
146484
|
return { type: "string", description: getDescription(schema) };
|
|
146485
146485
|
} else if (schema instanceof $ZodBoolean) {
|
|
146486
146486
|
return { type: "boolean", description: getDescription(schema) };
|
|
@@ -147981,7 +147981,7 @@ var trace = TraceAPI.getInstance();
|
|
|
147981
147981
|
function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
147982
147982
|
const tracer = trace.getTracer(
|
|
147983
147983
|
"InstrumentedHashHelpers",
|
|
147984
|
-
false ? void 0 : "v3.10.
|
|
147984
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
147985
147985
|
);
|
|
147986
147986
|
return tracer.startActiveSpan(
|
|
147987
147987
|
"hashLowEntropyPasswordWithSalt",
|
|
@@ -147999,7 +147999,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
|
|
|
147999
147999
|
function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
148000
148000
|
const tracer = trace.getTracer(
|
|
148001
148001
|
"InstrumentedHashHelpers",
|
|
148002
|
-
false ? void 0 : "v3.10.
|
|
148002
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
148003
148003
|
);
|
|
148004
148004
|
return tracer.startActiveSpan(
|
|
148005
148005
|
"hashHighEntropyPasswordWithSalt",
|
|
@@ -148017,7 +148017,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
|
|
|
148017
148017
|
function verifyPasswordAgainstHashes2(password, salt, hashes) {
|
|
148018
148018
|
const tracer = trace.getTracer(
|
|
148019
148019
|
"InstrumentedHashHelpers",
|
|
148020
|
-
false ? void 0 : "v3.10.
|
|
148020
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
148021
148021
|
);
|
|
148022
148022
|
return tracer.startActiveSpan(
|
|
148023
148023
|
"verifyPasswordAgainstHashes",
|
|
@@ -155547,7 +155547,7 @@ var import_semantic_conventions = __toESM(require_src3());
|
|
|
155547
155547
|
function traced(tracerName, options = {}, metricOptions = {}) {
|
|
155548
155548
|
const tracer = trace.getTracer(
|
|
155549
155549
|
tracerName,
|
|
155550
|
-
false ? void 0 : "v3.10.
|
|
155550
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
155551
155551
|
);
|
|
155552
155552
|
return function(target, propertyKey, descriptor) {
|
|
155553
155553
|
const originalMethod = descriptor.value;
|
|
@@ -155629,7 +155629,7 @@ function getHistogram(meter) {
|
|
|
155629
155629
|
}
|
|
155630
155630
|
return metrics.getMeter(
|
|
155631
155631
|
meter.meter,
|
|
155632
|
-
false ? void 0 : "v3.10.
|
|
155632
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
155633
155633
|
).createHistogram(meter.name, meter.options);
|
|
155634
155634
|
}
|
|
155635
155635
|
function getCounter(meter) {
|
|
@@ -155638,7 +155638,7 @@ function getCounter(meter) {
|
|
|
155638
155638
|
}
|
|
155639
155639
|
return metrics.getMeter(
|
|
155640
155640
|
meter.meter,
|
|
155641
|
-
false ? void 0 : "v3.10.
|
|
155641
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
155642
155642
|
).createCounter(meter.name, meter.options);
|
|
155643
155643
|
}
|
|
155644
155644
|
function traceHttpResponse(options = {}) {
|
|
@@ -167398,7 +167398,7 @@ var RecordsServer = class {
|
|
|
167398
167398
|
this._viewTemplateRenderer = viewTemplateRenderer;
|
|
167399
167399
|
this._tracer = trace.getTracer(
|
|
167400
167400
|
"RecordsServer",
|
|
167401
|
-
false ? void 0 : "v3.10.
|
|
167401
|
+
false ? void 0 : "v3.10.2-alpha.20753519096"
|
|
167402
167402
|
);
|
|
167403
167403
|
this._purchasableItems = purchasableItemsController;
|
|
167404
167404
|
this._procedures = this._createProcedures();
|
|
@@ -171278,8 +171278,8 @@ var RecordsServer = class {
|
|
|
171278
171278
|
return {
|
|
171279
171279
|
success: true,
|
|
171280
171280
|
...metadata,
|
|
171281
|
-
version: true ? "v3.10.
|
|
171282
|
-
versionHash: true ? "
|
|
171281
|
+
version: true ? "v3.10.2-alpha.20753519096" : void 0,
|
|
171282
|
+
versionHash: true ? "88f6f63b832921060bd596c899cef3ec99a11b83" : void 0
|
|
171283
171283
|
};
|
|
171284
171284
|
}),
|
|
171285
171285
|
getPurchasableItem: procedure().origins(true).http("GET", "/api/v2/records/purchasableItems").inputs(
|
|
@@ -213942,13 +213942,26 @@ var Transpiler = class {
|
|
|
213942
213942
|
* Transpiles the given code into ES6 JavaScript Code.
|
|
213943
213943
|
*/
|
|
213944
213944
|
_transpile(code) {
|
|
213945
|
+
const directives = parseDirectives(code);
|
|
213946
|
+
if (directives.noParse) {
|
|
213947
|
+
return {
|
|
213948
|
+
code,
|
|
213949
|
+
original: code,
|
|
213950
|
+
metadata: {
|
|
213951
|
+
doc: null,
|
|
213952
|
+
text: null,
|
|
213953
|
+
isAsync: directives.isAsync,
|
|
213954
|
+
isModule: directives.isModule
|
|
213955
|
+
}
|
|
213956
|
+
};
|
|
213957
|
+
}
|
|
213945
213958
|
const cached2 = this._cache.get(code);
|
|
213946
213959
|
if (cached2) {
|
|
213947
213960
|
return cached2;
|
|
213948
213961
|
}
|
|
213949
213962
|
const macroed = replaceMacros(code);
|
|
213950
213963
|
const node = this._parse(macroed);
|
|
213951
|
-
const isAsync = this._isAsyncNode(node);
|
|
213964
|
+
const isAsync = directives.isAsync || this._isAsyncNode(node);
|
|
213952
213965
|
const doc = new Doc2();
|
|
213953
213966
|
doc.clientID = 0;
|
|
213954
213967
|
const text = doc.getText();
|
|
@@ -213957,7 +213970,7 @@ var Transpiler = class {
|
|
|
213957
213970
|
doc,
|
|
213958
213971
|
text,
|
|
213959
213972
|
isAsync,
|
|
213960
|
-
isModule:
|
|
213973
|
+
isModule: directives.isModule
|
|
213961
213974
|
};
|
|
213962
213975
|
this._replace(node, doc, text, metadata);
|
|
213963
213976
|
const finalCode = text.toString();
|
|
@@ -215339,6 +215352,58 @@ await ${this._exportFactory}({ `;
|
|
|
215339
215352
|
}
|
|
215340
215353
|
};
|
|
215341
215354
|
var ENERGY_CHECK_CALL = "__energyCheck()";
|
|
215355
|
+
function parseDirectives(code) {
|
|
215356
|
+
const directives = {
|
|
215357
|
+
noParse: false,
|
|
215358
|
+
isAsync: false,
|
|
215359
|
+
isModule: false
|
|
215360
|
+
};
|
|
215361
|
+
if (code.charAt(0) !== '"') {
|
|
215362
|
+
return directives;
|
|
215363
|
+
}
|
|
215364
|
+
let endQuoteIndex = -1;
|
|
215365
|
+
for (let c5 = 1; c5 < 100; c5++) {
|
|
215366
|
+
if (code.charAt(c5) === '"') {
|
|
215367
|
+
endQuoteIndex = c5;
|
|
215368
|
+
break;
|
|
215369
|
+
}
|
|
215370
|
+
}
|
|
215371
|
+
if (endQuoteIndex < 0) {
|
|
215372
|
+
return directives;
|
|
215373
|
+
}
|
|
215374
|
+
directives.startIndex = 0;
|
|
215375
|
+
directives.endIndex = endQuoteIndex + 2;
|
|
215376
|
+
const directiveString = code.substring(1, endQuoteIndex);
|
|
215377
|
+
const directiveParts = directiveString.split(" ");
|
|
215378
|
+
for (let part of directiveParts) {
|
|
215379
|
+
if (part === "-parse") {
|
|
215380
|
+
directives.noParse = true;
|
|
215381
|
+
} else if (part === "async") {
|
|
215382
|
+
directives.isAsync = true;
|
|
215383
|
+
} else if (part === "module") {
|
|
215384
|
+
directives.isModule = true;
|
|
215385
|
+
}
|
|
215386
|
+
}
|
|
215387
|
+
return directives;
|
|
215388
|
+
}
|
|
215389
|
+
function addDirectives(code, directives) {
|
|
215390
|
+
const existingDirectives = parseDirectives(code);
|
|
215391
|
+
if (hasValue(existingDirectives.startIndex) && hasValue(existingDirectives.endIndex)) {
|
|
215392
|
+
code = code.substring(existingDirectives.endIndex);
|
|
215393
|
+
}
|
|
215394
|
+
let directiveString = '"';
|
|
215395
|
+
if (directives.noParse) {
|
|
215396
|
+
directiveString += "-parse ";
|
|
215397
|
+
}
|
|
215398
|
+
if (directives.isAsync) {
|
|
215399
|
+
directiveString += "async ";
|
|
215400
|
+
}
|
|
215401
|
+
if (directives.isModule) {
|
|
215402
|
+
directiveString += "module ";
|
|
215403
|
+
}
|
|
215404
|
+
directiveString = directiveString.trim() + '";';
|
|
215405
|
+
return directiveString + code;
|
|
215406
|
+
}
|
|
215342
215407
|
|
|
215343
215408
|
// ../aux-runtime/runtime/AuxCompiler.js
|
|
215344
215409
|
var import_error_stack_parser = __toESM(require_error_stack_parser());
|
|
@@ -222723,9 +222788,16 @@ async function transformAux(aux, transformOptions) {
|
|
|
222723
222788
|
const transformTag = (loader, value2, prefix) => {
|
|
222724
222789
|
try {
|
|
222725
222790
|
let transpiled = false;
|
|
222791
|
+
let directives;
|
|
222726
222792
|
if (loader === "js" || loader === "ts" || loader === "tsx" || loader === "jsx") {
|
|
222727
222793
|
transpiled = true;
|
|
222728
|
-
|
|
222794
|
+
const result = transpiler.transpileWithMetadata(value2);
|
|
222795
|
+
value2 = result.code;
|
|
222796
|
+
directives = {
|
|
222797
|
+
noParse: true,
|
|
222798
|
+
isAsync: result.metadata.isAsync,
|
|
222799
|
+
isModule: result.metadata.isModule
|
|
222800
|
+
};
|
|
222729
222801
|
value2 = `async function __aux_tag_wrapper__(){
|
|
222730
222802
|
${value2}
|
|
222731
222803
|
}`;
|
|
@@ -222741,6 +222813,9 @@ ${value2}
|
|
|
222741
222813
|
result.code.length - 2
|
|
222742
222814
|
);
|
|
222743
222815
|
}
|
|
222816
|
+
if (directives) {
|
|
222817
|
+
code = addDirectives(code, directives);
|
|
222818
|
+
}
|
|
222744
222819
|
bot.tags[tag] = prefix ? `${prefix}${code}` : code;
|
|
222745
222820
|
}).catch((err) => {
|
|
222746
222821
|
const system = bot.tags["system"];
|
|
@@ -222820,7 +222895,7 @@ var config2 = new Conf({
|
|
|
222820
222895
|
projectName: "casualos-cli"
|
|
222821
222896
|
});
|
|
222822
222897
|
var program2 = new Command();
|
|
222823
|
-
program2.name("casualos").description("A CLI for CasualOS").version("v3.10.
|
|
222898
|
+
program2.name("casualos").description("A CLI for CasualOS").version("v3.10.2-alpha.20753519096").option(
|
|
222824
222899
|
"-e, --endpoint <url>",
|
|
222825
222900
|
"The endpoint to use for queries. Can be used to override the current endpoint."
|
|
222826
222901
|
);
|
package/minify.js
CHANGED
|
@@ -19,7 +19,7 @@ import { constructInitializationUpdate, DNA_TAG_PREFIX, getBotsStateFromStoredAu
|
|
|
19
19
|
import { JSX_FACTORY, JSX_FRAGMENT_FACTORY, IMPORT_FACTORY, IMPORT_META_FACTORY, EXPORT_FACTORY, } from '@casual-simulation/aux-runtime/runtime/AuxCompiler';
|
|
20
20
|
import * as esbuild from 'esbuild';
|
|
21
21
|
import { cloneDeep } from 'es-toolkit';
|
|
22
|
-
import { Transpiler } from '@casual-simulation/aux-runtime';
|
|
22
|
+
import { addDirectives, Transpiler } from '@casual-simulation/aux-runtime';
|
|
23
23
|
/**
|
|
24
24
|
* Minifies the given aux object.
|
|
25
25
|
* @param aux The aux object to minify.
|
|
@@ -65,12 +65,19 @@ export async function transformAux(aux, transformOptions) {
|
|
|
65
65
|
const transformTag = (loader, value, prefix) => {
|
|
66
66
|
try {
|
|
67
67
|
let transpiled = false;
|
|
68
|
+
let directives;
|
|
68
69
|
if (loader === 'js' ||
|
|
69
70
|
loader === 'ts' ||
|
|
70
71
|
loader === 'tsx' ||
|
|
71
72
|
loader === 'jsx') {
|
|
72
73
|
transpiled = true;
|
|
73
|
-
|
|
74
|
+
const result = transpiler.transpileWithMetadata(value);
|
|
75
|
+
value = result.code;
|
|
76
|
+
directives = {
|
|
77
|
+
noParse: true,
|
|
78
|
+
isAsync: result.metadata.isAsync,
|
|
79
|
+
isModule: result.metadata.isModule,
|
|
80
|
+
};
|
|
74
81
|
value = `async function __aux_tag_wrapper__(){\n${value}\n}`;
|
|
75
82
|
}
|
|
76
83
|
return esbuild
|
|
@@ -84,6 +91,9 @@ export async function transformAux(aux, transformOptions) {
|
|
|
84
91
|
code = result.code.slice('async function __aux_tag_wrapper__(){'
|
|
85
92
|
.length, result.code.length - 2);
|
|
86
93
|
}
|
|
94
|
+
if (directives) {
|
|
95
|
+
code = addDirectives(code, directives);
|
|
96
|
+
}
|
|
87
97
|
bot.tags[tag] = prefix ? `${prefix}${code}` : code;
|
|
88
98
|
})
|
|
89
99
|
.catch((err) => {
|
package/minify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minify.js","sourceRoot":"","sources":["minify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACH,6BAA6B,EAC7B,cAAc,EACd,yBAAyB,EACzB,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,cAAc,GACjB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"minify.js","sourceRoot":"","sources":["minify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACH,6BAA6B,EAC7B,cAAc,EACd,yBAAyB,EACzB,SAAS,EACT,QAAQ,EACR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
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
2
|
+
"name": "casualos",
|
|
3
|
+
"version": "3.10.2-alpha.20753519096",
|
|
4
|
+
"description": "Command line interface for CasualOS.",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"casualos": "./dist/cli.js"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/casual-simulation/casualos.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"aux",
|
|
17
|
+
"so4",
|
|
18
|
+
"realtime",
|
|
19
|
+
"crdt"
|
|
20
|
+
],
|
|
21
|
+
"author": "Casual Simulation, Inc.",
|
|
22
|
+
"license": "AGPL-3.0-only",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/casual-simulation/casualos/issues"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/casual-simulation/casualos#readme",
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@casual-simulation/aux-common": "^3.8.1",
|
|
32
|
+
"@casual-simulation/aux-records": "^3.10.0",
|
|
33
|
+
"@casual-simulation/aux-runtime": "^3.8.1",
|
|
34
|
+
"@octokit/app": "^15.1.0",
|
|
35
|
+
"@octokit/auth-oauth-device": "^7.1.1",
|
|
36
|
+
"@octokit/core": "^6.1.2",
|
|
37
|
+
"axios": "1.7.7",
|
|
38
|
+
"commander": "12.0.0",
|
|
39
|
+
"conf": "12.0.0",
|
|
40
|
+
"esbuild": "0.25.11",
|
|
41
|
+
"octokit": "^4.0.2",
|
|
42
|
+
"open": "10.1.0",
|
|
43
|
+
"prompts": "2.4.2",
|
|
44
|
+
"simple-git": "^3.24.0",
|
|
45
|
+
"tweetnacl": "1.0.3",
|
|
46
|
+
"uuid": "10.0.0",
|
|
47
|
+
"zod": "4.1.12"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/prompts": "^2.4.9"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"/README.md",
|
|
54
|
+
"/LICENSE.txt",
|
|
55
|
+
"**/*.js",
|
|
56
|
+
"**/*.js.map",
|
|
57
|
+
"**/*.d.ts",
|
|
58
|
+
"**/*.def",
|
|
59
|
+
"templates/**"
|
|
60
|
+
],
|
|
61
|
+
"scripts": {
|
|
62
|
+
"start": "node ./dist/cli.js",
|
|
63
|
+
"dev": "npm run build && npm start",
|
|
64
|
+
"build": "node ./script/build-cli.mjs",
|
|
65
|
+
"test": "jest",
|
|
66
|
+
"test:watch": "jest --watchAll"
|
|
67
|
+
}
|
|
68
|
+
}
|