@snaptrude/plugin-client 0.2.9 → 0.5.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.
Files changed (83) hide show
  1. package/AGENTS.md +38 -46
  2. package/CHANGELOG.md +11 -0
  3. package/CLAUDE.md +1 -1
  4. package/dist/api/index.d.ts +12 -16
  5. package/dist/api/index.d.ts.map +1 -1
  6. package/dist/index.cjs +23 -655
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.js +25 -648
  9. package/dist/index.js.map +1 -1
  10. package/dist/rpc-proxy.d.ts +28 -0
  11. package/dist/rpc-proxy.d.ts.map +1 -0
  12. package/package.json +2 -2
  13. package/src/api/index.ts +26 -22
  14. package/src/rpc-proxy.ts +56 -0
  15. package/dist/api/core/geom/arc.d.ts +0 -5
  16. package/dist/api/core/geom/arc.d.ts.map +0 -1
  17. package/dist/api/core/geom/curve.d.ts +0 -5
  18. package/dist/api/core/geom/curve.d.ts.map +0 -1
  19. package/dist/api/core/geom/index.d.ts +0 -17
  20. package/dist/api/core/geom/index.d.ts.map +0 -1
  21. package/dist/api/core/geom/line.d.ts +0 -5
  22. package/dist/api/core/geom/line.d.ts.map +0 -1
  23. package/dist/api/core/geom/profile.d.ts +0 -7
  24. package/dist/api/core/geom/profile.d.ts.map +0 -1
  25. package/dist/api/core/index.d.ts +0 -11
  26. package/dist/api/core/index.d.ts.map +0 -1
  27. package/dist/api/core/math/index.d.ts +0 -11
  28. package/dist/api/core/math/index.d.ts.map +0 -1
  29. package/dist/api/core/math/quat.d.ts +0 -5
  30. package/dist/api/core/math/quat.d.ts.map +0 -1
  31. package/dist/api/core/math/vec3.d.ts +0 -5
  32. package/dist/api/core/math/vec3.d.ts.map +0 -1
  33. package/dist/api/documentation/aiInspiration.d.ts +0 -24
  34. package/dist/api/documentation/aiInspiration.d.ts.map +0 -1
  35. package/dist/api/documentation/index.d.ts +0 -8
  36. package/dist/api/documentation/index.d.ts.map +0 -1
  37. package/dist/api/entity/buildableEnvelope.d.ts +0 -7
  38. package/dist/api/entity/buildableEnvelope.d.ts.map +0 -1
  39. package/dist/api/entity/department.d.ts +0 -7
  40. package/dist/api/entity/department.d.ts.map +0 -1
  41. package/dist/api/entity/index.d.ts +0 -20
  42. package/dist/api/entity/index.d.ts.map +0 -1
  43. package/dist/api/entity/referenceLine.d.ts +0 -9
  44. package/dist/api/entity/referenceLine.d.ts.map +0 -1
  45. package/dist/api/entity/space.d.ts +0 -15
  46. package/dist/api/entity/space.d.ts.map +0 -1
  47. package/dist/api/entity/story.d.ts +0 -9
  48. package/dist/api/entity/story.d.ts.map +0 -1
  49. package/dist/api/tools/copy.d.ts +0 -3
  50. package/dist/api/tools/copy.d.ts.map +0 -1
  51. package/dist/api/tools/index.d.ts +0 -14
  52. package/dist/api/tools/index.d.ts.map +0 -1
  53. package/dist/api/tools/offset.d.ts +0 -3
  54. package/dist/api/tools/offset.d.ts.map +0 -1
  55. package/dist/api/tools/selection.d.ts +0 -6
  56. package/dist/api/tools/selection.d.ts.map +0 -1
  57. package/dist/api/tools/transform.d.ts +0 -7
  58. package/dist/api/tools/transform.d.ts.map +0 -1
  59. package/dist/api/units/index.d.ts +0 -7
  60. package/dist/api/units/index.d.ts.map +0 -1
  61. package/src/api/core/geom/arc.ts +0 -7
  62. package/src/api/core/geom/curve.ts +0 -7
  63. package/src/api/core/geom/index.ts +0 -25
  64. package/src/api/core/geom/line.ts +0 -7
  65. package/src/api/core/geom/profile.ts +0 -17
  66. package/src/api/core/index.ts +0 -17
  67. package/src/api/core/math/index.ts +0 -17
  68. package/src/api/core/math/quat.ts +0 -7
  69. package/src/api/core/math/vec3.ts +0 -7
  70. package/src/api/documentation/aiInspiration.ts +0 -193
  71. package/src/api/documentation/index.ts +0 -13
  72. package/src/api/entity/buildableEnvelope.ts +0 -34
  73. package/src/api/entity/department.ts +0 -30
  74. package/src/api/entity/index.ts +0 -29
  75. package/src/api/entity/referenceLine.ts +0 -54
  76. package/src/api/entity/space.ts +0 -160
  77. package/src/api/entity/story.ts +0 -66
  78. package/src/api/tools/copy.ts +0 -10
  79. package/src/api/tools/index.ts +0 -33
  80. package/src/api/tools/offset.ts +0 -15
  81. package/src/api/tools/selection.ts +0 -15
  82. package/src/api/tools/transform.ts +0 -44
  83. package/src/api/units/index.ts +0 -34
package/dist/index.cjs CHANGED
@@ -30,28 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
- ClientArcApi: () => ClientArcApi,
34
- ClientBuildableEnvelopeApi: () => ClientBuildableEnvelopeApi,
35
- ClientCoreApi: () => ClientCoreApi,
36
- ClientCurveApi: () => ClientCurveApi,
37
- ClientDepartmentApi: () => ClientDepartmentApi,
38
- ClientDocumentationAIInspirationApi: () => ClientDocumentationAIInspirationApi,
39
- ClientDocumentationApi: () => ClientDocumentationApi,
40
- ClientEntityApi: () => ClientEntityApi,
41
- ClientGeomApi: () => ClientGeomApi,
42
- ClientLineApi: () => ClientLineApi,
43
- ClientMathApi: () => ClientMathApi,
44
33
  ClientPluginApi: () => ClientPluginApi,
45
- ClientProfileApi: () => ClientProfileApi,
46
- ClientQuatApi: () => ClientQuatApi,
47
- ClientReferenceLineApi: () => ClientReferenceLineApi,
48
- ClientSelectionApi: () => ClientSelectionApi,
49
- ClientSpaceApi: () => ClientSpaceApi,
50
- ClientStoryApi: () => ClientStoryApi,
51
- ClientToolsApi: () => ClientToolsApi,
52
- ClientTransformApi: () => ClientTransformApi,
53
- ClientUnitsApi: () => ClientUnitsApi,
54
- ClientVec3Api: () => ClientVec3Api,
55
34
  PluginWorker: () => PluginWorker,
56
35
  createHostApi: () => createHostApi,
57
36
  getHostApi: () => getHostApi,
@@ -59,66 +38,8 @@ __export(index_exports, {
59
38
  });
60
39
  module.exports = __toCommonJS(index_exports);
61
40
 
62
- // src/api/core/index.ts
63
- var import_plugin_core9 = require("@snaptrude/plugin-core");
64
-
65
- // src/api/core/math/index.ts
66
- var import_plugin_core3 = require("@snaptrude/plugin-core");
67
-
68
- // src/api/core/math/vec3.ts
41
+ // src/api/index.ts
69
42
  var import_plugin_core = require("@snaptrude/plugin-core");
70
- var ClientVec3Api = class extends import_plugin_core.PluginVec3Api {
71
- constructor() {
72
- super();
73
- }
74
- };
75
-
76
- // src/api/core/math/quat.ts
77
- var import_plugin_core2 = require("@snaptrude/plugin-core");
78
- var ClientQuatApi = class extends import_plugin_core2.PluginQuatApi {
79
- constructor() {
80
- super();
81
- }
82
- };
83
-
84
- // src/api/core/math/index.ts
85
- var ClientMathApi = class extends import_plugin_core3.PluginMathApi {
86
- constructor() {
87
- super();
88
- this.vec3 = new ClientVec3Api();
89
- this.quat = new ClientQuatApi();
90
- }
91
- };
92
-
93
- // src/api/core/geom/index.ts
94
- var import_plugin_core8 = require("@snaptrude/plugin-core");
95
-
96
- // src/api/core/geom/line.ts
97
- var import_plugin_core4 = require("@snaptrude/plugin-core");
98
- var ClientLineApi = class extends import_plugin_core4.PluginLineApi {
99
- constructor() {
100
- super();
101
- }
102
- };
103
-
104
- // src/api/core/geom/arc.ts
105
- var import_plugin_core5 = require("@snaptrude/plugin-core");
106
- var ClientArcApi = class extends import_plugin_core5.PluginArcApi {
107
- constructor() {
108
- super();
109
- }
110
- };
111
-
112
- // src/api/core/geom/curve.ts
113
- var import_plugin_core6 = require("@snaptrude/plugin-core");
114
- var ClientCurveApi = class extends import_plugin_core6.PluginCurveApi {
115
- constructor() {
116
- super();
117
- }
118
- };
119
-
120
- // src/api/core/geom/profile.ts
121
- var import_plugin_core7 = require("@snaptrude/plugin-core");
122
43
 
123
44
  // src/host-api.ts
124
45
  var Comlink = __toESM(require("comlink"), 1);
@@ -148,567 +69,35 @@ function getHostApi() {
148
69
  };
149
70
  }
150
71
 
151
- // src/api/core/geom/profile.ts
152
- var ClientProfileApi = class extends import_plugin_core7.PluginProfileApi {
153
- constructor() {
154
- super();
155
- }
156
- async fromLinePoints(args) {
157
- const hostApi = getHostApi();
158
- return hostApi.call({
159
- method: "core.geom.profile.fromLinePoints",
160
- args
161
- });
162
- }
163
- };
164
-
165
- // src/api/core/geom/index.ts
166
- var ClientGeomApi = class extends import_plugin_core8.PluginGeomApi {
167
- constructor() {
168
- super();
169
- this.line = new ClientLineApi();
170
- this.arc = new ClientArcApi();
171
- this.curve = new ClientCurveApi();
172
- this.profile = new ClientProfileApi();
173
- }
174
- };
175
-
176
- // src/api/core/index.ts
177
- var ClientCoreApi = class extends import_plugin_core9.PluginCoreApi {
178
- constructor() {
179
- super();
180
- this.math = new ClientMathApi();
181
- this.geom = new ClientGeomApi();
182
- }
183
- };
184
-
185
- // src/api/entity/index.ts
186
- var import_plugin_core15 = require("@snaptrude/plugin-core");
187
-
188
- // src/api/entity/buildableEnvelope.ts
189
- var import_plugin_core10 = require("@snaptrude/plugin-core");
190
- var ClientBuildableEnvelopeApi = class extends import_plugin_core10.PluginBuildableEnvelopeApi {
191
- constructor() {
192
- super();
193
- }
194
- async create(args) {
195
- const hostApi = getHostApi();
196
- return hostApi.call({
197
- method: "entity.buildableEnvelope.create",
198
- args
199
- });
200
- }
201
- async update(args) {
202
- const hostApi = getHostApi();
203
- return hostApi.call({
204
- method: "entity.buildableEnvelope.update",
205
- args
206
- });
207
- }
208
- };
209
-
210
- // src/api/entity/department.ts
211
- var import_plugin_core11 = require("@snaptrude/plugin-core");
212
- var ClientDepartmentApi = class extends import_plugin_core11.PluginDepartmentApi {
213
- constructor() {
214
- super();
215
- }
216
- async create(args) {
217
- const hostApi = getHostApi();
218
- return hostApi.call({
219
- method: "entity.department.create",
220
- args
221
- });
222
- }
223
- async getAll() {
224
- const hostApi = getHostApi();
225
- return hostApi.call({
226
- method: "entity.department.getAll"
227
- });
228
- }
229
- };
230
-
231
- // src/api/entity/referenceLine.ts
232
- var import_plugin_core12 = require("@snaptrude/plugin-core");
233
- var ClientReferenceLineApi = class extends import_plugin_core12.PluginReferenceLineApi {
234
- constructor() {
235
- super();
236
- }
237
- async createMulti(args) {
238
- const hostApi = getHostApi();
239
- return hostApi.call({
240
- method: "entity.referenceLine.createMulti",
241
- args
242
- });
243
- }
244
- async get(args) {
245
- const hostApi = getHostApi();
246
- return hostApi.call({
247
- method: "entity.referenceLine.get",
248
- args
249
- });
250
- }
251
- async getAll() {
252
- const hostApi = getHostApi();
253
- return hostApi.call({
254
- method: "entity.referenceLine.getAll"
255
- });
256
- }
257
- async delete(args) {
258
- const hostApi = getHostApi();
259
- return hostApi.call({
260
- method: "entity.referenceLine.delete",
261
- args
262
- });
263
- }
264
- };
265
-
266
- // src/api/entity/space.ts
267
- var import_plugin_core13 = require("@snaptrude/plugin-core");
268
- var ClientSpaceApi = class extends import_plugin_core13.PluginSpaceApi {
269
- constructor() {
270
- super();
271
- }
272
- async createRectangular({
273
- position,
274
- dimensions
275
- }) {
276
- const hostApi = getHostApi();
277
- return hostApi.call({
278
- method: "entity.space.createRectangular",
279
- args: {
280
- position,
281
- dimensions
282
- }
283
- });
284
- }
285
- async createFromProfile({
286
- profile,
287
- innerProfiles,
288
- extrudeHeight,
289
- position
290
- }) {
291
- const hostApi = getHostApi();
292
- return hostApi.call({
293
- method: "entity.space.createFromProfile",
294
- args: {
295
- profile,
296
- innerProfiles,
297
- extrudeHeight,
298
- position
299
- }
300
- });
301
- }
302
- async updateGeometryFromProfile({
303
- spaceId,
304
- profile,
305
- extrudeHeight
306
- }) {
307
- const hostApi = getHostApi();
308
- return hostApi.call({
309
- method: "entity.space.updateGeometryFromProfile",
310
- args: {
311
- spaceId,
312
- profile,
313
- extrudeHeight
314
- }
315
- });
316
- }
317
- async get({
318
- spaceId,
319
- properties
320
- }) {
321
- const hostApi = getHostApi();
322
- return hostApi.call({
323
- method: "entity.space.get",
324
- args: {
325
- spaceId,
326
- properties
327
- }
328
- });
329
- }
330
- async getAll() {
331
- const hostApi = getHostApi();
332
- return hostApi.call({
333
- method: "entity.space.getAll"
334
- });
335
- }
336
- async delete({
337
- spaceId
338
- }) {
339
- const hostApi = getHostApi();
340
- return hostApi.call({
341
- method: "entity.space.delete",
342
- args: {
343
- spaceId
344
- }
345
- });
346
- }
347
- async update({
348
- spaceId,
349
- properties
350
- }) {
351
- const hostApi = getHostApi();
352
- return hostApi.call({
353
- method: "entity.space.update",
354
- args: {
355
- spaceId,
356
- properties
357
- }
358
- });
359
- }
360
- async bulkCreate({
361
- items
362
- }) {
363
- const hostApi = getHostApi();
364
- return hostApi.call({
365
- method: "entity.space.bulkCreate",
366
- args: {
367
- items
368
- }
369
- });
370
- }
371
- async bulkUpdate({
372
- items
373
- }) {
374
- const hostApi = getHostApi();
375
- return hostApi.call({
376
- method: "entity.space.bulkUpdate",
377
- args: {
378
- items
379
- }
380
- });
381
- }
382
- async bulkDelete({
383
- spaceIds
384
- }) {
385
- const hostApi = getHostApi();
386
- return hostApi.call({
387
- method: "entity.space.bulkDelete",
388
- args: {
389
- spaceIds
390
- }
391
- });
392
- }
393
- };
394
-
395
- // src/api/entity/story.ts
396
- var import_plugin_core14 = require("@snaptrude/plugin-core");
397
- var ClientStoryApi = class extends import_plugin_core14.PluginStoryApi {
398
- constructor() {
399
- super();
400
- }
401
- async get({
402
- storyValue,
403
- properties
404
- }) {
405
- const hostApi = getHostApi();
406
- return hostApi.call({
407
- method: "entity.story.get",
408
- args: {
409
- storyValue,
410
- properties
411
- }
412
- });
413
- }
414
- async getAll() {
415
- const hostApi = getHostApi();
416
- return hostApi.call({
417
- method: "entity.story.getAll"
418
- });
419
- }
420
- async create({
421
- storyValue,
422
- height
423
- }) {
424
- const hostApi = getHostApi();
425
- return hostApi.call({
426
- method: "entity.story.create",
427
- args: {
428
- storyValue,
429
- height
430
- }
431
- });
432
- }
433
- async update({
434
- storyValue,
435
- height
436
- }) {
437
- const hostApi = getHostApi();
438
- return hostApi.call({
439
- method: "entity.story.update",
440
- args: {
441
- storyValue,
442
- height
443
- }
444
- });
445
- }
446
- };
447
-
448
- // src/api/entity/index.ts
449
- var ClientEntityApi = class extends import_plugin_core15.PluginEntityApi {
450
- constructor() {
451
- super();
452
- this.space = new ClientSpaceApi();
453
- this.story = new ClientStoryApi();
454
- this.referenceLine = new ClientReferenceLineApi();
455
- this.department = new ClientDepartmentApi();
456
- this.buildableEnvelope = new ClientBuildableEnvelopeApi();
457
- }
458
- };
459
-
460
- // src/api/tools/index.ts
461
- var import_plugin_core18 = require("@snaptrude/plugin-core");
462
-
463
- // src/api/tools/selection.ts
464
- var import_plugin_core16 = require("@snaptrude/plugin-core");
465
- var ClientSelectionApi = class extends import_plugin_core16.PluginSelectionApi {
466
- constructor() {
467
- super();
468
- }
469
- async get() {
470
- const hostApi = getHostApi();
471
- return hostApi.call({
472
- method: "tools.selection.get"
473
- });
474
- }
475
- };
476
-
477
- // src/api/tools/transform.ts
478
- var import_plugin_core17 = require("@snaptrude/plugin-core");
479
- var ClientTransformApi = class extends import_plugin_core17.PluginTransformApi {
480
- constructor() {
481
- super();
482
- }
483
- async move({
484
- componentIds,
485
- displacement
486
- }) {
487
- const hostApi = getHostApi();
488
- return hostApi.call({
489
- method: "tools.transform.move",
490
- args: {
491
- componentIds,
492
- displacement
493
- }
494
- });
495
- }
496
- async rotate({
497
- componentIds,
498
- angle,
499
- axis,
500
- pivot
501
- }) {
502
- const hostApi = getHostApi();
503
- return hostApi.call({
504
- method: "tools.transform.rotate",
505
- args: {
506
- componentIds,
507
- angle,
508
- axis,
509
- pivot
510
- }
511
- });
512
- }
513
- };
514
-
515
- // src/api/tools/copy.ts
516
- async function copy(args) {
517
- const hostApi = getHostApi();
518
- return hostApi.call({
519
- method: "tools.copy",
520
- args
521
- });
522
- }
523
-
524
- // src/api/tools/offset.ts
525
- async function offset(args) {
526
- const hostApi = getHostApi();
527
- return hostApi.call({
528
- method: "tools.offset",
529
- args
72
+ // src/rpc-proxy.ts
73
+ function createRpcNamespace(basePath) {
74
+ const build = (path) => new Proxy(NOOP, {
75
+ get(_target, prop) {
76
+ if (typeof prop !== "string" || prop === "then") return void 0;
77
+ return build(`${path}.${prop}`);
78
+ },
79
+ apply(_target, _thisArg, argArray) {
80
+ const payload = {
81
+ method: path,
82
+ args: argArray
83
+ };
84
+ return getHostApi().call(payload);
85
+ }
530
86
  });
87
+ return build(basePath);
531
88
  }
532
-
533
- // src/api/tools/index.ts
534
- var ClientToolsApi = class extends import_plugin_core18.PluginToolsApi {
535
- constructor() {
536
- super();
537
- this.selection = new ClientSelectionApi();
538
- this.transform = new ClientTransformApi();
539
- }
540
- async copy(args) {
541
- return copy(args);
542
- }
543
- async offset(args) {
544
- return offset(args);
545
- }
546
- };
547
-
548
- // src/api/units/index.ts
549
- var import_plugin_core19 = require("@snaptrude/plugin-core");
550
- var ClientUnitsApi = class extends import_plugin_core19.PluginUnitsApi {
551
- constructor() {
552
- super();
553
- }
554
- async convertFrom(args) {
555
- const hostApi = getHostApi();
556
- return hostApi.call({
557
- method: "units.convertFrom",
558
- args
559
- });
560
- }
561
- async convertTo(args) {
562
- const hostApi = getHostApi();
563
- return hostApi.call({
564
- method: "units.convertTo",
565
- args
566
- });
567
- }
568
- };
569
-
570
- // src/api/documentation/index.ts
571
- var import_plugin_core21 = require("@snaptrude/plugin-core");
572
-
573
- // src/api/documentation/aiInspiration.ts
574
- var import_plugin_core20 = require("@snaptrude/plugin-core");
575
- var ClientDocumentationAIInspirationApi = class extends import_plugin_core20.PluginDocumentationAIInspirationApi {
576
- constructor() {
577
- super();
578
- }
579
- async listModels() {
580
- const hostApi = getHostApi();
581
- return hostApi.call({ method: "documentation.aiInspiration.listModels" });
582
- }
583
- async getModelCapabilities(args) {
584
- const hostApi = getHostApi();
585
- return hostApi.call({
586
- method: "documentation.aiInspiration.getModelCapabilities",
587
- args
588
- });
589
- }
590
- async listSources(args) {
591
- const hostApi = getHostApi();
592
- return hostApi.call({
593
- method: "documentation.aiInspiration.listSources",
594
- args
595
- });
596
- }
597
- async getSelection() {
598
- const hostApi = getHostApi();
599
- return hostApi.call({ method: "documentation.aiInspiration.getSelection" });
600
- }
601
- async getPresetCatalog() {
602
- const hostApi = getHostApi();
603
- return hostApi.call({
604
- method: "documentation.aiInspiration.getPresetCatalog"
605
- });
606
- }
607
- async generate(args) {
608
- const hostApi = getHostApi();
609
- return hostApi.call({
610
- method: "documentation.aiInspiration.generate",
611
- args
612
- });
613
- }
614
- async refine(args) {
615
- const hostApi = getHostApi();
616
- return hostApi.call({
617
- method: "documentation.aiInspiration.refine",
618
- args
619
- });
620
- }
621
- async getJob(args) {
622
- const hostApi = getHostApi();
623
- return hostApi.call({
624
- method: "documentation.aiInspiration.getJob",
625
- args
626
- });
627
- }
628
- async cancelJob(args) {
629
- const hostApi = getHostApi();
630
- return hostApi.call({
631
- method: "documentation.aiInspiration.cancelJob",
632
- args
633
- });
634
- }
635
- async listJobs() {
636
- const hostApi = getHostApi();
637
- return hostApi.call({ method: "documentation.aiInspiration.listJobs" });
638
- }
639
- async getWorkflowForShape(args) {
640
- const hostApi = getHostApi();
641
- return hostApi.call({
642
- method: "documentation.aiInspiration.getWorkflowForShape",
643
- args
644
- });
645
- }
646
- async getSelectedBranchRerunPlan(args) {
647
- const hostApi = getHostApi();
648
- return hostApi.call({
649
- method: "documentation.aiInspiration.getSelectedBranchRerunPlan",
650
- args
651
- });
652
- }
653
- async rerunSelectedBranch(args) {
654
- const hostApi = getHostApi();
655
- return hostApi.call({
656
- method: "documentation.aiInspiration.rerunSelectedBranch",
657
- args
658
- });
659
- }
660
- async extractRecipeFromShape(args) {
661
- const hostApi = getHostApi();
662
- return hostApi.call({
663
- method: "documentation.aiInspiration.extractRecipeFromShape",
664
- args
665
- });
666
- }
667
- async listRecipes() {
668
- const hostApi = getHostApi();
669
- return hostApi.call({ method: "documentation.aiInspiration.listRecipes" });
670
- }
671
- async saveRecipe(args) {
672
- const hostApi = getHostApi();
673
- return hostApi.call({
674
- method: "documentation.aiInspiration.saveRecipe",
675
- args
676
- });
677
- }
678
- async deleteRecipe(args) {
679
- const hostApi = getHostApi();
680
- return hostApi.call({
681
- method: "documentation.aiInspiration.deleteRecipe",
682
- args
683
- });
684
- }
685
- async runRecipe(args) {
686
- const hostApi = getHostApi();
687
- return hostApi.call({
688
- method: "documentation.aiInspiration.runRecipe",
689
- args
690
- });
691
- }
692
- };
693
-
694
- // src/api/documentation/index.ts
695
- var ClientDocumentationApi = class extends import_plugin_core21.PluginDocumentationApi {
696
- constructor() {
697
- super();
698
- this.aiInspiration = new ClientDocumentationAIInspirationApi();
699
- }
89
+ var NOOP = () => {
700
90
  };
701
91
 
702
92
  // src/api/index.ts
703
- var import_plugin_core22 = require("@snaptrude/plugin-core");
704
- var ClientPluginApi = class _ClientPluginApi extends import_plugin_core22.PluginApi {
93
+ var ClientPluginApi = class _ClientPluginApi extends import_plugin_core.PluginApi {
705
94
  constructor() {
706
95
  super();
707
- this.core = new ClientCoreApi();
708
- this.tools = new ClientToolsApi();
709
- this.entity = new ClientEntityApi();
710
- this.units = new ClientUnitsApi();
711
- this.documentation = new ClientDocumentationApi();
96
+ this.core = createRpcNamespace("core");
97
+ this.design = createRpcNamespace("design");
98
+ this.entity = createRpcNamespace("entity");
99
+ this.program = createRpcNamespace("program");
100
+ this.presentation = createRpcNamespace("presentation");
712
101
  }
713
102
  static getInstance() {
714
103
  if (!_ClientPluginApi.instance) {
@@ -780,28 +169,7 @@ var PluginWorker = class {
780
169
  var snaptrude = ClientPluginApi.getInstance();
781
170
  // Annotate the CommonJS export names for ESM import in node:
782
171
  0 && (module.exports = {
783
- ClientArcApi,
784
- ClientBuildableEnvelopeApi,
785
- ClientCoreApi,
786
- ClientCurveApi,
787
- ClientDepartmentApi,
788
- ClientDocumentationAIInspirationApi,
789
- ClientDocumentationApi,
790
- ClientEntityApi,
791
- ClientGeomApi,
792
- ClientLineApi,
793
- ClientMathApi,
794
172
  ClientPluginApi,
795
- ClientProfileApi,
796
- ClientQuatApi,
797
- ClientReferenceLineApi,
798
- ClientSelectionApi,
799
- ClientSpaceApi,
800
- ClientStoryApi,
801
- ClientToolsApi,
802
- ClientTransformApi,
803
- ClientUnitsApi,
804
- ClientVec3Api,
805
173
  PluginWorker,
806
174
  createHostApi,
807
175
  getHostApi,