@nghyane/arcane 0.1.20 → 0.1.21

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.1.21] - 2026-03-05
6
+
7
+ ### Fixed
8
+
9
+ - Fix crash when extension tools define renderCall/renderResult (readonly property assignment)
10
+
5
11
  ## [0.1.20] - 2026-03-05
6
12
 
7
13
  ### Added
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@nghyane/arcane",
4
- "version": "0.1.20",
4
+ "version": "0.1.21",
5
5
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://github.com/nghyane/arcane",
7
7
  "author": "Can Bölük",
@@ -25,16 +25,24 @@ export class RegisteredToolAdapter implements AgentTool<any, any, any> {
25
25
 
26
26
  const def = registeredTool.definition;
27
27
  if (def.renderCall) {
28
- (this as any).renderCall = (args: any, options: any, theme: any) => def.renderCall!(args, options, theme);
28
+ Object.defineProperty(this, "renderCall", {
29
+ value: (args: any, options: any, theme: any) => def.renderCall!(args, options, theme),
30
+ enumerable: true,
31
+ configurable: true,
32
+ });
29
33
  }
30
34
  if (def.renderResult) {
31
- (this as any).renderResult = (result: any, options: any, theme: any, args?: any) =>
32
- def.renderResult!(
33
- result,
34
- { expanded: options.expanded, isPartial: options.isPartial, spinnerFrame: options.spinnerFrame },
35
- theme,
36
- args,
37
- );
35
+ Object.defineProperty(this, "renderResult", {
36
+ value: (result: any, options: any, theme: any, args?: any) =>
37
+ def.renderResult!(
38
+ result,
39
+ { expanded: options.expanded, isPartial: options.isPartial, spinnerFrame: options.spinnerFrame },
40
+ theme,
41
+ args,
42
+ ),
43
+ enumerable: true,
44
+ configurable: true,
45
+ });
38
46
  }
39
47
  }
40
48