@snaptrude/plugin-core 1.1.0-pbr-20261026.1 → 1.1.0-pbr-20261102.1

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 (62) hide show
  1. package/AGENTS.md +18 -0
  2. package/CHANGELOG.md +12 -0
  3. package/api-manifest.json +10794 -0
  4. package/dist/api/design/create/bulk-items.d.ts +4 -1
  5. package/dist/api/design/create/bulk-items.d.ts.map +1 -1
  6. package/dist/api/design/create/index.d.ts +12 -0
  7. package/dist/api/design/create/index.d.ts.map +1 -1
  8. package/dist/api/design/dimensions.d.ts +2 -2
  9. package/dist/api/design/doors/index.d.ts +37 -0
  10. package/dist/api/design/doors/index.d.ts.map +1 -1
  11. package/dist/api/design/family.d.ts +0 -11
  12. package/dist/api/design/family.d.ts.map +1 -1
  13. package/dist/api/design/index.d.ts +6 -5
  14. package/dist/api/design/index.d.ts.map +1 -1
  15. package/dist/api/design/materials/index.d.ts +1 -15
  16. package/dist/api/design/materials/index.d.ts.map +1 -1
  17. package/dist/api/design/opening-placement.d.ts +123 -0
  18. package/dist/api/design/opening-placement.d.ts.map +1 -0
  19. package/dist/api/design/text.d.ts +400 -0
  20. package/dist/api/design/text.d.ts.map +1 -0
  21. package/dist/api/design/windows/index.d.ts +23 -0
  22. package/dist/api/design/windows/index.d.ts.map +1 -1
  23. package/dist/api/presentation/drawings.d.ts +45 -0
  24. package/dist/api/presentation/drawings.d.ts.map +1 -1
  25. package/dist/api/presentation/graphics.d.ts +4 -0
  26. package/dist/api/presentation/graphics.d.ts.map +1 -1
  27. package/dist/api/presentation/index.d.ts +9 -0
  28. package/dist/api/presentation/index.d.ts.map +1 -1
  29. package/dist/api/presentation/lighting.d.ts +469 -0
  30. package/dist/api/presentation/lighting.d.ts.map +1 -0
  31. package/dist/api/presentation/placedViews.d.ts +29 -1
  32. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  33. package/dist/api/presentation/standards.d.ts +14 -0
  34. package/dist/api/presentation/standards.d.ts.map +1 -1
  35. package/dist/errors/codes.d.ts +1 -1
  36. package/dist/errors/codes.d.ts.map +1 -1
  37. package/dist/index.cjs +2417 -2261
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.js +2392 -2246
  40. package/dist/index.js.map +1 -1
  41. package/package.json +1 -1
  42. package/src/api/design/create/bulk-items.ts +4 -1
  43. package/src/api/design/create/index.ts +12 -0
  44. package/src/api/design/doors/index.ts +43 -0
  45. package/src/api/design/family.ts +0 -11
  46. package/src/api/design/index.ts +6 -5
  47. package/src/api/design/materials/index.ts +1 -15
  48. package/src/api/design/opening-placement.ts +79 -0
  49. package/src/api/design/text.ts +394 -0
  50. package/src/api/design/windows/index.ts +29 -0
  51. package/src/api/presentation/graphics.ts +4 -1
  52. package/src/api/presentation/index.ts +9 -0
  53. package/src/api/presentation/lighting.ts +436 -0
  54. package/src/api/presentation/placedViews.ts +12 -0
  55. package/src/api/presentation/standards.ts +6 -0
  56. package/src/errors/codes.ts +6 -0
  57. package/test/designText.test.mjs +72 -0
  58. package/test/errors.test.mjs +1 -0
  59. package/test/paperPensContract.test.mjs +39 -0
  60. package/dist/api/design/lights/index.d.ts +0 -504
  61. package/dist/api/design/lights/index.d.ts.map +0 -1
  62. package/src/api/design/lights/index.ts +0 -406
package/AGENTS.md CHANGED
@@ -169,6 +169,7 @@ These are in-browser integration tests that exercise the plugin API end-to-end.
169
169
  | `design/query/*` | `tests/designQuery.ts` |
170
170
  | `design/selection/*` | `tests/designSelection.ts` |
171
171
  | `design/lock.ts` | `tests/designLock.ts` |
172
+ | `design/text.ts` | `tests/designText.ts` |
172
173
  | `design/delete/*` | `tests/delete.ts` |
173
174
  | `design/erase/*` | `tests/erase.ts` |
174
175
  | `design/doors/*` | `tests/doors.ts` |
@@ -213,6 +214,23 @@ check **all** consumers of `@snaptrude/plugin-client` or `@snaptrude/plugin-core
213
214
 
214
215
  Search these directories for usage of the changed API and update accordingly.
215
216
 
217
+ ### 8. snapagents (every API change, breaking or not)
218
+
219
+ The Snap agent (`snapagents` repo) does not install this package. It keeps a synced copy of the
220
+ built `dist/**/*.d.ts` under `plugin-types/plugin-core/` and compiles every script the
221
+ agent writes against them before it runs, so a stale copy means the agent is held
222
+ to an old API. After a plugin-core release, in the snapagents checkout run:
223
+
224
+ ```bash
225
+ npm run sync:plugin-core -- <path to packages/plugin-core>
226
+ ```
227
+
228
+ It copies new and changed declaration files, keeps snapagents' agent-only files,
229
+ refuses to overwrite its hand-merged files (and prints what to merge), and stamps
230
+ `plugin-types/plugin-core/.synced.json` with the version. Where the editor validates a
231
+ parameter against a fixed list, declare it as that literal union here, not as
232
+ `string`: the agent's type-check can only reject what the type names.
233
+
216
234
  ## Adding a new API namespace (end-to-end)
217
235
 
218
236
  When adding an entirely new namespace (e.g. `snaptrude.materials`):
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @snaptrude/plugin-core
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - c05661a: Add `design.text` — authored text and annotations (Text / Annotate tools): `create`, `list`, `get`, `update`, `setLeader`; texts are `ComponentHandle`s, so delete / move / rotate / copy / hide / lock use the generic design APIs. Paper Pens gains a `"Text"` annotation category (projection pen = leader weight, `annotationText.Text.textMm` size, resolved `text.annotationMm`; no per-view override), and `presentation.placedViews.updateStyles` gains the `"Text"` and `"Annotation"` categories with `textFontFamily`, `textFontStyle` and `leaderVisible`.
8
+
9
+ ## 1.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - b404589: Add design.family.duplicate and design.family.saveToLibrary
14
+
3
15
  ## 1.0.0
4
16
 
5
17
  ### Major Changes