@dev.sail.money/sailor 0.0.2-34 → 0.0.2-35
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
CHANGED
|
@@ -71,13 +71,24 @@ Run `npx sailor init my-agent`, open the scaffolded folder in Claude Code, Curso
|
|
|
71
71
|
|
|
72
72
|
### Start a new agent project (recommended)
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
Create a folder, step into it, then install and init:
|
|
75
75
|
|
|
76
|
-
```
|
|
77
|
-
|
|
76
|
+
```bash
|
|
77
|
+
# bash / zsh / macOS
|
|
78
|
+
mkdir my-agent && cd my-agent && npm i @sail.money/sailor && npx sailor init
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
```powershell
|
|
82
|
+
# PowerShell (Windows)
|
|
83
|
+
mkdir my-agent ; cd my-agent ; npm i @sail.money/sailor ; npx sailor init
|
|
78
84
|
```
|
|
79
85
|
|
|
80
|
-
Then
|
|
86
|
+
Then open the folder in your AI coding assistant and say **"start"**.
|
|
87
|
+
|
|
88
|
+
> **npx shortcut** — skips the explicit install; npm downloads sailor on the fly:
|
|
89
|
+
> ```sh
|
|
90
|
+
> mkdir my-agent && cd my-agent && npx sailor init
|
|
91
|
+
> ```
|
|
81
92
|
|
|
82
93
|
### Global CLI (for direct sailor commands)
|
|
83
94
|
|
|
@@ -100,8 +111,13 @@ Prerequisites:
|
|
|
100
111
|
### Recommended — assistant-driven
|
|
101
112
|
|
|
102
113
|
```bash
|
|
103
|
-
|
|
104
|
-
npm install
|
|
114
|
+
# bash / zsh / macOS
|
|
115
|
+
mkdir my-agent && cd my-agent && npm i @sail.money/sailor && npx sailor init && npm install
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```powershell
|
|
119
|
+
# PowerShell (Windows)
|
|
120
|
+
mkdir my-agent ; cd my-agent ; npm i @sail.money/sailor ; npx sailor init ; npm install
|
|
105
121
|
```
|
|
106
122
|
|
|
107
123
|
Open this folder in Claude Code, Cursor, Codex, or any AI coding assistant and say **"start"**. The scaffolded `AGENTS.md` guides the assistant through all five stages — SMA deployment, strategy definition, mandate authoring, running, and automation. No manual steps required.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev.sail.money/sailor",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-35",
|
|
4
4
|
"description": "Operator toolkit for Sail Protocol",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sailor": "packages/cli/dist/index.cjs"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"test": "pnpm --filter sailor-ui test",
|
|
29
29
|
"test:ui": "pnpm --filter sailor-ui test:ui",
|
|
30
30
|
"link:cli": "pnpm link --global",
|
|
31
|
-
"postinstall": "node scripts/postinstall.js",
|
|
32
31
|
"typecheck": "pnpm --filter @sail/sdk build && pnpm -r typecheck",
|
|
33
32
|
"docs:check": "node scripts/check-docs.mjs",
|
|
34
33
|
"init:check": "node scripts/check-init.mjs",
|
|
@@ -40834,7 +40834,30 @@ function printWelcome(dest, name, inPlace, _hasRpc, freshInit = false) {
|
|
|
40834
40834
|
}
|
|
40835
40835
|
if (!inPlace) console.log(`
|
|
40836
40836
|
Created ${name}/`);
|
|
40837
|
-
console.log(
|
|
40837
|
+
console.log([
|
|
40838
|
+
"",
|
|
40839
|
+
"\u2554\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\u2557",
|
|
40840
|
+
"\u2551 !! AI AGENT \u2014 MANDATORY ACTION REQUIRED BEFORE CONTINUING !! \u2551",
|
|
40841
|
+
"\u2560\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\u2563",
|
|
40842
|
+
"\u2551 \u2551",
|
|
40843
|
+
"\u2551 YOU MUST STOP AND READ AGENTS.md BEFORE DOING ANYTHING ELSE. \u2551",
|
|
40844
|
+
"\u2551 \u2551",
|
|
40845
|
+
"\u2551 DO NOT: \u2551",
|
|
40846
|
+
"\u2551 \u2022 respond to the user yet \u2551",
|
|
40847
|
+
"\u2551 \u2022 run any sailor commands \u2551",
|
|
40848
|
+
"\u2551 \u2022 assume you know what to do next \u2551",
|
|
40849
|
+
"\u2551 \u2551",
|
|
40850
|
+
"\u2551 DO THIS FIRST: \u2551",
|
|
40851
|
+
"\u2551 1. Read AGENTS.md in the project root (FULL FILE, not a skim) \u2551",
|
|
40852
|
+
"\u2551 2. Complete every step listed under Stage 1 \u2014 Onboarding \u2551",
|
|
40853
|
+
'\u2551 3. Confirm to the user: "I have read AGENTS.md and am ready." \u2551',
|
|
40854
|
+
"\u2551 \u2551",
|
|
40855
|
+
"\u2551 If you skip this step, setup WILL break and you will have to \u2551",
|
|
40856
|
+
"\u2551 restart. There are no shortcuts. \u2551",
|
|
40857
|
+
"\u2551 \u2551",
|
|
40858
|
+
"\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",
|
|
40859
|
+
""
|
|
40860
|
+
].join("\n"));
|
|
40838
40861
|
}
|
|
40839
40862
|
|
|
40840
40863
|
// src/commands/keys.ts
|
|
@@ -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-11T19:02:01.807Z
|
|
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-11T19:02:01.807Z
|
|
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";
|
package/scripts/postinstall.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
/**
|
|
3
|
-
* Post-install script for the Sailor package.
|
|
4
|
-
*
|
|
5
|
-
* Runs automatically after `npm install` / `pnpm add`. Does two things:
|
|
6
|
-
* 1. sailor init — scaffold the .sail/ workspace (skipped if already done)
|
|
7
|
-
* 2. Print the one-line handoff banner directing the user to their AI assistant
|
|
8
|
-
*
|
|
9
|
-
* The UI and browser launch that previously ran here have been removed.
|
|
10
|
-
* The chat (AGENTS.md) owns the welcome — the terminal just directs traffic.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
"use strict";
|
|
14
|
-
|
|
15
|
-
const fs = require("node:fs");
|
|
16
|
-
const path = require("node:path");
|
|
17
|
-
const { execFileSync } = require("node:child_process");
|
|
18
|
-
|
|
19
|
-
// Directory where the user ran `npm install` / `pnpm add`
|
|
20
|
-
const initCwd = process.env.INIT_CWD || process.cwd();
|
|
21
|
-
const TAG = "[sailor]";
|
|
22
|
-
|
|
23
|
-
// ── Skip conditions ──────────────────────────────────────────────────────────
|
|
24
|
-
|
|
25
|
-
// Never run inside the Sailor monorepo itself
|
|
26
|
-
if (fs.existsSync(path.join(initCwd, "pnpm-workspace.yaml"))) process.exit(0);
|
|
27
|
-
|
|
28
|
-
// Opt-out env var
|
|
29
|
-
if (process.env.SAILOR_SKIP_INIT === "1") process.exit(0);
|
|
30
|
-
|
|
31
|
-
const cliBundle = path.join(__dirname, "..", "packages", "cli", "dist", "index.cjs");
|
|
32
|
-
|
|
33
|
-
if (!fs.existsSync(cliBundle)) {
|
|
34
|
-
console.warn(`${TAG} CLI bundle not found — skipping postinstall.`);
|
|
35
|
-
process.exit(0);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// ── Step 1: scaffold — run sailor init if not already done ───────────────────
|
|
39
|
-
|
|
40
|
-
const configExists = fs.existsSync(path.join(initCwd, ".sail", "config.json"));
|
|
41
|
-
|
|
42
|
-
if (!configExists) {
|
|
43
|
-
try {
|
|
44
|
-
execFileSync(process.execPath, [cliBundle, "init"], {
|
|
45
|
-
cwd: initCwd,
|
|
46
|
-
stdio: "inherit",
|
|
47
|
-
});
|
|
48
|
-
} catch {
|
|
49
|
-
// sailor init failed or was interrupted — user can run it manually
|
|
50
|
-
console.warn(`${TAG} sailor init exited with an error. Run \`sailor init\` manually to complete setup.`);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// ── Done — direct the user to their AI assistant ─────────────────────────────
|
|
55
|
-
|
|
56
|
-
console.log("\nYour Sail agent project is ready. Open your AI coding assistant in this folder and say start.");
|