invar-tools 1.15.3__py3-none-any.whl → 1.15.4__py3-none-any.whl

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.
@@ -142,7 +142,8 @@ const factory: CustomToolFactory = (pi) => {
142
142
  }
143
143
 
144
144
  if (result.exitCode !== 0) {
145
- throw new Error(`Failed to get signatures: ${result.stderr}`);
145
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
146
+ throw new Error(`Failed to get signatures: ${errorMsg}`);
146
147
  }
147
148
 
148
149
  return {
@@ -200,7 +201,8 @@ const factory: CustomToolFactory = (pi) => {
200
201
  }
201
202
 
202
203
  if (result.exitCode !== 0) {
203
- throw new Error(`Failed to generate map: ${result.stderr}`);
204
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
205
+ throw new Error(`Failed to generate map: ${errorMsg}`);
204
206
  }
205
207
 
206
208
  return {
@@ -262,7 +264,8 @@ const factory: CustomToolFactory = (pi) => {
262
264
  }
263
265
 
264
266
  if (result.exitCode !== 0) {
265
- throw new Error(`Failed to extract TOC: ${result.stderr}`);
267
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
268
+ throw new Error(`Failed to extract TOC: ${errorMsg}`);
266
269
  }
267
270
 
268
271
  return {
@@ -328,7 +331,8 @@ const factory: CustomToolFactory = (pi) => {
328
331
  }
329
332
 
330
333
  if (result.exitCode !== 0) {
331
- throw new Error(`Failed to read section: ${result.stderr}`);
334
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
335
+ throw new Error(`Failed to read section: ${errorMsg}`);
332
336
  }
333
337
 
334
338
  return {
@@ -400,7 +404,8 @@ const factory: CustomToolFactory = (pi) => {
400
404
  }
401
405
 
402
406
  if (result.exitCode !== 0) {
403
- throw new Error(`Failed to find sections: ${result.stderr}`);
407
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
408
+ throw new Error(`Failed to find sections: ${errorMsg}`);
404
409
  }
405
410
 
406
411
  return {
@@ -486,7 +491,8 @@ const factory: CustomToolFactory = (pi) => {
486
491
  }
487
492
 
488
493
  if (result.exitCode !== 0) {
489
- throw new Error(`Failed to replace section: ${result.stderr}`);
494
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
495
+ throw new Error(`Failed to replace section: ${errorMsg}`);
490
496
  }
491
497
 
492
498
  return {
@@ -581,7 +587,8 @@ const factory: CustomToolFactory = (pi) => {
581
587
  }
582
588
 
583
589
  if (result.exitCode !== 0) {
584
- throw new Error(`Failed to insert content: ${result.stderr}`);
590
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
591
+ throw new Error(`Failed to insert content: ${errorMsg}`);
585
592
  }
586
593
 
587
594
  return {
@@ -656,7 +663,8 @@ const factory: CustomToolFactory = (pi) => {
656
663
  }
657
664
 
658
665
  if (result.exitCode !== 0) {
659
- throw new Error(`Failed to delete section: ${result.stderr}`);
666
+ const errorMsg = result.stderr || result.stdout || "Unknown error";
667
+ throw new Error(`Failed to delete section: ${errorMsg}`);
660
668
  }
661
669
 
662
670
  return {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: invar-tools
3
- Version: 1.15.3
3
+ Version: 1.15.4
4
4
  Summary: AI-native software engineering tools with design-by-contract verification
5
5
  Project-URL: Homepage, https://github.com/tefx/invar
6
6
  Project-URL: Documentation, https://github.com/tefx/invar#readme
@@ -143,7 +143,7 @@ invar/templates/onboard/assessment.md.jinja,sha256=EzqF0VUcxJZG2bVJLxTOyQlAERRbh
143
143
  invar/templates/onboard/roadmap.md.jinja,sha256=gmvZk4Hdwe0l3qSFV15QGcsr-OPMhsc6-1K9F2SFSIQ,3939
144
144
  invar/templates/onboard/patterns/python.md,sha256=3wwucAcQz0DlggtpqYo-ZCnmrXgBQ0aBgUHN_EZ1VW0,8681
145
145
  invar/templates/onboard/patterns/typescript.md,sha256=yOVfHtdAdjKkWNh66_dR7z2xEA4sggbIcCKthW-fqac,11983
146
- invar/templates/pi-tools/invar/index.ts,sha256=7xonqiDDUtY09gjRzxet-Xr7_Dxl1AfB0xqiUmBFeKE,22581
146
+ invar/templates/pi-tools/invar/index.ts,sha256=RM6eFnxePEFkCgBD8B1IB21Zv5lwPI-rCxAZifsTjGM,23169
147
147
  invar/templates/protocol/INVAR.md.jinja,sha256=t2ZIQZJvzDTJMrRw_ijUo6ScZmeNK0-nV-H7ztTIyQQ,1464
148
148
  invar/templates/protocol/python/architecture-examples.md,sha256=O96LH9WFpk7G9MrhSbifLS5pyibTIDG-_EGFF7g3V4M,1175
149
149
  invar/templates/protocol/python/contracts-syntax.md,sha256=Q6supTQ3tChVrlN7xhcdb3Q8VGIESxQLA-mQvrNIZmo,1162
@@ -181,10 +181,10 @@ invar/templates/skills/invar-reflect/template.md,sha256=Rr5hvbllvmd8jSLf_0ZjyKt6
181
181
  invar/templates/skills/investigate/SKILL.md.jinja,sha256=cp6TBEixBYh1rLeeHOR1yqEnFqv1NZYePORMnavLkQI,3231
182
182
  invar/templates/skills/propose/SKILL.md.jinja,sha256=6BuKiCqO1AEu3VtzMHy1QWGqr_xqG9eJlhbsKT4jev4,3463
183
183
  invar/templates/skills/review/SKILL.md.jinja,sha256=ET5mbdSe_eKgJbi2LbgFC-z1aviKcHOBw7J5Q28fr4U,14105
184
- invar_tools-1.15.3.dist-info/METADATA,sha256=8cn5xZHmi9QvgHc1iPzFdol25Q302gRncWutGH6_ZgQ,28595
185
- invar_tools-1.15.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
186
- invar_tools-1.15.3.dist-info/entry_points.txt,sha256=RwH_EhqgtFPsnO6RcrwrAb70Zyfb8Mh6uUtztWnUxGk,102
187
- invar_tools-1.15.3.dist-info/licenses/LICENSE,sha256=qeFksp4H4kfTgQxPCIu3OdagXyiZcgBlVfsQ6M5oFyk,10767
188
- invar_tools-1.15.3.dist-info/licenses/LICENSE-GPL,sha256=IvZfC6ZbP7CLjytoHVzvpDZpD-Z3R_qa1GdMdWlWQ6Q,35157
189
- invar_tools-1.15.3.dist-info/licenses/NOTICE,sha256=joEyMyFhFY8Vd8tTJ-a3SirI0m2Sd0WjzqYt3sdcglc,2561
190
- invar_tools-1.15.3.dist-info/RECORD,,
184
+ invar_tools-1.15.4.dist-info/METADATA,sha256=-jdBBcJq9LTcRLPSU378m_K6E9fEIPXncb2qcYDmXes,28595
185
+ invar_tools-1.15.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
186
+ invar_tools-1.15.4.dist-info/entry_points.txt,sha256=RwH_EhqgtFPsnO6RcrwrAb70Zyfb8Mh6uUtztWnUxGk,102
187
+ invar_tools-1.15.4.dist-info/licenses/LICENSE,sha256=qeFksp4H4kfTgQxPCIu3OdagXyiZcgBlVfsQ6M5oFyk,10767
188
+ invar_tools-1.15.4.dist-info/licenses/LICENSE-GPL,sha256=IvZfC6ZbP7CLjytoHVzvpDZpD-Z3R_qa1GdMdWlWQ6Q,35157
189
+ invar_tools-1.15.4.dist-info/licenses/NOTICE,sha256=joEyMyFhFY8Vd8tTJ-a3SirI0m2Sd0WjzqYt3sdcglc,2561
190
+ invar_tools-1.15.4.dist-info/RECORD,,