@promethea-research/sundial 0.2.1 → 0.3.3
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 +33 -23
- package/dist/postinstall.js +1 -83
- package/dist/sundial.js +215 -3025
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sundial (`@promethea-research/sundial`)
|
|
2
2
|
|
|
3
|
-
**Sundial** is an agentic terminal harness and cognitive co-processor created by [Promethea Research](https://promethearesearch.com), powered by **Uchi**—Promethea Research's flagship cognitive model
|
|
3
|
+
**Sundial** is an agentic terminal harness and cognitive co-processor created by [Promethea Research](https://promethearesearch.com), powered by **Uchi 1**—Promethea Research's flagship cognitive model.
|
|
4
4
|
|
|
5
5
|
Sundial runs directly in your terminal, shares the same account, conversations, billing, and **Knowledge Graphs** as the [Sundial Web Workspace](https://sundial.promethearesearch.com) and Desktop App, and executes verified code edits and shell commands across Linux (`bash`), macOS (`zsh`), and Windows (`PowerShell` / `CMD`).
|
|
6
6
|
|
|
@@ -13,9 +13,15 @@ Sundial runs directly in your terminal, shares the same account, conversations,
|
|
|
13
13
|
Requires **Node.js 20+**:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
+
# Run directly with npx
|
|
17
|
+
npx @promethea-research/sundial
|
|
18
|
+
|
|
19
|
+
# Or install globally in your PATH
|
|
20
|
+
npm i -g @promethea-research/sundial
|
|
21
|
+
|
|
22
|
+
# Or install locally in a project (links ./node_modules/.bin/sundial)
|
|
16
23
|
npm i @promethea-research/sundial
|
|
17
24
|
```
|
|
18
|
-
*(Or globally with `npm i -g @promethea-research/sundial` — both register the `sundial` command in your terminal `PATH` automatically.)*
|
|
19
25
|
|
|
20
26
|
### 2. Launch & Sign In
|
|
21
27
|
|
|
@@ -62,16 +68,18 @@ sundial exec --turns <file.json> [folder] [options]
|
|
|
62
68
|
|
|
63
69
|
| Flag | Values / Format | Description |
|
|
64
70
|
| :--- | :--- | :--- |
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
71
|
+
| `-h, --help` | *(boolean)* | Print CLI usage, commands, flags, and environment variables, then exit. |
|
|
72
|
+
| `-v, --version` | *(boolean)* | Print the installed `@promethea-research/sundial` version and exit. |
|
|
73
|
+
| `-m, --model <id>` | `uchi` *(default)* | Select the model for the session (`uchi` is Uchi 1, the flagship; `uchi-1` names the same model). |
|
|
74
|
+
| `-e, --effort <tier>` | `low` \| `medium` \| `high` | Reasoning depth and compute allocation per turn. |
|
|
75
|
+
| `-a, --approvals <mode>` | `suggest` \| `auto-edit` \| `full-auto` | Approval gate policy for file edits and shell commands (`suggest` asks before edits/commands; `auto-edit` applies file edits automatically; `full-auto` runs edits and non-irreversible commands autonomously). |
|
|
76
|
+
| `-s, --sandbox <mode>` | `read-only` \| `workspace-write` | File-system write boundary (`read-only` prevents any file modifications; `workspace-write` restricts writes to the active project directory). |
|
|
77
|
+
| `-c, --code` | *(boolean, `exec` mode)* | Run Uchi's multi-step coding agent on the workspace (read, edit files, and run verification tests). |
|
|
78
|
+
| `--plan` | *(boolean, `exec` mode)* | Generate a step-by-step architectural plan before editing files. |
|
|
70
79
|
| `--turns <path>` | `file.json` *(`exec` mode)* | Execute multiple sequential turns from a JSON array of prompt strings (`["turn 1", "turn 2"]`). |
|
|
71
80
|
| `--json` | *(boolean, `exec` mode)* | Emit a single structured JSON object `{"replies": [...], "errors": [...]}` on `stdout`. |
|
|
72
81
|
| `--pace <N>` | Positive integer *(`exec` mode)* | Rate-limit scripted executions to at most `N` turns per minute. |
|
|
73
82
|
| `--server <url>` | URL | Override the Sundial backend endpoint (defaults to `https://sundial.promethearesearch.com` or `$PROMETHEA_URL`). |
|
|
74
|
-
| `--version` | *(boolean)* | Print the installed `@promethea-research/sundial` version and exit. |
|
|
75
83
|
|
|
76
84
|
---
|
|
77
85
|
|
|
@@ -83,7 +91,11 @@ Inside the `sundial` terminal UI, type `/` to open the interactive command autoc
|
|
|
83
91
|
| :--- | :--- |
|
|
84
92
|
| `/code <task>` | Run Uchi's autonomous coding agent on the current folder: plan, edit files, and run tests until they pass. |
|
|
85
93
|
| `/plan <task>` | Formulate a step-by-step architectural plan without modifying any files until you approve. |
|
|
86
|
-
| `/
|
|
94
|
+
| `/btw <question>` | Ask a side-channel question using active workspace/thread context without polluting main conversation history. |
|
|
95
|
+
| `/skills` | List active skills (`.sundial/skills/<name>/SKILL.md`, `.promethea/skills/<name>/SKILL.md`) and loaded instruction files. |
|
|
96
|
+
| `/obsidian [path]` | Sync an Obsidian Markdown vault (`.md` notes, `[[wikilinks]]`, `#tags`, frontmatter) directly into your Personal Knowledge Graph. |
|
|
97
|
+
| `/remote` | Pair this terminal session for remote control from the Sundial web or mobile workspace. |
|
|
98
|
+
| `/model` | Show the active model (`Uchi 1`, the flagship). |
|
|
87
99
|
| `/effort` | Choose reasoning effort tier (`low`, `medium`, or `high`). |
|
|
88
100
|
| `/approvals` | Set approval policy (`suggest`, `auto-edit`, or `full-auto`). |
|
|
89
101
|
| `/sandbox` | Set sandbox boundary (`read-only` or `workspace-write`). |
|
|
@@ -113,13 +125,14 @@ Inside the `sundial` terminal UI, type `/` to open the interactive command autoc
|
|
|
113
125
|
|
|
114
126
|
---
|
|
115
127
|
|
|
116
|
-
## Project Instructions (`PROMETHEA.md` / `
|
|
128
|
+
## Project Instructions (`PROMETHEA.md` / `UCHI.md` / `CLAUDE.md`) & Skills
|
|
117
129
|
|
|
118
|
-
Sundial automatically loads plain-Markdown instruction files from your repository so Uchi follows your build commands, coding conventions, and architectural rules on every turn. Files are merged from general to specific:
|
|
130
|
+
Sundial automatically loads plain-Markdown instruction files and custom skills from your repository so Uchi follows your build commands, coding conventions, and architectural rules on every turn. Files are merged from general to specific:
|
|
119
131
|
|
|
120
|
-
1. `~/.config/promethea/PROMETHEA.md` — Your personal global instructions across all projects.
|
|
121
|
-
2. `SUNDIAL.md`, `PROMETHEA.md`, `
|
|
122
|
-
3. `.promethea/PROMETHEA.md` — Checked-in workspace instructions.
|
|
132
|
+
1. `~/.config/promethea/PROMETHEA.md` and `~/.config/promethea/UCHI.md` — Your personal global instructions across all projects.
|
|
133
|
+
2. `SUNDIAL.md`, `PROMETHEA.md`, `UCHI.md`, `CLAUDE.md`, or `AGENTS.md` — Read from the Git repository root down to the current working directory.
|
|
134
|
+
3. `.promethea/PROMETHEA.md` and `.sundial/SUNDIAL.md` — Checked-in workspace instructions.
|
|
135
|
+
4. `.sundial/skills/<name>/SKILL.md` and `.promethea/skills/<name>/SKILL.md` — Modular skills loaded automatically into the session.
|
|
123
136
|
|
|
124
137
|
Run `/init` inside `sundial` to generate a `PROMETHEA.md` template in your current directory, or prefix any prompt with `# ` to append a rule automatically.
|
|
125
138
|
|
|
@@ -149,20 +162,17 @@ When Sundial starts, it initializes each configured MCP server over JSON-RPC std
|
|
|
149
162
|
## Configuration & Environment Variables
|
|
150
163
|
|
|
151
164
|
- **Config File Location:** `~/.config/promethea/sundial.json` (or `$XDG_CONFIG_HOME/promethea/sundial.json`, overridable via `$SUNDIAL_CONFIG_DIR`). Created with `0600` user-only permissions.
|
|
165
|
+
- **`PROMETHEA_TOKEN`:** Optional API or CLI bearer token for headless/CI authentication.
|
|
152
166
|
- **`PROMETHEA_URL`:** Optional environment variable to override the default server URL (`https://sundial.promethearesearch.com`).
|
|
167
|
+
- **`PROMETHEA_NO_AUTO_UPDATE`:** Set to `1` to disable background update checks.
|
|
153
168
|
|
|
154
169
|
---
|
|
155
170
|
|
|
156
|
-
## Uchi
|
|
157
|
-
|
|
158
|
-
Uchi achieves a **99.8% zero-shot mean across 48 industry and Stage 8 BCI benchmarks**:
|
|
171
|
+
## Uchi 1 Overview
|
|
159
172
|
|
|
160
|
-
|
|
161
|
-
- **100.0%** AIME & OSWorld
|
|
162
|
-
- **99.95%** FrontierMath
|
|
163
|
-
- **100.0%** Stage 8 Non-Invasive BCI Intent Decoding
|
|
173
|
+
Sundial is powered by **Uchi 1**, Promethea Research's proprietary reasoning model featuring multi-step hypothesis verification and an editable Personal Knowledge Graph.
|
|
164
174
|
|
|
165
|
-
Explore
|
|
175
|
+
Explore Uchi 1 capabilities at [sundial.promethearesearch.com/uchi](https://sundial.promethearesearch.com/uchi).
|
|
166
176
|
|
|
167
177
|
---
|
|
168
178
|
|
|
@@ -171,7 +181,7 @@ Explore the complete 48-benchmark breakdown at [sundial.promethearesearch.com/uc
|
|
|
171
181
|
- **Sundial Web Workspace:** [https://sundial.promethearesearch.com](https://sundial.promethearesearch.com)
|
|
172
182
|
- **CLI Documentation:** [https://sundial.promethearesearch.com/docs/cli](https://sundial.promethearesearch.com/docs/cli)
|
|
173
183
|
- **API Reference:** [https://sundial.promethearesearch.com/docs/api](https://sundial.promethearesearch.com/docs/api)
|
|
174
|
-
- **Uchi
|
|
184
|
+
- **Uchi 1 Capabilities:** [https://sundial.promethearesearch.com/uchi](https://sundial.promethearesearch.com/uchi)
|
|
175
185
|
- **Pricing & Plans:** [https://sundial.promethearesearch.com/pricing](https://sundial.promethearesearch.com/pricing)
|
|
176
186
|
- **Promethea Research:** [https://promethearesearch.com](https://promethearesearch.com)
|
|
177
187
|
- **Security & Privacy:** [https://sundial.promethearesearch.com/security](https://sundial.promethearesearch.com/security)
|
package/dist/postinstall.js
CHANGED
|
@@ -1,84 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import fs from "node:fs";
|
|
4
|
-
import os from "node:os";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { spawnSync } from "node:child_process";
|
|
7
|
-
import { fileURLToPath } from "node:url";
|
|
8
|
-
|
|
9
|
-
try {
|
|
10
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
11
|
-
const entry = path.resolve(__dirname, "sundial.js");
|
|
12
|
-
try { fs.chmodSync(entry, 0o755); } catch {}
|
|
13
|
-
|
|
14
|
-
const home = os.homedir();
|
|
15
|
-
const pathDirs = (process.env.PATH || "")
|
|
16
|
-
.split(path.delimiter)
|
|
17
|
-
.map((d) => d.trim())
|
|
18
|
-
.filter((d) => d && !d.includes("node_modules"));
|
|
19
|
-
|
|
20
|
-
if (process.platform === "win32") {
|
|
21
|
-
const cmdScript = `@echo off\r\nnode "${entry}" %*\r\n`;
|
|
22
|
-
const shScript = `#!/usr/bin/env sh\nexec node "${entry.replace(/\\/g, "/")}" "$@"\n`;
|
|
23
|
-
const winCandidates = [
|
|
24
|
-
process.env.APPDATA ? path.join(process.env.APPDATA, "npm") : "",
|
|
25
|
-
process.env.LOCALAPPDATA ? path.join(process.env.LOCALAPPDATA, "Microsoft", "WindowsApps") : "",
|
|
26
|
-
...pathDirs,
|
|
27
|
-
].filter(Boolean);
|
|
28
|
-
for (const dir of new Set(winCandidates)) {
|
|
29
|
-
try {
|
|
30
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
31
|
-
fs.writeFileSync(path.join(dir, "sundial.cmd"), cmdScript, "utf8");
|
|
32
|
-
fs.writeFileSync(path.join(dir, "sundial"), shScript, { mode: 0o755 });
|
|
33
|
-
} catch {}
|
|
34
|
-
}
|
|
35
|
-
} else {
|
|
36
|
-
const shScript = `#!/usr/bin/env sh\nexec "${process.execPath}" "${entry}" "$@"\n`;
|
|
37
|
-
const localBin = path.join(home, ".local", "bin");
|
|
38
|
-
const localBinTarget = path.join(localBin, "sundial");
|
|
39
|
-
try {
|
|
40
|
-
fs.mkdirSync(localBin, { recursive: true });
|
|
41
|
-
fs.writeFileSync(localBinTarget, shScript, { mode: 0o755 });
|
|
42
|
-
fs.chmodSync(localBinTarget, 0o755);
|
|
43
|
-
} catch {}
|
|
44
|
-
|
|
45
|
-
const candidates = new Set([
|
|
46
|
-
path.dirname(process.execPath),
|
|
47
|
-
localBin,
|
|
48
|
-
...pathDirs,
|
|
49
|
-
]);
|
|
50
|
-
|
|
51
|
-
let installedInPath = false;
|
|
52
|
-
for (const dir of candidates) {
|
|
53
|
-
if (!dir) continue;
|
|
54
|
-
try {
|
|
55
|
-
if (dir.startsWith(home)) {
|
|
56
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
57
|
-
}
|
|
58
|
-
const target = path.join(dir, "sundial");
|
|
59
|
-
fs.writeFileSync(target, shScript, { mode: 0o755 });
|
|
60
|
-
fs.chmodSync(target, 0o755);
|
|
61
|
-
if (pathDirs.includes(dir)) installedInPath = true;
|
|
62
|
-
} catch {}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (!installedInPath && pathDirs.includes("/usr/local/bin") && fs.existsSync(localBinTarget)) {
|
|
66
|
-
try {
|
|
67
|
-
spawnSync("sudo", ["-n", "cp", "-f", localBinTarget, "/usr/local/bin/sundial"], { stdio: "ignore", timeout: 2000 });
|
|
68
|
-
spawnSync("sudo", ["-n", "chmod", "0755", "/usr/local/bin/sundial"], { stdio: "ignore", timeout: 2000 });
|
|
69
|
-
} catch {}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
for (const rc of [".bashrc", ".zshrc", ".profile"]) {
|
|
73
|
-
const rcPath = path.join(home, rc);
|
|
74
|
-
try {
|
|
75
|
-
if (fs.existsSync(rcPath)) {
|
|
76
|
-
const content = fs.readFileSync(rcPath, "utf8");
|
|
77
|
-
if (!content.includes(".local/bin")) {
|
|
78
|
-
fs.appendFileSync(rcPath, '\nexport PATH="$HOME/.local/bin:$PATH"\n');
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
} catch {}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
} catch {}
|
|
2
|
+
import m from"node:fs";import o from"node:path";import{fileURLToPath as t}from"node:url";try{const r=o.dirname(t(import.meta.url));m.chmodSync(o.resolve(r,"sundial.js"),493)}catch{}
|