@promethea-research/sundial 0.2.3 → 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 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 (**99.8% zero-shot mean across 48 industry and Non-Invasive BCI benchmarks**).
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
- | `--model <id>` | `uchi` *(default)* | Select the model for the session (`uchi` is Promethea Research's flagship model). |
66
- | `--effort <tier>` | `low` \| `medium` \| `high` | Reasoning depth and compute allocation per turn. |
67
- | `--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 and asks before shell commands; `full-auto` runs edits and sandboxed commands autonomously). |
68
- | `--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). |
69
- | `--code` | *(boolean, `exec` mode)* | Run Uchi's multi-step coding agent on the workspace (plan, edit files, and run verification tests). |
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
 
@@ -87,7 +95,7 @@ Inside the `sundial` terminal UI, type `/` to open the interactive command autoc
87
95
  | `/skills` | List active skills (`.sundial/skills/<name>/SKILL.md`, `.promethea/skills/<name>/SKILL.md`) and loaded instruction files. |
88
96
  | `/obsidian [path]` | Sync an Obsidian Markdown vault (`.md` notes, `[[wikilinks]]`, `#tags`, frontmatter) directly into your Personal Knowledge Graph. |
89
97
  | `/remote` | Pair this terminal session for remote control from the Sundial web or mobile workspace. |
90
- | `/model` | Switch the active model (`Uchi` is the flagship model). |
98
+ | `/model` | Show the active model (`Uchi 1`, the flagship). |
91
99
  | `/effort` | Choose reasoning effort tier (`low`, `medium`, or `high`). |
92
100
  | `/approvals` | Set approval policy (`suggest`, `auto-edit`, or `full-auto`). |
93
101
  | `/sandbox` | Set sandbox boundary (`read-only` or `workspace-write`). |
@@ -154,20 +162,17 @@ When Sundial starts, it initializes each configured MCP server over JSON-RPC std
154
162
  ## Configuration & Environment Variables
155
163
 
156
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.
157
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.
158
168
 
159
169
  ---
160
170
 
161
- ## Uchi Flagship Benchmark Highlights
162
-
163
- Uchi achieves a **99.8% zero-shot mean across 48 industry and Non-Invasive BCI benchmarks**:
171
+ ## Uchi 1 Overview
164
172
 
165
- - **100.0%** SWE-bench Verified & GPQA Diamond
166
- - **100.0%** AIME & OSWorld
167
- - **99.95%** FrontierMath
168
- - **100.0%** 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.
169
174
 
170
- Explore the complete 48-benchmark breakdown at [sundial.promethearesearch.com/uchi](https://sundial.promethearesearch.com/uchi).
175
+ Explore Uchi 1 capabilities at [sundial.promethearesearch.com/uchi](https://sundial.promethearesearch.com/uchi).
171
176
 
172
177
  ---
173
178
 
@@ -176,7 +181,7 @@ Explore the complete 48-benchmark breakdown at [sundial.promethearesearch.com/uc
176
181
  - **Sundial Web Workspace:** [https://sundial.promethearesearch.com](https://sundial.promethearesearch.com)
177
182
  - **CLI Documentation:** [https://sundial.promethearesearch.com/docs/cli](https://sundial.promethearesearch.com/docs/cli)
178
183
  - **API Reference:** [https://sundial.promethearesearch.com/docs/api](https://sundial.promethearesearch.com/docs/api)
179
- - **Uchi Model & Benchmarks:** [https://sundial.promethearesearch.com/uchi](https://sundial.promethearesearch.com/uchi)
184
+ - **Uchi 1 Capabilities:** [https://sundial.promethearesearch.com/uchi](https://sundial.promethearesearch.com/uchi)
180
185
  - **Pricing & Plans:** [https://sundial.promethearesearch.com/pricing](https://sundial.promethearesearch.com/pricing)
181
186
  - **Promethea Research:** [https://promethearesearch.com](https://promethearesearch.com)
182
187
  - **Security & Privacy:** [https://sundial.promethearesearch.com/security](https://sundial.promethearesearch.com/security)
@@ -1,84 +1,2 @@
1
1
  #!/usr/bin/env node
2
- // Ensures `sundial` is runnable directly in the terminal even after `npm i @promethea-research/sundial` (without -g).
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{}