@dev.sail.money/sailor 1.1.0-59 → 1.1.0-60
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
|
@@ -40564,14 +40564,18 @@ before changing strategy code or running commands that touch funds.
|
|
|
40564
40564
|
function writeIfMissing2(file, content) {
|
|
40565
40565
|
if (!import_node_fs8.default.existsSync(file)) import_node_fs8.default.writeFileSync(file, content, "utf-8");
|
|
40566
40566
|
}
|
|
40567
|
-
|
|
40567
|
+
var CANONICAL_PKG = "@sail.money/sailor";
|
|
40568
|
+
function cliPackageInfo() {
|
|
40568
40569
|
try {
|
|
40569
40570
|
const pkg = JSON.parse(
|
|
40570
40571
|
import_node_fs8.default.readFileSync(import_node_path7.default.join(packageRoot(), "package.json"), "utf-8")
|
|
40571
40572
|
);
|
|
40572
|
-
return
|
|
40573
|
+
return {
|
|
40574
|
+
name: pkg.name ?? CANONICAL_PKG,
|
|
40575
|
+
version: pkg.version ?? "0.0.0"
|
|
40576
|
+
};
|
|
40573
40577
|
} catch {
|
|
40574
|
-
return "0.0.0";
|
|
40578
|
+
return { name: CANONICAL_PKG, version: "0.0.0" };
|
|
40575
40579
|
}
|
|
40576
40580
|
}
|
|
40577
40581
|
function scaffoldProjectWorkspace(dest, name, options) {
|
|
@@ -40702,7 +40706,8 @@ run from the repo root.` : ` Available: ${available}`;
|
|
|
40702
40706
|
const pkg = JSON.parse(import_node_fs8.default.readFileSync(pkgPath, "utf-8"));
|
|
40703
40707
|
pkg.name = name;
|
|
40704
40708
|
const devDeps = pkg.devDependencies ?? {};
|
|
40705
|
-
|
|
40709
|
+
const { name: cliName, version: cliVer } = cliPackageInfo();
|
|
40710
|
+
devDeps[CANONICAL_PKG] = cliName === CANONICAL_PKG ? `^${cliVer}` : `npm:${cliName}@^${cliVer}`;
|
|
40706
40711
|
pkg.devDependencies = devDeps;
|
|
40707
40712
|
import_node_fs8.default.writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}
|
|
40708
40713
|
`);
|
|
@@ -44341,7 +44346,7 @@ function uiStop() {
|
|
|
44341
44346
|
}
|
|
44342
44347
|
|
|
44343
44348
|
// src/index.ts
|
|
44344
|
-
function
|
|
44349
|
+
function cliVersion() {
|
|
44345
44350
|
try {
|
|
44346
44351
|
const pkg = JSON.parse((0, import_node_fs18.readFileSync)((0, import_node_path14.join)(packageRoot(), "package.json"), "utf-8"));
|
|
44347
44352
|
return pkg.version ?? "0.0.0";
|
|
@@ -44350,7 +44355,7 @@ function cliVersion2() {
|
|
|
44350
44355
|
}
|
|
44351
44356
|
}
|
|
44352
44357
|
var program2 = new Command();
|
|
44353
|
-
program2.name("sailor").description("Operator toolkit for Sail Protocol").version(
|
|
44358
|
+
program2.name("sailor").description("Operator toolkit for Sail Protocol").version(cliVersion());
|
|
44354
44359
|
function action(fn) {
|
|
44355
44360
|
return async () => {
|
|
44356
44361
|
try {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Do not edit manually — run `pnpm build` to regenerate.
|
|
6
6
|
*
|
|
7
7
|
* Spec version : 1.2.0
|
|
8
|
-
* Generated at : 2026-06-15T17:
|
|
8
|
+
* Generated at : 2026-06-15T17:11:55.986Z
|
|
9
9
|
*/
|
|
10
10
|
export declare const SAIL_INTELLIGENCE_BASE_URL = "https://api.sail.money";
|
|
11
11
|
export declare const SAIL_INTELLIGENCE_DOCS_URL = "https://api.sail.money/docs";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Do not edit manually — run `pnpm build` to regenerate.
|
|
6
6
|
*
|
|
7
7
|
* Spec version : 1.2.0
|
|
8
|
-
* Generated at : 2026-06-15T17:
|
|
8
|
+
* Generated at : 2026-06-15T17:11:55.986Z
|
|
9
9
|
*/
|
|
10
10
|
export const SAIL_INTELLIGENCE_BASE_URL = "https://api.sail.money";
|
|
11
11
|
export const SAIL_INTELLIGENCE_DOCS_URL = "https://api.sail.money/docs";
|