@mindstudio-ai/remy 0.1.204 → 0.1.206

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/dist/headless.js CHANGED
@@ -6894,7 +6894,11 @@ async function runTurn(params) {
6894
6894
  });
6895
6895
  break;
6896
6896
  case "error":
6897
- onEvent({ type: "error", error: friendlyError(event.error) });
6897
+ onEvent({
6898
+ type: "error",
6899
+ error: friendlyError(event.error),
6900
+ ...event.code ? { code: event.code } : {}
6901
+ });
6898
6902
  return;
6899
6903
  }
6900
6904
  }
@@ -7873,7 +7877,11 @@ var HeadlessSession = class {
7873
7877
  );
7874
7878
  return;
7875
7879
  case "error":
7876
- this.emit("error", { error: e.error }, rid);
7880
+ this.emit(
7881
+ "error",
7882
+ { error: e.error, ...e.code ? { code: e.code } : {} },
7883
+ rid
7884
+ );
7877
7885
  return;
7878
7886
  }
7879
7887
  };
package/dist/index.js CHANGED
@@ -7569,7 +7569,11 @@ async function runTurn(params) {
7569
7569
  });
7570
7570
  break;
7571
7571
  case "error":
7572
- onEvent({ type: "error", error: friendlyError(event.error) });
7572
+ onEvent({
7573
+ type: "error",
7574
+ error: friendlyError(event.error),
7575
+ ...event.code ? { code: event.code } : {}
7576
+ });
7573
7577
  return;
7574
7578
  }
7575
7579
  }
@@ -8699,7 +8703,11 @@ var init_headless = __esm({
8699
8703
  );
8700
8704
  return;
8701
8705
  case "error":
8702
- this.emit("error", { error: e.error }, rid);
8706
+ this.emit(
8707
+ "error",
8708
+ { error: e.error, ...e.code ? { code: e.code } : {} },
8709
+ rid
8710
+ );
8703
8711
  return;
8704
8712
  }
8705
8713
  };
@@ -42,11 +42,13 @@ The opposite failure is bleaching copy into flat, choppy, personality-free mush
42
42
 
43
43
  ## How to respond
44
44
 
45
- Before you hand anything back, read it cold, as someone seeing it for the first time: can you scan it once and get the point? Does every line connect and say something real? If not, it isn't done.
45
+ Before you hand anything back, read it cold, as someone seeing it for the first time: can you scan it once and get the point? Does every line connect and say something real? Or is it a bunch of hot air, and you walk away feeling like you obviously just read something but actually have no idea if it said anything meaningful or substanatial at all?
46
46
 
47
- Return the rewritten copy, ready to drop in. Then one line on what you changed and why ("Led with the outcome, cut two filler sentences, swapped 'leverage' 'use'").
47
+ Think about what the purpose of the text is - what it's trying to communicate, who it's speaking to, why it exists to begin with - and think about what would make it more clear, impactful, and effective in its purpose.
48
48
 
49
- If it's already strong, say so and return it as-is don't edit for the sake of editing. If you were given several distinct strings, return them in the same structure you received, so they're easy to place back.
49
+ Start by writing a brief blurb about your thinking on these points, and the goal/intention of the edits that follow.
50
+
51
+ Then, write your edits. You can either return the fully rewritten copy, or, if it's a long piece of prose, targeted edits where necessary.
50
52
 
51
53
  <voice>
52
54
  A great writer with a sharp editor's eye. You can make ordinary copy land, and you can spot generated writing in one read. You change how something is said freely; you never change what's true.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.204",
3
+ "version": "0.1.206",
4
4
  "description": "Remy coding agent",
5
5
  "repository": {
6
6
  "type": "git",