@dev.sail.money/sailor 1.1.0-56 → 1.1.0-58
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 +1 -1
- package/packages/cli/dist/index.cjs +49 -21
- package/packages/cli/dist/server.cjs +20 -3
- package/packages/sdk/dist/intelligence.d.ts +1 -1
- package/packages/sdk/dist/intelligence.js +1 -1
- package/packages/ui/dist/assets/{add-BS43jAvE.js → add-C-dsfxDo.js} +1 -1
- package/packages/ui/dist/assets/{all-wallets-Dru6qJH1.js → all-wallets-CnIqhv43.js} +1 -1
- package/packages/ui/dist/assets/{app-store-BLcsUI03.js → app-store-ChQtg1vX.js} +1 -1
- package/packages/ui/dist/assets/{apple-BWHb9b19.js → apple-BjgF3Q4D.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-CvA9mNIY.js → arrow-bottom-B6a-dLkm.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-circle-DIZ2DYtf.js → arrow-bottom-circle-iFIsQg-8.js} +1 -1
- package/packages/ui/dist/assets/{arrow-left-C1WdHXyJ.js → arrow-left-CZGr-Z6-.js} +1 -1
- package/packages/ui/dist/assets/{arrow-right-D4joMWsA.js → arrow-right-BHkO-l6J.js} +1 -1
- package/packages/ui/dist/assets/{arrow-top-yt2aK5vR.js → arrow-top-CSAHnpAG.js} +1 -1
- package/packages/ui/dist/assets/{bank-CazR56wN.js → bank-CBmII1x8.js} +1 -1
- package/packages/ui/dist/assets/{basic-Je9jZY_E.js → basic-z0IGeGoe.js} +1 -1
- package/packages/ui/dist/assets/{browser-1tAdwDku.js → browser-C63FxwgG.js} +1 -1
- package/packages/ui/dist/assets/{card-DoaepVVz.js → card-B6aMu64l.js} +1 -1
- package/packages/ui/dist/assets/{ccip-C6aW-P5p.js → ccip-DpFAdEcw.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-DDpSPWHf.js → checkmark-CXN3abIo.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-bold-DOmNmMmE.js → checkmark-bold-CnE9PClq.js} +1 -1
- package/packages/ui/dist/assets/{chevron-bottom-4DOeQaSb.js → chevron-bottom-BycxXH48.js} +1 -1
- package/packages/ui/dist/assets/{chevron-left-CSOAto2p.js → chevron-left-RCx9bqyC.js} +1 -1
- package/packages/ui/dist/assets/{chevron-right-BflGOV8n.js → chevron-right-B1DFs8_e.js} +1 -1
- package/packages/ui/dist/assets/{chevron-top-DbTP1v84.js → chevron-top-Dqq8VaiR.js} +1 -1
- package/packages/ui/dist/assets/{chrome-store-B3mEv86n.js → chrome-store-N1IilO-E.js} +1 -1
- package/packages/ui/dist/assets/{clock-CXRE-gn9.js → clock-8pQLsWRy.js} +1 -1
- package/packages/ui/dist/assets/{close-B2LvgYHh.js → close-LHyV89kq.js} +1 -1
- package/packages/ui/dist/assets/{coinPlaceholder-B8fJqtLR.js → coinPlaceholder-5bT2NQld.js} +1 -1
- package/packages/ui/dist/assets/{compass-DTaFYeQZ.js → compass-CLhzgv54.js} +1 -1
- package/packages/ui/dist/assets/{copy-BBakHya3.js → copy-DJ6auzXs.js} +1 -1
- package/packages/ui/dist/assets/{core-BpF1-DzQ.js → core-Cp3xGXA6.js} +3 -3
- package/packages/ui/dist/assets/cursor-CIbOGu5K.js +3 -0
- package/packages/ui/dist/assets/{cursor-transparent-DKa_Lle6.js → cursor-transparent-CohavsEh.js} +1 -1
- package/packages/ui/dist/assets/{desktop-D7Lnnvl2.js → desktop-n28VeLf1.js} +1 -1
- package/packages/ui/dist/assets/{disconnect-_mUxGN38.js → disconnect-BytBq3zd.js} +1 -1
- package/packages/ui/dist/assets/{discord-vu5Rn7Tr.js → discord-DHkapJMS.js} +1 -1
- package/packages/ui/dist/assets/{etherscan-DQXE4lOR.js → etherscan-C43zbGve.js} +1 -1
- package/packages/ui/dist/assets/{events-Eopql9eC.js → events-BRxyYKwO.js} +1 -1
- package/packages/ui/dist/assets/{exclamation-triangle-CCzjDdyg.js → exclamation-triangle-lpLpOiUn.js} +1 -1
- package/packages/ui/dist/assets/{extension-D32dKK8x.js → extension-BAcEl3l1.js} +1 -1
- package/packages/ui/dist/assets/{external-link-C1RmQ2XN.js → external-link-Bi2lQaCr.js} +1 -1
- package/packages/ui/dist/assets/{facebook-NupN2yiX.js → facebook-CYLNHpDr.js} +1 -1
- package/packages/ui/dist/assets/{fallback-DmbN9dhJ.js → fallback-DAe2x1wz.js} +1 -1
- package/packages/ui/dist/assets/{farcaster-vh02F8e6.js → farcaster-CpbuoD-A.js} +1 -1
- package/packages/ui/dist/assets/{filters-BQ6Iivdj.js → filters-2SeCLkqg.js} +1 -1
- package/packages/ui/dist/assets/{github-DSx9z0rX.js → github-CXGuiWnN.js} +1 -1
- package/packages/ui/dist/assets/{google-_I4F5vdq.js → google-u86NQc9o.js} +1 -1
- package/packages/ui/dist/assets/{help-circle-Dfa8ddbH.js → help-circle-VXfl2gxH.js} +1 -1
- package/packages/ui/dist/assets/{id-BAM4IWfd.js → id--tXCaijO.js} +1 -1
- package/packages/ui/dist/assets/{image-KIkwTsfz.js → image-fGZdyWSE.js} +1 -1
- package/packages/ui/dist/assets/{index-xvt1Uhoh.js → index-B7HoHWiW.js} +1 -1
- package/packages/ui/dist/assets/{index-C7ljqvVH.js → index-BbxcsrfK.js} +1 -1
- package/packages/ui/dist/assets/{index-BI1wPZLz.js → index-CQAVTqzM.js} +1 -1
- package/packages/ui/dist/assets/{index-CXnDMKxV.js → index-C_eqUkeY.js} +3 -3
- package/packages/ui/dist/assets/{index-BUEUFp3n.js → index-PxeN2I9s.js} +1 -1
- package/packages/ui/dist/assets/{index-DIomDvtx.js → index-vPyTb3MD.js} +13 -13
- package/packages/ui/dist/assets/{index.es-YQw2pymN.js → index.es-r4dwiXlA.js} +4 -4
- package/packages/ui/dist/assets/{info-BIor39lp.js → info-C_QVyvKM.js} +1 -1
- package/packages/ui/dist/assets/{info-circle-Dqdl3mxz.js → info-circle-BQ6SUcsG.js} +1 -1
- package/packages/ui/dist/assets/{lightbulb-Csok3PvI.js → lightbulb-DiDGGbfa.js} +1 -1
- package/packages/ui/dist/assets/{mail-BPk5bOQ2.js → mail-A6VjvryF.js} +1 -1
- package/packages/ui/dist/assets/{metamask-sdk-feP1pHN0.js → metamask-sdk-wtBcTydn.js} +1 -1
- package/packages/ui/dist/assets/{mobile-BPUom-FI.js → mobile-pGU4EH2u.js} +1 -1
- package/packages/ui/dist/assets/{more-JMfdm1wk.js → more-DcCpyKKY.js} +1 -1
- package/packages/ui/dist/assets/{network-placeholder-BT7fjrct.js → network-placeholder-CuG8kjRQ.js} +1 -1
- package/packages/ui/dist/assets/{nftPlaceholder-utJxoHtb.js → nftPlaceholder-CR04xCSJ.js} +1 -1
- package/packages/ui/dist/assets/{off-hq7OAi-o.js → off-B0iV5ojg.js} +1 -1
- package/packages/ui/dist/assets/{parseSignature-w8WnSKC2.js → parseSignature-5Cmk56ft.js} +1 -1
- package/packages/ui/dist/assets/{play-store-CRl47DTL.js → play-store-DihUKb7H.js} +1 -1
- package/packages/ui/dist/assets/{plus-eyDbfDfS.js → plus-CsIbMkij.js} +1 -1
- package/packages/ui/dist/assets/{qr-code-BEHTadbZ.js → qr-code-Dqbt_uUa.js} +1 -1
- package/packages/ui/dist/assets/{recycle-horizontal-BC60octY.js → recycle-horizontal-DAgZ0s3B.js} +1 -1
- package/packages/ui/dist/assets/{refresh-BxgK85Tq.js → refresh-BckmchSk.js} +1 -1
- package/packages/ui/dist/assets/{reown-logo-Dd_IJCkF.js → reown-logo-Ck_DLLhR.js} +1 -1
- package/packages/ui/dist/assets/{search-Cyp8nEs8.js → search-DvTEXRW7.js} +1 -1
- package/packages/ui/dist/assets/{secp256k1-laH6KoTV.js → secp256k1-C98H2goB.js} +1 -1
- package/packages/ui/dist/assets/{send-CWXmlhb1.js → send-BIKg5OD7.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontal-CFLC8w1L.js → swapHorizontal-7TJPm-09.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalBold-DZhbnbhE.js → swapHorizontalBold-OPBCTkZ8.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalMedium-CzE1s2tN.js → swapHorizontalMedium-BiR-wXTk.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalRoundedBold-CJYH54AR.js → swapHorizontalRoundedBold-CjZW0yXV.js} +1 -1
- package/packages/ui/dist/assets/{swapVertical-7KWya2ln.js → swapVertical-BvJSfTbs.js} +1 -1
- package/packages/ui/dist/assets/{telegram-fce-Avs_.js → telegram-BIvNqVBz.js} +1 -1
- package/packages/ui/dist/assets/{three-dots-D4VkZVf0.js → three-dots-ohueHxZy.js} +1 -1
- package/packages/ui/dist/assets/{twitch-CKrxVV4A.js → twitch-BqrnP162.js} +1 -1
- package/packages/ui/dist/assets/{twitterIcon-DqQ_S4sF.js → twitterIcon-Dw0kNY9c.js} +1 -1
- package/packages/ui/dist/assets/{verify-Bg8Nm5kp.js → verify-DRBQ8AnL.js} +1 -1
- package/packages/ui/dist/assets/{verify-filled-ByhWwoOC.js → verify-filled-9og8tsf9.js} +1 -1
- package/packages/ui/dist/assets/{w3m-modal-CgG8GqFk.js → w3m-modal-rIMTDhot.js} +1 -1
- package/packages/ui/dist/assets/{wallet-Ds4r4wYF.js → wallet-X2eNWOim.js} +1 -1
- package/packages/ui/dist/assets/{wallet-placeholder-DI1eFDgp.js → wallet-placeholder-BrLMYsyb.js} +1 -1
- package/packages/ui/dist/assets/{walletconnect-BBmq9Bso.js → walletconnect-C4JQX1g7.js} +1 -1
- package/packages/ui/dist/assets/{warning-circle-vtBty3uk.js → warning-circle-obEvu57J.js} +1 -1
- package/packages/ui/dist/assets/{x-z68Sur_1.js → x-BkGddY7Q.js} +1 -1
- package/packages/ui/dist/index.html +1 -1
- package/packages/ui/dist/assets/cursor-BER7xde5.js +0 -3
package/package.json
CHANGED
|
@@ -38333,10 +38333,15 @@ function readJsonFile(filePath) {
|
|
|
38333
38333
|
return null;
|
|
38334
38334
|
}
|
|
38335
38335
|
}
|
|
38336
|
-
function writeJsonFile(filePath, data) {
|
|
38336
|
+
function writeJsonFile(filePath, data, mode) {
|
|
38337
38337
|
import_node_fs2.default.mkdirSync(import_node_path.default.dirname(filePath), { recursive: true });
|
|
38338
|
-
import_node_fs2.default.writeFileSync(
|
|
38339
|
-
|
|
38338
|
+
import_node_fs2.default.writeFileSync(
|
|
38339
|
+
filePath,
|
|
38340
|
+
`${JSON.stringify(data, null, 2)}
|
|
38341
|
+
`,
|
|
38342
|
+
mode !== void 0 ? { mode } : void 0
|
|
38343
|
+
);
|
|
38344
|
+
if (mode !== void 0) import_node_fs2.default.chmodSync(filePath, mode);
|
|
38340
38345
|
}
|
|
38341
38346
|
function fileExists(filePath) {
|
|
38342
38347
|
return import_node_fs2.default.existsSync(filePath);
|
|
@@ -38377,6 +38382,18 @@ function parseEnvFile(filePath) {
|
|
|
38377
38382
|
}
|
|
38378
38383
|
return out;
|
|
38379
38384
|
}
|
|
38385
|
+
function persistPassphrase(envPath, passphrase) {
|
|
38386
|
+
let content = "";
|
|
38387
|
+
if (import_node_fs2.default.existsSync(envPath)) {
|
|
38388
|
+
content = import_node_fs2.default.readFileSync(envPath, "utf-8").replace(/^SAIL_PASSPHRASE=.*\n?/m, "");
|
|
38389
|
+
}
|
|
38390
|
+
const trimmed = content.trimEnd();
|
|
38391
|
+
content = `${trimmed}${trimmed.length > 0 ? "\n" : ""}SAIL_PASSPHRASE=${passphrase}
|
|
38392
|
+
`;
|
|
38393
|
+
import_node_fs2.default.mkdirSync(import_node_path.default.dirname(envPath), { recursive: true });
|
|
38394
|
+
import_node_fs2.default.writeFileSync(envPath, content, { mode: 384 });
|
|
38395
|
+
import_node_fs2.default.chmodSync(envPath, 384);
|
|
38396
|
+
}
|
|
38380
38397
|
function checksum4(address) {
|
|
38381
38398
|
return getAddress(address);
|
|
38382
38399
|
}
|
|
@@ -39701,7 +39718,18 @@ async function loadManagerSigner(safe) {
|
|
|
39701
39718
|
'No agent wallet found.\nRun "sailor keys generate" and choose "agent wallet".'
|
|
39702
39719
|
);
|
|
39703
39720
|
}
|
|
39704
|
-
|
|
39721
|
+
try {
|
|
39722
|
+
return await LocalKeyring.fromKeystore(keystore, passphrase);
|
|
39723
|
+
} catch {
|
|
39724
|
+
throw new Error(
|
|
39725
|
+
"SAIL_PASSPHRASE does not match this keystore.\nCheck the value in .sail/.env.local (or the SAIL_PASSPHRASE CI secret) \u2014 it must be the passphrase the agent wallet was encrypted with."
|
|
39726
|
+
);
|
|
39727
|
+
}
|
|
39728
|
+
}
|
|
39729
|
+
if (process.stdin.isTTY !== true && keyExists("manager", safe)) {
|
|
39730
|
+
throw new Error(
|
|
39731
|
+
'Agent keystore found but SAIL_PASSPHRASE is not set.\nIf you created the key in the dashboard, add SAIL_PASSPHRASE to .sail/.env.local, or run "sailor keys generate".\nFor CI, set the SAIL_PASSPHRASE GitHub Actions secret.'
|
|
39732
|
+
);
|
|
39705
39733
|
}
|
|
39706
39734
|
return loadKeyring("manager", safe);
|
|
39707
39735
|
}
|
|
@@ -40174,6 +40202,9 @@ async function doctor(options = {}) {
|
|
|
40174
40202
|
} catch {
|
|
40175
40203
|
}
|
|
40176
40204
|
const chainIdMatches = chainIdOnChain === null ? null : chainIdOnChain === chainId;
|
|
40205
|
+
const managerKeystorePresent = keyExists("manager", stored?.safe);
|
|
40206
|
+
const passphraseSet = Boolean(process.env.SAIL_PASSPHRASE);
|
|
40207
|
+
const passphraseGap = managerKeystorePresent && !passphraseSet;
|
|
40177
40208
|
let ownerBal = null;
|
|
40178
40209
|
let managerBal = null;
|
|
40179
40210
|
try {
|
|
@@ -40195,6 +40226,7 @@ async function doctor(options = {}) {
|
|
|
40195
40226
|
owner: ownerAddr ? { address: ownerAddr, ...ownerBal ?? {} } : null,
|
|
40196
40227
|
manager: managerAddr ? { address: managerAddr, ...managerBal ?? {} } : null
|
|
40197
40228
|
},
|
|
40229
|
+
passphrase: { keystorePresent: managerKeystorePresent, envSet: passphraseSet },
|
|
40198
40230
|
account: safe,
|
|
40199
40231
|
saltNonce: stored?.saltNonce ?? null,
|
|
40200
40232
|
permissions,
|
|
@@ -40256,6 +40288,11 @@ async function doctor(options = {}) {
|
|
|
40256
40288
|
' \u2192 The manager (agent) pays gas. Fund it before "sailor run" or dispatches fail.'
|
|
40257
40289
|
);
|
|
40258
40290
|
}
|
|
40291
|
+
if (passphraseGap) {
|
|
40292
|
+
console.log(
|
|
40293
|
+
' \u26A0 SAIL_PASSPHRASE is not set, but an agent keystore exists.\n "sailor run" will prompt interactively; CI and the scheduled cron will fail to unlock it.\n Add SAIL_PASSPHRASE to .sail/.env.local (the dashboard does this automatically when it creates the key).'
|
|
40294
|
+
);
|
|
40295
|
+
}
|
|
40259
40296
|
if (!safe) {
|
|
40260
40297
|
console.log('\nAccount: none found. Run "sailor onboard --new-sma", or pass --account <addr>.');
|
|
40261
40298
|
console.log("Skipping permission checks.");
|
|
@@ -40848,7 +40885,7 @@ async function keysGenerate() {
|
|
|
40848
40885
|
}
|
|
40849
40886
|
const keyring = LocalKeyring.generate();
|
|
40850
40887
|
const keystore = await keyring.exportKeystore(password);
|
|
40851
|
-
writeJsonFile(keyPath(role), keystore);
|
|
40888
|
+
writeJsonFile(keyPath(role), keystore, 384);
|
|
40852
40889
|
const label = role === "manager" ? "Agent wallet" : "Mandate signer";
|
|
40853
40890
|
console.log(`
|
|
40854
40891
|
${label} key saved. Address: ${checksum4(keyring.address)}`);
|
|
@@ -40858,16 +40895,7 @@ ${label} key saved. Address: ${checksum4(keyring.address)}`);
|
|
|
40858
40895
|
"\nSave passphrase to .sail/.env.local for non-interactive use? (required for CI/GitHub Actions)"
|
|
40859
40896
|
);
|
|
40860
40897
|
if (save) {
|
|
40861
|
-
|
|
40862
|
-
let content = "";
|
|
40863
|
-
if (import_node_fs9.default.existsSync(envPath)) {
|
|
40864
|
-
content = import_node_fs9.default.readFileSync(envPath, "utf-8");
|
|
40865
|
-
content = content.replace(/^SAIL_PASSPHRASE=.*\n?/m, "");
|
|
40866
|
-
}
|
|
40867
|
-
content = content.trimEnd() + (content.length > 0 ? "\n" : "") + `SAIL_PASSPHRASE=${password}
|
|
40868
|
-
`;
|
|
40869
|
-
import_node_fs9.default.mkdirSync(import_node_path8.default.dirname(envPath), { recursive: true });
|
|
40870
|
-
import_node_fs9.default.writeFileSync(envPath, content, { mode: 384 });
|
|
40898
|
+
persistPassphrase(sailPath(".env.local"), password);
|
|
40871
40899
|
console.log("\u2713 SAIL_PASSPHRASE saved to .sail/.env.local (mode 0600)");
|
|
40872
40900
|
console.log(" sailor run will now work non-interactively.");
|
|
40873
40901
|
} else {
|
|
@@ -43271,15 +43299,15 @@ ensure the agent that signs dispatches holds this key.`
|
|
|
43271
43299
|
if (fileExists(target)) {
|
|
43272
43300
|
const backup = `${target}.${Date.now()}.bak`;
|
|
43273
43301
|
const existing = readJsonFile(target);
|
|
43274
|
-
if (existing) writeJsonFile(backup, existing);
|
|
43302
|
+
if (existing) writeJsonFile(backup, existing, 384);
|
|
43275
43303
|
say(() => console.log(` Backed up the old agent keystore \u2192 ${backup}`));
|
|
43276
43304
|
}
|
|
43277
43305
|
const keyring = LocalKeyring.generate();
|
|
43278
43306
|
const keystore = await keyring.exportKeystore(password);
|
|
43279
|
-
writeJsonFile(target, keystore);
|
|
43307
|
+
writeJsonFile(target, keystore, 384);
|
|
43280
43308
|
const perManagerPath = managerKeystorePath(keyring.address);
|
|
43281
43309
|
(0, import_node_fs13.mkdirSync)(sailPath("keys", "managers"), { recursive: true });
|
|
43282
|
-
writeJsonFile(perManagerPath, keystore);
|
|
43310
|
+
writeJsonFile(perManagerPath, keystore, 384);
|
|
43283
43311
|
say(
|
|
43284
43312
|
() => console.log(
|
|
43285
43313
|
` New agent wallet: ${checksum4(keyring.address)} (keystore at .sail/keys/manager.json)`
|
|
@@ -43295,11 +43323,11 @@ function promoteManagerKeystore(newManager, say) {
|
|
|
43295
43323
|
const displaced = readJsonFile(activeTarget);
|
|
43296
43324
|
if (displaced?.address) {
|
|
43297
43325
|
const snapshotPath = managerKeystorePath(displaced.address);
|
|
43298
|
-
if (readJsonFile(snapshotPath) === null) writeJsonFile(snapshotPath, displaced);
|
|
43326
|
+
if (readJsonFile(snapshotPath) === null) writeJsonFile(snapshotPath, displaced, 384);
|
|
43299
43327
|
} else if (displaced) {
|
|
43300
|
-
writeJsonFile(`${activeTarget}.${Date.now()}.bak`, displaced);
|
|
43328
|
+
writeJsonFile(`${activeTarget}.${Date.now()}.bak`, displaced, 384);
|
|
43301
43329
|
}
|
|
43302
|
-
writeJsonFile(activeTarget, stored);
|
|
43330
|
+
writeJsonFile(activeTarget, stored, 384);
|
|
43303
43331
|
say(
|
|
43304
43332
|
() => console.log(` Agent wallet keystore for ${newManager} is now active (.sail/keys/manager.json).`)
|
|
43305
43333
|
);
|
|
@@ -48753,6 +48753,18 @@ function parseEnvFile(file) {
|
|
|
48753
48753
|
}
|
|
48754
48754
|
return out;
|
|
48755
48755
|
}
|
|
48756
|
+
function persistPassphrase(envPath, passphrase) {
|
|
48757
|
+
let content = "";
|
|
48758
|
+
if (import_node_fs2.default.existsSync(envPath)) {
|
|
48759
|
+
content = import_node_fs2.default.readFileSync(envPath, "utf-8").replace(/^SAIL_PASSPHRASE=.*\n?/m, "");
|
|
48760
|
+
}
|
|
48761
|
+
const trimmed = content.trimEnd();
|
|
48762
|
+
content = `${trimmed}${trimmed.length > 0 ? "\n" : ""}SAIL_PASSPHRASE=${passphrase}
|
|
48763
|
+
`;
|
|
48764
|
+
import_node_fs2.default.mkdirSync(import_node_path.default.dirname(envPath), { recursive: true });
|
|
48765
|
+
import_node_fs2.default.writeFileSync(envPath, content, { mode: 384 });
|
|
48766
|
+
import_node_fs2.default.chmodSync(envPath, 384);
|
|
48767
|
+
}
|
|
48756
48768
|
var CHAIN_NAMES = {
|
|
48757
48769
|
1: "ethereum",
|
|
48758
48770
|
10: "optimism",
|
|
@@ -49137,7 +49149,9 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
49137
49149
|
const keystore = await keyring.exportKeystore(password);
|
|
49138
49150
|
import_node_fs2.default.mkdirSync(at("keys"), { recursive: true });
|
|
49139
49151
|
import_node_fs2.default.writeFileSync(managerKeyPath(safe), `${JSON.stringify(keystore, null, 2)}
|
|
49140
|
-
|
|
49152
|
+
`, { mode: 384 });
|
|
49153
|
+
import_node_fs2.default.chmodSync(managerKeyPath(safe), 384);
|
|
49154
|
+
persistPassphrase(at(".env.local"), password);
|
|
49141
49155
|
try {
|
|
49142
49156
|
const ev = { ts: (/* @__PURE__ */ new Date()).toISOString(), actor: "owner", type: "signer_created", method, address: keyring.address, safe };
|
|
49143
49157
|
import_node_fs2.default.appendFileSync(at("activity.jsonl"), `${JSON.stringify(ev)}
|
|
@@ -49574,7 +49588,8 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
49574
49588
|
if (chainId) existing.CHAIN_ID = String(chainId);
|
|
49575
49589
|
const content = Object.entries(existing).map(([k, v]) => `${k}=${v}`).join("\n") + "\n";
|
|
49576
49590
|
import_node_fs2.default.mkdirSync(sailDir, { recursive: true });
|
|
49577
|
-
import_node_fs2.default.writeFileSync(envPath, content);
|
|
49591
|
+
import_node_fs2.default.writeFileSync(envPath, content, { mode: 384 });
|
|
49592
|
+
import_node_fs2.default.chmodSync(envPath, 384);
|
|
49578
49593
|
res.json({ ok: true });
|
|
49579
49594
|
} catch (err) {
|
|
49580
49595
|
res.status(500).json({ error: String(err) });
|
|
@@ -49597,7 +49612,9 @@ function startServer(sailDir, { port = PORT } = {}) {
|
|
|
49597
49612
|
const keystore = await keyring.exportKeystore(passphrase);
|
|
49598
49613
|
import_node_fs2.default.mkdirSync(at("keys"), { recursive: true });
|
|
49599
49614
|
import_node_fs2.default.writeFileSync(managerKeyPath2, `${JSON.stringify(keystore, null, 2)}
|
|
49600
|
-
|
|
49615
|
+
`, { mode: 384 });
|
|
49616
|
+
import_node_fs2.default.chmodSync(managerKeyPath2, 384);
|
|
49617
|
+
persistPassphrase(at(".env.local"), passphrase);
|
|
49601
49618
|
res.json({ address: keyring.address, existed: false });
|
|
49602
49619
|
} catch (err) {
|
|
49603
49620
|
res.status(500).json({ error: String(err) });
|
|
@@ -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-15T16:
|
|
8
|
+
* Generated at : 2026-06-15T16:52:27.363Z
|
|
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-15T16:
|
|
8
|
+
* Generated at : 2026-06-15T16:52:27.363Z
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const d=o`<svg
|
|
2
2
|
width="14"
|
|
3
3
|
height="14"
|
|
4
4
|
viewBox="0 0 14 14"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 24 24">
|
|
2
2
|
<path
|
|
3
3
|
style="fill: var(--wui-color-accent-100);"
|
|
4
4
|
d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as t}from"./core-
|
|
1
|
+
import{F as t}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const e=t`
|
|
2
2
|
<svg width="36" height="36">
|
|
3
3
|
<path
|
|
4
4
|
d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as i}from"./core-
|
|
1
|
+
import{F as i}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const h=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#000" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
package/packages/ui/dist/assets/{arrow-bottom-circle-DIZ2DYtf.js → arrow-bottom-circle-iFIsQg-8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const t=o`<svg
|
|
2
2
|
fill="none"
|
|
3
3
|
viewBox="0 0 21 20"
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const a=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const H=o`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as P,s as M,y as A,v as I,p as c,g as L,c as T,O as Y,l as E,m as J,R as O,h as ke,e as D,f as S,o as ft,j as Hi,W as gt,C as jt,d as si,T as kt,n as Qe,M as vi,k as yi,F as Ae,A as li,q as Ki}from"./core-
|
|
1
|
+
import{u as P,s as M,y as A,v as I,p as c,g as L,c as T,O as Y,l as E,m as J,R as O,h as ke,e as D,f as S,o as ft,j as Hi,W as gt,C as jt,d as si,T as kt,n as Qe,M as vi,k as yi,F as Ae,A as li,q as Ki}from"./core-Cp3xGXA6.js";import{n as u,c as C,o as y,r as v,U as se,e as Gi,f as Yi,a as Ji}from"./index-C_eqUkeY.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const Qi=P`
|
|
2
2
|
:host {
|
|
3
3
|
position: relative;
|
|
4
4
|
background-color: var(--wui-color-gray-glass-002);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as l}from"./core-
|
|
1
|
+
import{F as l}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const i=l`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as C}from"./core-
|
|
1
|
+
import{F as C}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const l=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as u,cY as p,fP as k,c0 as x,de as M,dl as S,dk as $,bK as A,bR as T,cd as C,cJ as w,dc as E,a0 as b,dg as G}from"./index-
|
|
1
|
+
import{B as u,cY as p,fP as k,c0 as x,de as M,dl as S,dk as $,bK as A,bR as T,cd as C,cJ as w,dc as E,a0 as b,dg as G}from"./index-vPyTb3MD.js";class D extends u{constructor({callbackSelector:a,cause:t,data:f,extraData:e,sender:d,urls:i}){var o;super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],(o=t.metaMessages)!=null&&o.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(n=>` ${p(n)}`)],` Sender: ${d}`,` Data: ${f}`,` Callback selector: ${a}`,` Extra data: ${e}`].flat(),name:"OffchainLookupError"})}}class P extends u{constructor({result:a,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${p(t)}`,`Response: ${k(a)}`],name:"OffchainLookupResponseMalformedError"})}}class B extends u{constructor({sender:a,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${a}`],name:"OffchainLookupSenderMismatchError"})}}const H="0x556f1830",U={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function J(c,{blockNumber:a,blockTag:t,data:f,requestOptions:e,to:d}){var s;const{args:i}=x({data:f,abi:[U]}),[o,n,l,g,y]=i,{ccipRead:h}=c,r=h&&typeof(h==null?void 0:h.request)=="function"?h.request:j;try{if(!M(d,o))throw new B({sender:o,to:d});const m=n.includes(S)?await $({data:l,ccipRequest:R=>r({...R,requestOptions:e})}):await r({data:l,requestOptions:e,sender:o,urls:n}),{data:L}=await A(c,{blockNumber:a,blockTag:t,data:T([g,C([{type:"bytes"},{type:"bytes"}],[m,y])]),requestOptions:e,to:d});return L}catch(m){throw(s=e==null?void 0:e.signal)!=null&&s.aborted?w(e.signal):E(m)?m:new D({callbackSelector:g,cause:m,data:f,extraData:y,sender:o,urls:n})}}async function j({data:c,requestOptions:a,sender:t,urls:f}){var d,i,o;let e=new Error("An unknown error occurred.");for(let n=0;n<f.length;n++){if((d=a==null?void 0:a.signal)!=null&&d.aborted)throw w(a.signal);const l=f[n],g=l.includes("{data}")?"GET":"POST",y=g==="POST"?{data:c,sender:t}:void 0,h=g==="POST"?{"Content-Type":"application/json"}:{};try{const r=await fetch(l.replace("{sender}",t.toLowerCase()).replace("{data}",c),{body:JSON.stringify(y),headers:h,method:g,...a!=null&&a.signal?{signal:a.signal}:{}});let s;if((i=r.headers.get("Content-Type"))!=null&&i.startsWith("application/json")?s=(await r.json()).data:s=await r.text(),!r.ok){e=new b({body:y,details:s!=null&&s.error?k(s.error):r.statusText,headers:r.headers,status:r.status,url:l});continue}if(!G(s)){e=new P({result:s,url:l});continue}return s}catch(r){if((o=a==null?void 0:a.signal)!=null&&o.aborted)throw w(a.signal);if(E(r))throw r;e=new b({body:y,details:r.message,url:l})}}throw e}export{j as ccipRequest,J as offchainLookup,U as offchainLookupAbiItem,H as offchainLookupSignature};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg
|
|
2
2
|
width="28"
|
|
3
3
|
height="28"
|
|
4
4
|
viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as t}from"./core-
|
|
1
|
+
import{F as t}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const l=t`<svg width="36" height="36" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill="#fff"
|
|
4
4
|
fill-opacity=".05"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const t=o`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill-rule="evenodd"
|
|
4
4
|
clip-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const m=o`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as C}from"./core-
|
|
1
|
+
import{F as C}from"./core-Cp3xGXA6.js";import"./index-vPyTb3MD.js";import"./events-BRxyYKwO.js";import"./index.es-r4dwiXlA.js";import"./fallback-DAe2x1wz.js";const e=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="16"
|
|
4
4
|
height="16"
|