@niroai/niro 0.3.3 → 0.3.4

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
@@ -23,8 +23,8 @@ niro new-temp-project # run once in the repo folder
23
23
  ```
24
24
 
25
25
  This creates your own private copy of the project that follows your branch and your
26
- uncommitted edits, live (keep `niro watch` running). Teammates are not affected and cannot
27
- see your copy. Switching branches needs nothing: Niro answers from your copy on the new
26
+ uncommitted edits, live (keep `niro watch` running). Your original project is not changed.
27
+ Switching branches needs nothing: Niro answers from your copy on the new
28
28
  branch, and from the matching indexed project on branches you already cover. When your branch
29
29
  is merged:
30
30
 
@@ -41,8 +41,8 @@ It creates your own private copy of the project inside Niro.
41
41
 
42
42
  - The copy follows your branch, including changes you have not committed.
43
43
  - Every save updates the copy, as long as "niro watch" is running.
44
- - Teammates are not affected. They keep using the shared project.
45
- - Nobody can see your copy. Not even teammates on your account.
44
+ - Your original project is not changed. It keeps its own index.
45
+ - The copy is fully separate and disposable.
46
46
 
47
47
  From then on, answers come from YOUR code.
48
48
 
@@ -72,8 +72,9 @@ of your changes together.
72
72
 
73
73
  ## Common questions
74
74
 
75
- Can teammates see my unfinished code?
76
- No. Your copy is private to you.
75
+ Does this change my original project?
76
+ No. The original project and its index stay exactly as they were.
77
+ The copy is separate; deleting it later loses nothing.
77
78
 
78
79
  Does this work with my AI assistant and my git host?
79
80
  Yes. Any assistant that supports MCP (Claude Code, Cursor, Windsurf,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niroai/niro",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Niro — one package: the niro CLI plus the Niro MCP server (code intelligence for AI coding assistants).",
5
5
  "keywords": [
6
6
  "niro",
@@ -171,7 +171,7 @@ async function init(pathArg, opts = {}) {
171
171
  }
172
172
  } else if (otherBranchOnly.length) {
173
173
  // Known repo, but you're on a branch Niro hasn't indexed → the honest answer is "sandbox it",
174
- // not "already indexed". A sandbox indexes your branch privately (teammates unaffected).
174
+ // not "already indexed". A sandbox indexes your branch in a separate copy (original untouched).
175
175
  const where = otherBranchOnly
176
176
  .map((p) => `"${p.alias || p.project_id}"${p.indexed_branch ? ` (indexed on ${color.cyan(p.indexed_branch)})` : ""}`)
177
177
  .join(", ");
@@ -179,7 +179,7 @@ async function init(pathArg, opts = {}) {
179
179
  console.log(`\n${color.green("✓")} This repo is part of: ${where}.`);
180
180
  console.log(` But ${yourBranch} isn't indexed by Niro — answers would reflect the indexed branch, not your local work.`);
181
181
  console.log(` ${color.cyan("Run `niro sandbox` here")} to index your branch privately ` +
182
- color.dim("(teammates unaffected; `niro discard` to undo)."));
182
+ color.dim("(original project unchanged; `niro discard` to undo)."));
183
183
  if (!opts.addTo) {
184
184
  if (prompt.isNonInteractive()) {
185
185
  console.log(color.dim(
@@ -72,7 +72,7 @@ async function takeover(pathArg, opts = {}) {
72
72
  }
73
73
 
74
74
  console.log(`\n Creating a temporary private project of ${color.bold(source.alias || source.project_id)}...`);
75
- console.log(color.dim(" Your teammates' view of the project is not affected."));
75
+ console.log(color.dim(" Your original project is not changed."));
76
76
 
77
77
  // 2. Create-or-extend server-side (ADR-016). If you already have a temporary project of this project,
78
78
  // the backend EXTENDS it — adds this repo to the same copy — instead of minting a second one, so
package/src/index.js CHANGED
@@ -157,7 +157,7 @@ function main() {
157
157
  program
158
158
  .command("new-temp-project [path]")
159
159
  .aliases(["sandbox", "takeover"])
160
- .description("Create a temporary private project for this folder that reflects your branch + local edits, so Niro's answers match your work (teammates unaffected). Remove it with `niro discard-temp-project`.")
160
+ .description("Create a temporary private project for this folder that reflects your branch + local edits, so Niro's answers match your work (your original project is unchanged). Remove it with `niro discard-temp-project`.")
161
161
  .option("--project <id_or_alias>", "which project to base the temporary project on when the repo maps to several")
162
162
  .action((pathArg, opts) => run(async () => {
163
163
  const cmd = require("./commands/takeover");
package/src/mcp/setup.js CHANGED
@@ -840,7 +840,7 @@ lost"). When the target of the question is a repo other than the current one:
840
840
 
841
841
  Niro indexes a repo at ONE branch (the team's tracked branch). Identity is (git url, branch): a graph
842
842
  built on \`main\` does NOT reflect your feature branch or uncommitted edits. A **temporary project** is a private,
843
- temporary index of your branch (\`niro new-temp-project\` to create, \`niro discard-temp-project\` to remove — teammates unaffected).
843
+ temporary index of your branch (\`niro new-temp-project\` to create, \`niro discard-temp-project\` to remove — the original project is unchanged).
844
844
 
845
845
  - **Obey \`🔔 Niro ACTION\` notices.** When a tool result appends "the coding assistant should run
846
846
  \`niro new-temp-project\` / \`niro discard-temp-project\`", run that command with the Bash tool (cwd = that