@dev.sail.money/sailor 1.2.1-89 → 1.2.1-92
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/README.md +1 -1
- package/package.json +2 -1
- package/packages/cli/dist/index.cjs +65 -2
- package/packages/sdk/dist/intelligence.d.ts +1 -1
- package/packages/sdk/dist/intelligence.js +1 -1
- package/packages/ui/dist/assets/{add-R0xP2zko.js → add-DxdePWzw.js} +1 -1
- package/packages/ui/dist/assets/{all-wallets-qnzttqV_.js → all-wallets-CcDyr50U.js} +1 -1
- package/packages/ui/dist/assets/{app-store-DpKGxR0G.js → app-store-BCSHe8EN.js} +1 -1
- package/packages/ui/dist/assets/{apple-Ckb9o1LK.js → apple-Cio1eVvD.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-D1FAx-yB.js → arrow-bottom-BlzVLDUl.js} +1 -1
- package/packages/ui/dist/assets/{arrow-bottom-circle-BH2TcYm0.js → arrow-bottom-circle-Bi45LFFD.js} +1 -1
- package/packages/ui/dist/assets/{arrow-left-CaaYjdtV.js → arrow-left-B3VkjnnJ.js} +1 -1
- package/packages/ui/dist/assets/{arrow-right-DW-rnoD_.js → arrow-right-5DrDm6ll.js} +1 -1
- package/packages/ui/dist/assets/{arrow-top-M7CVCSnU.js → arrow-top-wcXizC-G.js} +1 -1
- package/packages/ui/dist/assets/{bank-DVbh1inT.js → bank-SqJo5jS7.js} +1 -1
- package/packages/ui/dist/assets/{basic-BWLPh793.js → basic-BgCrxFS4.js} +1 -1
- package/packages/ui/dist/assets/{browser-BW0QiXeN.js → browser-DI6l7Tng.js} +1 -1
- package/packages/ui/dist/assets/{card-BNNvJESX.js → card-DjP6FOz-.js} +1 -1
- package/packages/ui/dist/assets/{ccip-C2ivRCFf.js → ccip-CKVRZdQQ.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-FoCkBDzR.js → checkmark-CBdVh2Kg.js} +1 -1
- package/packages/ui/dist/assets/{checkmark-bold-B7P2Bvsd.js → checkmark-bold-DvvsfN8H.js} +1 -1
- package/packages/ui/dist/assets/{chevron-bottom-DOhAc7rS.js → chevron-bottom-BBTXniKn.js} +1 -1
- package/packages/ui/dist/assets/{chevron-left-BiWf2KCl.js → chevron-left-LL7HKhOV.js} +1 -1
- package/packages/ui/dist/assets/{chevron-right-BH7i9-GZ.js → chevron-right-BT3XvCea.js} +1 -1
- package/packages/ui/dist/assets/{chevron-top-C9zp-WFB.js → chevron-top-D3lHXBcd.js} +1 -1
- package/packages/ui/dist/assets/{chrome-store-vDr9wSYG.js → chrome-store-BOzOVwkP.js} +1 -1
- package/packages/ui/dist/assets/{clock-CZlsrGmg.js → clock-JbWtGDR2.js} +1 -1
- package/packages/ui/dist/assets/{close-C7369YAf.js → close-ZT_Jiw1f.js} +1 -1
- package/packages/ui/dist/assets/{coinPlaceholder-CEONEmQj.js → coinPlaceholder-C-Csq_lw.js} +1 -1
- package/packages/ui/dist/assets/{compass-DzhhABp6.js → compass-XKXG-uKY.js} +1 -1
- package/packages/ui/dist/assets/{copy-zuwgIOLp.js → copy-BI6jLoZK.js} +1 -1
- package/packages/ui/dist/assets/{core-DjR_jD64.js → core-BLwyu_UZ.js} +3 -3
- package/packages/ui/dist/assets/cursor-jNUI_tHN.js +3 -0
- package/packages/ui/dist/assets/{cursor-transparent-DQOaLcvd.js → cursor-transparent-CFZylRzv.js} +1 -1
- package/packages/ui/dist/assets/{desktop-Bv7fy2f-.js → desktop-Hl3xhHy9.js} +1 -1
- package/packages/ui/dist/assets/{disconnect-DT21kQcX.js → disconnect-DW6U-dN7.js} +1 -1
- package/packages/ui/dist/assets/{discord-DnM6J12l.js → discord-BkDRI6sB.js} +1 -1
- package/packages/ui/dist/assets/{etherscan-CkYGysSe.js → etherscan-DM0DlV8l.js} +1 -1
- package/packages/ui/dist/assets/{events-Bzlx_C-j.js → events-DuWTfKWm.js} +1 -1
- package/packages/ui/dist/assets/{exclamation-triangle-CowxL_9E.js → exclamation-triangle-BJXppW_n.js} +1 -1
- package/packages/ui/dist/assets/{extension-Dq3IsAUN.js → extension-CVwJSN6F.js} +1 -1
- package/packages/ui/dist/assets/{external-link-CVa7Or9W.js → external-link-9T1VC3J9.js} +1 -1
- package/packages/ui/dist/assets/{facebook-CeigZ-Dq.js → facebook-R1848HX9.js} +1 -1
- package/packages/ui/dist/assets/{fallback-QmdVrhdj.js → fallback-BQyFegq4.js} +1 -1
- package/packages/ui/dist/assets/{farcaster-CmxCGnX5.js → farcaster-C8lScwHE.js} +1 -1
- package/packages/ui/dist/assets/{filters-CY5pHglU.js → filters-D_hUKJc6.js} +1 -1
- package/packages/ui/dist/assets/{github-DrSj44zE.js → github-BUdSlQ0g.js} +1 -1
- package/packages/ui/dist/assets/{google-DTfyabXp.js → google-DCVSiGyR.js} +1 -1
- package/packages/ui/dist/assets/{help-circle-kFOxdrQz.js → help-circle-BmbA9WiR.js} +1 -1
- package/packages/ui/dist/assets/{id-5pW65QwE.js → id-BpZ2AesF.js} +1 -1
- package/packages/ui/dist/assets/{image-D2FlAtVU.js → image-D9OlBR50.js} +1 -1
- package/packages/ui/dist/assets/{index-DxcSXSQt.js → index-BcngInt2.js} +1 -1
- package/packages/ui/dist/assets/{index-C62B8KTP.js → index-BmKpVmQo.js} +30 -30
- package/packages/ui/dist/assets/{index-BkS9kyuf.js → index-CFdoQ0C9.js} +1 -1
- package/packages/ui/dist/assets/{index-DZwl1NkD.js → index-Cw74yaCx.js} +1 -1
- package/packages/ui/dist/assets/{index-CNJJ8w4T.js → index-DnTTITgJ.js} +3 -3
- package/packages/ui/dist/assets/{index-CqeISmow.js → index-VuBRR5Ee.js} +1 -1
- package/packages/ui/dist/assets/{index.es-CdKoInzi.js → index.es-Cwe8eYYQ.js} +4 -4
- package/packages/ui/dist/assets/{info-DbUUs-7h.js → info-CsTScSXv.js} +1 -1
- package/packages/ui/dist/assets/{info-circle-pK0azOfA.js → info-circle-C85unnhg.js} +1 -1
- package/packages/ui/dist/assets/{lightbulb-BapmKP8y.js → lightbulb-DNRTVt--.js} +1 -1
- package/packages/ui/dist/assets/{mail-CdYd0Rh9.js → mail-lo_xlG5y.js} +1 -1
- package/packages/ui/dist/assets/{metamask-sdk-CmHF3TFo.js → metamask-sdk-D_zgrb2L.js} +1 -1
- package/packages/ui/dist/assets/{mobile-DkjGiGYO.js → mobile-CeziQrHs.js} +1 -1
- package/packages/ui/dist/assets/{more-BsU5N8hZ.js → more-BJJ25Bco.js} +1 -1
- package/packages/ui/dist/assets/{network-placeholder-DLlzj024.js → network-placeholder-C2bTejHc.js} +1 -1
- package/packages/ui/dist/assets/{nftPlaceholder-D2naVFFA.js → nftPlaceholder-P9e90e3l.js} +1 -1
- package/packages/ui/dist/assets/{off-O4fs0RcI.js → off-Cf9Lcmke.js} +1 -1
- package/packages/ui/dist/assets/{parseSignature-Ipc8B6L-.js → parseSignature-D3jDGZxJ.js} +1 -1
- package/packages/ui/dist/assets/{play-store-BySsEKjB.js → play-store-CIvfWMTw.js} +1 -1
- package/packages/ui/dist/assets/{plus-DcwXbThh.js → plus-y4ZSXf_2.js} +1 -1
- package/packages/ui/dist/assets/{qr-code-DXcikaWN.js → qr-code-BHKbMyiU.js} +1 -1
- package/packages/ui/dist/assets/{recycle-horizontal-QHdoxezF.js → recycle-horizontal-IClLWZNS.js} +1 -1
- package/packages/ui/dist/assets/{refresh-CimMVwX6.js → refresh-DGceqRDA.js} +1 -1
- package/packages/ui/dist/assets/{reown-logo-DAmY3tUR.js → reown-logo-Bv7sNHvL.js} +1 -1
- package/packages/ui/dist/assets/{search-YYHOSKxV.js → search-CRgTCcsE.js} +1 -1
- package/packages/ui/dist/assets/{secp256k1-DziXvsDr.js → secp256k1-Cqp3PtVi.js} +1 -1
- package/packages/ui/dist/assets/{send-BohgZ4SZ.js → send-DU6bIrPo.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontal-gdiztcz1.js → swapHorizontal-gFwRhx0T.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalBold-C4PPuw1r.js → swapHorizontalBold-JtBzA3Ii.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalMedium-CmhTo_53.js → swapHorizontalMedium-DoYVrxv8.js} +1 -1
- package/packages/ui/dist/assets/{swapHorizontalRoundedBold-BPNMkAqM.js → swapHorizontalRoundedBold-CAKgeiv9.js} +1 -1
- package/packages/ui/dist/assets/{swapVertical-Cnulu56K.js → swapVertical-D4_Wkrmp.js} +1 -1
- package/packages/ui/dist/assets/{telegram-rBBqAA42.js → telegram-DezHeoAw.js} +1 -1
- package/packages/ui/dist/assets/{three-dots-DhYHC0m3.js → three-dots-_2l4KYeg.js} +1 -1
- package/packages/ui/dist/assets/{twitch-DKwUBfEi.js → twitch-D7lxAEZq.js} +1 -1
- package/packages/ui/dist/assets/{twitterIcon-BEW1pHCf.js → twitterIcon-y5jVQyUi.js} +1 -1
- package/packages/ui/dist/assets/{verify-BVZjkQ2n.js → verify-Ue3VkpeM.js} +1 -1
- package/packages/ui/dist/assets/{verify-filled-BGkV52th.js → verify-filled-DhQ6l5Hx.js} +1 -1
- package/packages/ui/dist/assets/{w3m-modal-B7m-K8vL.js → w3m-modal-Dk1A5UT_.js} +1 -1
- package/packages/ui/dist/assets/{wallet-BOwiO_Zr.js → wallet-Z5h6x06d.js} +1 -1
- package/packages/ui/dist/assets/{wallet-placeholder-C5O9rl_6.js → wallet-placeholder-C56EAJDw.js} +1 -1
- package/packages/ui/dist/assets/{walletconnect-CKSy8TKP.js → walletconnect-CIEAhB_r.js} +1 -1
- package/packages/ui/dist/assets/{warning-circle-CwXtaT0N.js → warning-circle-DhGvQBv6.js} +1 -1
- package/packages/ui/dist/assets/{x-32UJYpvE.js → x-BveyWTSW.js} +1 -1
- package/packages/ui/dist/index.html +1 -1
- package/scripts/clean.mjs +17 -0
- package/templates/default/.agents/skills/sail-onboarding/SKILL.md +7 -0
- package/templates/default/.agents/skills/sail-servers/SKILL.md +16 -0
- package/templates/default/AGENTS.md +1 -1
- package/packages/ui/dist/assets/cursor-DeDBddRQ.js +0 -3
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ Sail Protocol separates three authority roles. Sailor operates all of them:
|
|
|
58
58
|
|
|
59
59
|
The path from nothing to a running agent follows the protocol lifecycle:
|
|
60
60
|
|
|
61
|
-
1. **Deploy your SMA
|
|
61
|
+
1. **Deploy your SMA** — `sailor onboard --new-sma` creates the SMA on-chain. `sailor account predict` computes the deterministic address in advance. The same owner, permission signer, manager, and salt produce the same SMA address on every supported chain.
|
|
62
62
|
2. **Author your permissions** — describe what the agent may do. Permission contracts encode the bounds: tokens, amounts, venues, call targets. Author them in the scaffolded Foundry workspace.
|
|
63
63
|
3. **Simulate, deploy, and sign your mandate** — `sailor mandate simulate` probes a permission off-chain before authorizing it. `sailor mandate deploy --attach` deploys and registers it on-chain. `sailor mandate sign` builds and signs the registration payload against live on-chain state.
|
|
64
64
|
4. **Run** — `sailor run` executes the agent loop. Three execution hosts compose: run it locally on a schedule, install it as a local OS service (`sailor service install` — launchd/systemd/Task Scheduler) that restarts on crash, or let the GitHub Actions cron workflow the scaffold provides run it. `sailor trigger github` fires that workflow on demand.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev.sail.money/sailor",
|
|
3
|
-
"version": "1.2.1-
|
|
3
|
+
"version": "1.2.1-92",
|
|
4
4
|
"description": "Operator toolkit for Sail Protocol",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sailor": "packages/cli/dist/index.cjs"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"AGENTS.md"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
+
"clean": "node scripts/clean.mjs",
|
|
27
28
|
"build": "pnpm --filter @sail/sdk build && pnpm --filter sailor build && pnpm --filter sailor-ui build",
|
|
28
29
|
"test": "pnpm --filter sailor-ui test",
|
|
29
30
|
"test:ui": "pnpm --filter sailor-ui test:ui",
|
|
@@ -38596,7 +38596,7 @@ var import_websocket2 = __toESM(require_websocket2(), 1);
|
|
|
38596
38596
|
var import_websocket_server2 = __toESM(require_websocket_server2(), 1);
|
|
38597
38597
|
|
|
38598
38598
|
// src/signing/server.ts
|
|
38599
|
-
var DEFAULT_SIGNING_PORT = 3141;
|
|
38599
|
+
var DEFAULT_SIGNING_PORT = Number(process.env.SAILOR_STATION_PORT ?? 3141);
|
|
38600
38600
|
var RUNTIME_SUBDIR = (0, import_node_path4.join)(".sail", "runtime");
|
|
38601
38601
|
var SERVER_STATE_FILE = "server.json";
|
|
38602
38602
|
var REQUEST_SECRET_HEADER = "x-sailor-secret";
|
|
@@ -40770,6 +40770,8 @@ function scaffoldProjectWorkspace(dest, name, options) {
|
|
|
40770
40770
|
import_node_fs9.default.mkdirSync(import_node_path8.default.join(sailDir2, "keys"), { recursive: true });
|
|
40771
40771
|
import_node_fs9.default.mkdirSync(import_node_path8.default.join(sailDir2, "runtime"), { recursive: true });
|
|
40772
40772
|
import_node_fs9.default.mkdirSync(import_node_path8.default.join(sailDir2, "state"), { recursive: true });
|
|
40773
|
+
const installMode = process.env.SAILOR_INSTALL_MODE === "docker" ? "docker" : "local";
|
|
40774
|
+
const containerName = process.env.SAILOR_CONTAINER_NAME ?? "agent";
|
|
40773
40775
|
import_node_fs9.default.writeFileSync(
|
|
40774
40776
|
import_node_path8.default.join(sailDir2, "config.json"),
|
|
40775
40777
|
`${JSON.stringify(
|
|
@@ -40780,6 +40782,8 @@ function scaffoldProjectWorkspace(dest, name, options) {
|
|
|
40780
40782
|
// null = chain not yet chosen; Stage 1 will set this
|
|
40781
40783
|
stateDir: ".sail/state",
|
|
40782
40784
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
40785
|
+
installMode,
|
|
40786
|
+
...installMode === "docker" ? { containerName } : {},
|
|
40783
40787
|
contracts: {
|
|
40784
40788
|
kernel: "",
|
|
40785
40789
|
mandateFactory: ""
|
|
@@ -40871,6 +40875,14 @@ Pass --force to scaffold into it anyway (existing files with the same name are o
|
|
|
40871
40875
|
"This project is already initialized.\nRun `sailor update` to re-sync template files, or `sailor init --force` to re-initialize (overwrites scaffold files; your .sail/keys/ and .sail/state/ are left in place)."
|
|
40872
40876
|
);
|
|
40873
40877
|
}
|
|
40878
|
+
const existingConfigPath = import_node_path8.default.join(dest, ".sail", "config.json");
|
|
40879
|
+
const previousConfig = import_node_fs9.default.existsSync(existingConfigPath) ? (() => {
|
|
40880
|
+
try {
|
|
40881
|
+
return JSON.parse(import_node_fs9.default.readFileSync(existingConfigPath, "utf-8"));
|
|
40882
|
+
} catch {
|
|
40883
|
+
return null;
|
|
40884
|
+
}
|
|
40885
|
+
})() : null;
|
|
40874
40886
|
copyDirSync(templateSrc, dest);
|
|
40875
40887
|
const pkgRoot = packageRoot();
|
|
40876
40888
|
const examplesPermSrc = import_node_path8.default.join(pkgRoot, "examples", "permissions");
|
|
@@ -40910,6 +40922,18 @@ Pass --force to scaffold into it anyway (existing files with the same name are o
|
|
|
40910
40922
|
}
|
|
40911
40923
|
scaffoldProjectWorkspace(dest, name, options);
|
|
40912
40924
|
scaffoldFoundryWorkspace(dest);
|
|
40925
|
+
const newMode = process.env.SAILOR_INSTALL_MODE === "docker" ? "docker" : "local";
|
|
40926
|
+
if (previousConfig?.installMode === "docker" && newMode === "local") {
|
|
40927
|
+
const prev = previousConfig.containerName ?? "agent";
|
|
40928
|
+
console.log(`
|
|
40929
|
+
Switched to local install. If the Docker container is still running:`);
|
|
40930
|
+
console.log(` docker stop ${prev}`);
|
|
40931
|
+
console.log(`You can restart it anytime with the standard docker run command.`);
|
|
40932
|
+
} else if (previousConfig?.installMode === "local" && newMode === "docker") {
|
|
40933
|
+
const containerName = process.env.SAILOR_CONTAINER_NAME ?? "agent";
|
|
40934
|
+
console.log(`
|
|
40935
|
+
Switched to Docker install (container: ${containerName}).`);
|
|
40936
|
+
}
|
|
40913
40937
|
printWelcome(
|
|
40914
40938
|
dest,
|
|
40915
40939
|
name,
|
|
@@ -41020,6 +41044,12 @@ Created ${name}/`);
|
|
|
41020
41044
|
"\u2551 If you skip this step, setup WILL break and you will have to \u2551",
|
|
41021
41045
|
"\u2551 restart. There are no shortcuts. \u2551",
|
|
41022
41046
|
"\u2551 \u2551",
|
|
41047
|
+
"\u2551 IF SAILOR IS RUNNING IN DOCKER: \u2551",
|
|
41048
|
+
"\u2551 \u2022 Read project files from your local filesystem \u2014 they are \u2551",
|
|
41049
|
+
"\u2551 shared via volume mount, do NOT use docker exec to read them. \u2551",
|
|
41050
|
+
"\u2551 \u2022 Prefix every sailor command with: \u2551",
|
|
41051
|
+
"\u2551 docker exec <containerName> sailor <command> \u2551",
|
|
41052
|
+
"\u2551 \u2551",
|
|
41023
41053
|
"\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D",
|
|
41024
41054
|
""
|
|
41025
41055
|
].join("\n"));
|
|
@@ -41073,6 +41103,39 @@ async function updateCommand() {
|
|
|
41073
41103
|
}
|
|
41074
41104
|
const added = [];
|
|
41075
41105
|
copyDirSyncIfMissing(templateSrc, dest, added);
|
|
41106
|
+
const configPath = import_node_path9.default.join(dest, ".sail", "config.json");
|
|
41107
|
+
try {
|
|
41108
|
+
const config = JSON.parse(import_node_fs10.default.readFileSync(configPath, "utf-8"));
|
|
41109
|
+
const newMode = process.env.SAILOR_INSTALL_MODE === "docker" ? "docker" : "local";
|
|
41110
|
+
const containerName = process.env.SAILOR_CONTAINER_NAME ?? "agent";
|
|
41111
|
+
if (config.installMode !== newMode) {
|
|
41112
|
+
const previousMode = config.installMode;
|
|
41113
|
+
const previousContainer = config.containerName;
|
|
41114
|
+
config.installMode = newMode;
|
|
41115
|
+
if (newMode === "docker") {
|
|
41116
|
+
config.containerName = containerName;
|
|
41117
|
+
} else {
|
|
41118
|
+
delete config.containerName;
|
|
41119
|
+
}
|
|
41120
|
+
import_node_fs10.default.writeFileSync(configPath, `${JSON.stringify(config, null, 2)}
|
|
41121
|
+
`, "utf-8");
|
|
41122
|
+
if (previousMode === "docker" && newMode === "local") {
|
|
41123
|
+
const prev = previousContainer ?? "agent";
|
|
41124
|
+
console.log(`
|
|
41125
|
+
Switched to local install. If the Docker container is still running:`);
|
|
41126
|
+
console.log(` docker stop ${prev}`);
|
|
41127
|
+
console.log(`You can restart it anytime with the standard docker run command.`);
|
|
41128
|
+
} else if (newMode === "docker") {
|
|
41129
|
+
console.log(`
|
|
41130
|
+
Switched to Docker install (container: ${containerName}).`);
|
|
41131
|
+
}
|
|
41132
|
+
} else if (newMode === "docker" && config.containerName !== containerName) {
|
|
41133
|
+
config.containerName = containerName;
|
|
41134
|
+
import_node_fs10.default.writeFileSync(configPath, `${JSON.stringify(config, null, 2)}
|
|
41135
|
+
`, "utf-8");
|
|
41136
|
+
}
|
|
41137
|
+
} catch {
|
|
41138
|
+
}
|
|
41076
41139
|
if (removed.length === 0 && updated.length === 0 && added.length === 0) {
|
|
41077
41140
|
console.log("Nothing to update.");
|
|
41078
41141
|
return;
|
|
@@ -45225,7 +45288,7 @@ async function uiCommand() {
|
|
|
45225
45288
|
const serverBundle = import_node_path16.default.resolve(distDir, "server.cjs");
|
|
45226
45289
|
const projectRoot = process.cwd();
|
|
45227
45290
|
const sailDir2 = import_node_path16.default.join(projectRoot, ".sail");
|
|
45228
|
-
const port = await findFreePort(projectPort(projectRoot));
|
|
45291
|
+
const port = await findFreePort(process.env.PORT ? Number(process.env.PORT) : projectPort(projectRoot));
|
|
45229
45292
|
if (!import_node_fs20.default.existsSync(serverBundle)) {
|
|
45230
45293
|
throw new Error(`Server bundle not found at ${serverBundle}. Re-run the sailor build.`);
|
|
45231
45294
|
}
|
|
@@ -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-
|
|
8
|
+
* Generated at : 2026-06-19T21:15:32.481Z
|
|
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-
|
|
8
|
+
* Generated at : 2026-06-19T21:15:32.481Z
|
|
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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BH2TcYm0.js → arrow-bottom-circle-Bi45LFFD.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{F as o}from"./core-
|
|
1
|
+
import{F as o}from"./core-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.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-DnTTITgJ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BmKpVmQo.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.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-BLwyu_UZ.js";import"./index-BmKpVmQo.js";import"./events-DuWTfKWm.js";import"./index.es-Cwe8eYYQ.js";import"./fallback-BQyFegq4.js";const e=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="16"
|
|
4
4
|
height="16"
|