@alexwkleung/reika 0.14.0 → 0.16.0

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
@@ -96,8 +96,8 @@ Set these in your shell, a project `.env`, or `~/.config/reika/.env` (in that or
96
96
  | --------- | ---------------------------------------------------------------------------- |
97
97
  | `agent` | The default: the model reads, edits, and runs commands |
98
98
  | `plan` | Read-only exploration that ends in a written plan; `/implement` runs it |
99
- | `vibe` | Plans first, then implements the plan, on every prompt |
100
99
  | `minimal` | Shell only, with no repo map or project context loaded upfront |
100
+ | `vibe` | Plans first, then implements the plan, on every prompt |
101
101
  | `grind` | Agent turns run a fixed, careful procedure: define done, test, review |
102
102
  | `chat` | Plain conversation with a separate history; web tools only |
103
103
  | `shell` | Your input runs as a shell command, and the output joins the agent's context |
@@ -108,7 +108,7 @@ Set these in your shell, a project `.env`, or `~/.config/reika/.env` (in that or
108
108
 
109
109
  - **Approvals** default to `safe`: ordinary edits and commands run on their own, but a dangerous command (`rm -rf`, a force push, a package install, `curl`) or a write outside the project still asks you first. `bypass` can only be set at launch, never mid-session.
110
110
  - **Sandbox** (macOS, on by default): model-chosen shell commands can write only inside the project, temp, and cache directories, and have no network apart from loopback and read-only `git`/`gh`. A command you explicitly approve runs unsandboxed. `REIKA_SANDBOX=0` turns it off.
111
- - **No telemetry.** Your code goes to the model server you configure and nowhere else: with a local server it never leaves your machine, and with a cloud API it goes to that provider. The only other requests are the web tools (when the model uses one or you paste a link), a download of the public models.dev catalog to look up context limits (hosted endpoints only, and never with your data), and whatever the MCP servers you configure do on their own.
111
+ - **No telemetry.** Your code goes to the model server you configure and nowhere else: with a local server it never leaves your machine, and with a cloud API it goes to that provider. The only other requests are the web tools (when the model uses one or you paste a link), a download of the public models.dev catalog to look up context limits (hosted endpoints only, and never with your data), and whatever the MCP servers you configure do on their own. [Privacy and data](docs/privacy.md) lists every request and every file Reika writes.
112
112
 
113
113
  Found a way around one of these? Report it privately; see [SECURITY.md](SECURITY.md).
114
114
 
@@ -127,7 +127,9 @@ The same pages are on the website, [reikacode.com](https://reikacode.com).
127
127
  | [Tested models](docs/models.md) | Local quants and APIs Reika has been run against |
128
128
  | [Findings](docs/findings.md) | The measured record: what broke, what held, and how each number was obtained |
129
129
  | [Platforms](docs/platforms.md) | Requirements, running on a weak machine, what differs on Linux and Windows |
130
- | [Architecture and caveats](docs/architecture.md) | How the harness works, and known limitations |
130
+ | [Limitations](docs/limitations.md) | Where a model still struggles, what helps, and what the harness can't do |
131
+ | [Architecture and caveats](docs/architecture.md) | How the harness works |
132
+ | [Privacy and data](docs/privacy.md) | Every network request Reika makes, every file it writes, and how to turn each one off |
131
133
  | [Contributing](CONTRIBUTING.md) | Scripts, design philosophy, a pointer to `AGENTS.md`, and external contributor guidelines |
132
134
  | [Changelog](CHANGELOG.md) | What changed in each release |
133
135
 
package/README.zh-CN.md CHANGED
@@ -96,8 +96,8 @@ cd your-project && reika
96
96
  | --------- | -------------------------------------------------------- |
97
97
  | `agent` | 默认模式:模型读取、编辑并运行命令 |
98
98
  | `plan` | 只读探索,最终产出一份写好的计划;`/implement` 执行它 |
99
- | `vibe` | 每次提示都先规划,再实现该计划 |
100
99
  | `minimal` | 仅 shell,不预先加载仓库地图和项目上下文 |
100
+ | `vibe` | 每次提示都先规划,再实现该计划 |
101
101
  | `grind` | 代理轮次按固定而谨慎的流程运行:定义完成标准、测试、复查 |
102
102
  | `chat` | 与主历史分开的纯对话;只有网络工具 |
103
103
  | `shell` | 你的输入作为 shell 命令运行,输出并入代理的上下文 |
@@ -125,6 +125,7 @@ cd your-project && reika
125
125
  | [测试过的模型](docs/zh/models.md) | Reika 实际跑过的本地量化版本和 API |
126
126
  | [测量结果](docs/findings.md) | 实测记录:什么坏了、什么撑住了,以及每个数字是怎么得到的 |
127
127
  | [平台](docs/zh/platforms.md) | 运行要求、在弱机器上运行、Linux 和 Windows 上的差异 |
128
+ | [局限(英文)](docs/limitations.md) | 模型仍会遇到困难的地方、什么有帮助,以及框架做不到的事 |
128
129
  | [架构与注意事项](docs/zh/architecture.md) | 框架如何工作,以及已知限制 |
129
130
  | [贡献](CONTRIBUTING.md) | 脚本、设计理念、`AGENTS.md` 指引,以及外部贡献者指南 |
130
131
  | [更新日志](CHANGELOG.md)(英文) | 每个版本的变更 |
@@ -4,7 +4,7 @@ import {
4
4
  modeSwitchProfile,
5
5
  resolveDefaultMode,
6
6
  setAtLaunch
7
- } from "./chunk-YCKCJJ3W.js";
7
+ } from "./chunk-B5UA4G44.js";
8
8
 
9
9
  // src/laststate.ts
10
10
  import { mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
@@ -70,24 +70,24 @@ import {
70
70
  turnTools,
71
71
  urlsToConfirm,
72
72
  writeSession
73
- } from "./chunk-LNUPGYM7.js";
73
+ } from "./chunk-UKVR4EVN.js";
74
74
  import {
75
75
  spillResult
76
76
  } from "./chunk-S4S44BI2.js";
77
77
  import {
78
78
  persistableMode,
79
79
  startProfiles
80
- } from "./chunk-JTRHYW55.js";
80
+ } from "./chunk-23P27S5A.js";
81
81
  import {
82
82
  inheritProfile,
83
83
  isOffline,
84
84
  modeSwitchProfile,
85
85
  resolveProfile
86
- } from "./chunk-YCKCJJ3W.js";
86
+ } from "./chunk-B5UA4G44.js";
87
87
  import {
88
88
  debugLog,
89
89
  processSessionStem
90
- } from "./chunk-OSLX5BGM.js";
90
+ } from "./chunk-VM3LKHIQ.js";
91
91
  import {
92
92
  __commonJS,
93
93
  __require
@@ -658,7 +658,7 @@ function helpText(keys = TUI_HELP_KEYS) {
658
658
  " /<server>:<tool> call an MCP tool directly (JSON args, or the bare string for a one-arg tool)",
659
659
  " /search <query> search the web: the model runs one search and answers from the results",
660
660
  " /exit, /quit exit reika (prints summary)",
661
- " @<path> in agent mode, inline a file as context",
661
+ " @<path> outside shell mode, inline a file as context",
662
662
  ...keys
663
663
  ].join("\n");
664
664
  }
@@ -1233,7 +1233,7 @@ function createController(opts) {
1233
1233
  let prTimer = null;
1234
1234
  const checkPr = async () => {
1235
1235
  const s = session;
1236
- if (!s) return;
1236
+ if (!s || s.getSnapshot().config.prBadge === false) return;
1237
1237
  const next = await resolvePr(s.bundle.cwd, Date.now());
1238
1238
  if (next !== snapshot.pr) set({ pr: next });
1239
1239
  };
@@ -3,7 +3,7 @@ const require = __reikaCreateRequire(import.meta.url);
3
3
  import {
4
4
  API_USER_AGENT,
5
5
  debugLog
6
- } from "./chunk-OSLX5BGM.js";
6
+ } from "./chunk-VM3LKHIQ.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __require,
@@ -833,7 +833,11 @@ var PROJECT_ENV_DENIED = /* @__PURE__ */ new Set([
833
833
  "REIKA_URL_GROUNDING",
834
834
  "REIKA_CDP_SEARCH",
835
835
  "REIKA_CDP_PORT",
836
- "REIKA_DEBUG_FILE"
836
+ "REIKA_DEBUG_FILE",
837
+ // A program reika runs, a profile (so a server) a mode's turns go to, and a file path to write.
838
+ "REIKA_CHROME_PATH",
839
+ "REIKA_MODE_MODELS",
840
+ "REIKA_SPILL_STATS_FILE"
837
841
  ]);
838
842
  function isDeniedFromProjectEnv(key) {
839
843
  return PROJECT_ENV_DENIED.has(key) || /_(URL|API_KEY)$/.test(key);
@@ -949,6 +953,7 @@ function loadConfig() {
949
953
  // Per-project session auto-save for /resume (#1). Default on; `0` stops reika writing
950
954
  // conversations to disk at all, which is the one reason to want it off.
951
955
  autosave: process.env.REIKA_AUTOSAVE !== "0",
956
+ prBadge: process.env.REIKA_PR_BADGE !== "0",
952
957
  // #827: REIKA_NOTE_SLOT=tool|user forces the slot instead, checked where the probe would run.
953
958
  noteSlotProbe: true,
954
959
  // Rotating garden words on the busy indicator (#500). Default on; `0` keeps the plain