@pen.dev/cli 0.3.6 → 0.3.8

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 (69) hide show
  1. package/README.md +29 -5
  2. package/dist/browserAll-D_luQzBO.mjs +2 -0
  3. package/dist/dist-CbU0Evuc.mjs +4 -0
  4. package/dist/{esm-Dupm_ZuQ.mjs → esm-DBgQcoAH.mjs} +1 -1
  5. package/dist/index.mjs +2 -2
  6. package/dist/node_modules/@highagency/pencil-wasm/enums.gen.d.ts +44 -0
  7. package/dist/node_modules/@highagency/pencil-wasm/package.json +1 -1
  8. package/dist/node_modules/@highagency/pencil-wasm/pencil.d.ts +22 -6
  9. package/dist/node_modules/@highagency/pencil-wasm/pencil.js +1 -1
  10. package/dist/node_modules/@highagency/pencil-wasm/pencil.wasm +0 -0
  11. package/dist/out/mcp-server-darwin-arm64 +0 -0
  12. package/dist/out/mcp-server-darwin-x64 +0 -0
  13. package/dist/out/mcp-server-linux-arm64 +0 -0
  14. package/dist/out/mcp-server-linux-x64 +0 -0
  15. package/dist/out/mcp-server-windows-arm64.exe +0 -0
  16. package/dist/out/mcp-server-windows-x64.exe +0 -0
  17. package/dist/out/skills/pen-dev/SKILL.md +1 -0
  18. package/dist/out/skills/pen-dev/execute.md +10 -73
  19. package/dist/out/skills/pen-dev/generate.md +124 -0
  20. package/dist/out/skills/pen-dev/pen-schema.md +15 -2
  21. package/dist/webworkerAll-BPqqt3nL.mjs +2 -0
  22. package/package.json +5 -3
  23. package/dist/anthropic-messages-xcJLXjiT.mjs +0 -40
  24. package/dist/azure-openai-responses-CoA9_5_J.mjs +0 -2
  25. package/dist/browserAll-8jKh1NRi.mjs +0 -2
  26. package/dist/deferred-tools-CozAnCQL.mjs +0 -2
  27. package/dist/diagnostics-B0j2bfEp.mjs +0 -2
  28. package/dist/dist-BnoSGZKP.mjs +0 -10
  29. package/dist/dist-CMxAZjfo.mjs +0 -1581
  30. package/dist/dist-L3CkgNK3.mjs +0 -4
  31. package/dist/error-body-BBlqjbe7.mjs +0 -2
  32. package/dist/from-py2TfO8m.mjs +0 -15
  33. package/dist/github-copilot-headers-DCj7hJoC.mjs +0 -2
  34. package/dist/google-generative-ai-CFHCNDEQ.mjs +0 -2
  35. package/dist/google-shared-DolBdAGX.mjs +0 -318
  36. package/dist/google-vertex-tT_ymu8S.mjs +0 -2
  37. package/dist/hash-DNYCELl4.mjs +0 -2
  38. package/dist/headers-DlpC0ues.mjs +0 -2
  39. package/dist/json-parse-BzRcyI3e.mjs +0 -4
  40. package/dist/lib-EA7A-_Pc.mjs +0 -9
  41. package/dist/mistral-conversations-BryMfnnw.mjs +0 -5
  42. package/dist/models-BBd5zwn6.mjs +0 -2
  43. package/dist/multipart-parser-DX5ZDxQv.mjs +0 -3
  44. package/dist/openai-CbFQ5q5I.mjs +0 -18
  45. package/dist/openai-codex-responses-BIh-ZL5a.mjs +0 -8
  46. package/dist/openai-completions-DKf2R9kY.mjs +0 -6
  47. package/dist/openai-prompt-cache-tVHrB8oW.mjs +0 -2
  48. package/dist/openai-responses-DKbl253t.mjs +0 -2
  49. package/dist/openai-responses-shared-Brqyk2bc.mjs +0 -11
  50. package/dist/openrouter-images-C8mOFqx9.mjs +0 -2
  51. package/dist/photon_rs-o0nbTM4F.mjs +0 -2
  52. package/dist/pi-messages-CucvyzBS.mjs +0 -8
  53. package/dist/provider-env-CL5ShLlj.mjs +0 -2
  54. package/dist/provider-retry-GaV_ioT7.mjs +0 -2
  55. package/dist/sanitize-unicode-D-15laVS.mjs +0 -2
  56. package/dist/src-B_lvnEtX.mjs +0 -4
  57. package/dist/transform-messages-1ulTEFY1.mjs +0 -2
  58. package/dist/typescript-D0uAMumm.mjs +0 -6
  59. package/dist/uuid-CwuSNv96.mjs +0 -2
  60. package/dist/webworkerAll-BD-7VH16.mjs +0 -2
  61. /package/dist/{emscripten-module.browser-F76W5DM6-CNibWX-6.mjs → emscripten-module.browser-F76W5DM6-CQ3fNT5V.mjs} +0 -0
  62. /package/dist/{emscripten-module.browser-XIKQQPVU-BNfdGnMe.mjs → emscripten-module.browser-XIKQQPVU-C295tmz_.mjs} +0 -0
  63. /package/dist/{ffi-BuJ13coi.mjs → ffi-CUJpv82f.mjs} +0 -0
  64. /package/dist/{ffi-C5tLdQO9.mjs → ffi-Cplg1Nas.mjs} +0 -0
  65. /package/dist/{html-GGJ1fTRB.mjs → html-BzzLf-XM.mjs} +0 -0
  66. /package/dist/{init-B9LSomNH.mjs → init-B5EVeDge.mjs} +0 -0
  67. /package/dist/{module-ES6BEMUI-DwQ9nTMF.mjs → module-ES6BEMUI-2G5oIxui.mjs} +0 -0
  68. /package/dist/{module-asyncify-2EFITU5U-B54Mkt6K.mjs → module-asyncify-2EFITU5U-CqIYQibj.mjs} +0 -0
  69. /package/dist/{standalone-DYT2Zg6I.mjs → standalone-BxPYxoeE.mjs} +0 -0
@@ -23,6 +23,49 @@ export declare const TileMode: Readonly<{
23
23
  readonly Decal: 3;
24
24
  }>;
25
25
  export type TileMode = typeof TileMode[keyof typeof TileMode];
26
+ export declare const SurfaceOrigin: Readonly<{
27
+ readonly TopLeft: 0;
28
+ readonly BottomLeft: 1;
29
+ }>;
30
+ export type SurfaceOrigin = typeof SurfaceOrigin[keyof typeof SurfaceOrigin];
31
+ export declare const GLBackendState: Readonly<{
32
+ readonly RenderTarget: 1;
33
+ readonly TextureBinding: 2;
34
+ readonly View: 4;
35
+ readonly Blend: 8;
36
+ readonly MSAAEnable: 16;
37
+ readonly Vertex: 32;
38
+ readonly Stencil: 64;
39
+ readonly PixelStore: 128;
40
+ readonly Program: 256;
41
+ readonly FixedFunction: 512;
42
+ readonly Misc: 1024;
43
+ readonly All: 65535;
44
+ }>;
45
+ export type GLBackendState = typeof GLBackendState[keyof typeof GLBackendState];
46
+ export declare const GLTextureFormat: Readonly<{
47
+ readonly RGBA8: 32856;
48
+ readonly RGB8: 32849;
49
+ readonly RGBX8: 38586;
50
+ readonly BGRA8: 37793;
51
+ readonly RGB565: 36194;
52
+ readonly RGBA4: 32854;
53
+ readonly RGB10A2: 32857;
54
+ readonly SRGB8Alpha8: 35907;
55
+ readonly RGBA16: 32859;
56
+ readonly RGBA16F: 34842;
57
+ readonly R8: 33321;
58
+ readonly R16: 33322;
59
+ readonly R16F: 33325;
60
+ readonly RG8: 33323;
61
+ readonly RG16: 33324;
62
+ readonly RG16F: 33327;
63
+ readonly Alpha8: 32828;
64
+ readonly Luminance8: 32832;
65
+ readonly Luminance8Alpha8: 32837;
66
+ readonly Luminance16F: 34846;
67
+ }>;
68
+ export type GLTextureFormat = typeof GLTextureFormat[keyof typeof GLTextureFormat];
26
69
  export declare const BlurStyle: Readonly<{
27
70
  readonly Normal: 0;
28
71
  readonly Solid: 1;
@@ -108,6 +151,7 @@ export declare const ColorSpace: Readonly<{
108
151
  readonly SRGBLinear: 1;
109
152
  readonly DisplayP3: 2;
110
153
  readonly AdobeRGB: 3;
154
+ readonly None: 4;
111
155
  }>;
112
156
  export type ColorSpace = typeof ColorSpace[keyof typeof ColorSpace];
113
157
  export declare const BlendMode: Readonly<{
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highagency/pencil-wasm",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "WASM rendering library for Pencil",
5
5
  "type": "module",
6
6
  "main": "./pencil.js",
@@ -1,5 +1,5 @@
1
- export { AddPathMode, AlphaType, BitDepth, BlendMode, BlurStyle, ClipOp, ColorChannel, ColorSpace, ColorType, FillType, FilterMode, FontEdging, FontHinting, FontSlant, FontWeight, FontWidth, ImageFormat, MipmapMode, PaintStyle, Path1DEffectStyle, PathDirection, PathOp, PathVerb, PointMode, SaveLayerFlag, StrokeCap, StrokeJoin, TextAlign, TextDirection, TextEncoding, TileMode, VertexMode, } from "./enums.gen.js";
2
- import { AddPathMode, AlphaType, BitDepth, BlendMode, BlurStyle, ClipOp, ColorChannel, ColorSpace, ColorType, FillType, FilterMode, FontEdging, FontHinting, FontSlant, FontWeight, FontWidth, ImageFormat, MipmapMode, PaintStyle, Path1DEffectStyle, PathDirection, PathOp, PathVerb, PointMode, SaveLayerFlag, StrokeCap, StrokeJoin, TextAlign, TextDirection, TextEncoding, TileMode, VertexMode } from "./enums.gen.js";
1
+ export { AddPathMode, AlphaType, BitDepth, BlendMode, BlurStyle, ClipOp, ColorChannel, ColorSpace, ColorType, FillType, FilterMode, FontEdging, FontHinting, FontSlant, FontWeight, FontWidth, GLBackendState, GLTextureFormat, ImageFormat, MipmapMode, PaintStyle, Path1DEffectStyle, PathDirection, PathOp, PathVerb, PointMode, SaveLayerFlag, StrokeCap, StrokeJoin, SurfaceOrigin, TextAlign, TextDirection, TextEncoding, TileMode, VertexMode, } from "./enums.gen.js";
2
+ import { AddPathMode, AlphaType, BitDepth, BlendMode, BlurStyle, ClipOp, ColorChannel, ColorSpace, ColorType, FillType, FilterMode, FontEdging, FontHinting, FontSlant, FontWeight, FontWidth, GLBackendState, GLTextureFormat, ImageFormat, MipmapMode, PaintStyle, Path1DEffectStyle, PathDirection, PathOp, PathVerb, PointMode, SaveLayerFlag, StrokeCap, StrokeJoin, SurfaceOrigin, TextAlign, TextDirection, TextEncoding, TileMode, VertexMode } from "./enums.gen.js";
3
3
  export type RRect = ArrayLike<number>;
4
4
  export type WebGLContextHandle = number;
5
5
  export type EncodedImageFormat = number;
@@ -226,7 +226,6 @@ export declare class ContourMeasureIter {
226
226
  export declare class SkImage {
227
227
  ptr: number;
228
228
  constructor(ptr: number);
229
- static MakeImageFromEncoded(bytes: Uint8Array | ArrayBuffer, alphaType?: AlphaType): SkImage | undefined;
230
229
  width(): number;
231
230
  height(): number;
232
231
  getImageInfo(): {
@@ -253,6 +252,7 @@ export declare class SkImage {
253
252
  delete(): void;
254
253
  }
255
254
  export declare class SkImages {
255
+ static deferredFromEncodedData(bytes: Uint8Array | ArrayBuffer, alphaType?: AlphaType): SkImage | undefined;
256
256
  static deferredFromPicture(picture: Picture, width: number, height: number, localMatrix?: ArrayLike<number> | undefined, paint?: Paint | undefined, bitDepth?: BitDepth, colorSpace?: ColorSpace): SkImage;
257
257
  }
258
258
  export interface RuntimeEffectResult {
@@ -292,11 +292,10 @@ export declare class RuntimeEffect {
292
292
  }
293
293
  export declare class PDFDocument {
294
294
  ptr: number;
295
- constructor();
295
+ constructor(write: (chunk: Uint8Array) => void);
296
296
  beginPage(width: number, height: number): Canvas;
297
297
  endPage(): void;
298
- close(): Uint8Array;
299
- getBytes(): Uint8Array;
298
+ close(): void;
300
299
  delete(): void;
301
300
  }
302
301
  export interface FontStyle {
@@ -614,11 +613,22 @@ export declare class Canvas {
614
613
  getDeviceClipBounds(): Int32Array;
615
614
  getSurface(): Surface | undefined;
616
615
  }
616
+ export interface AdoptTextureInfo {
617
+ width: number;
618
+ height: number;
619
+ glFormat?: GLTextureFormat;
620
+ mipmapped?: boolean;
621
+ colorType?: ColorType;
622
+ alphaType?: AlphaType;
623
+ colorSpace?: ColorSpace;
624
+ origin?: SurfaceOrigin;
625
+ }
617
626
  export declare class GrDirectContext {
618
627
  ptr: number;
619
628
  _glHandle: number;
620
629
  constructor(ptr: number, glHandle?: number);
621
630
  private _bind;
631
+ get gl(): WebGL2RenderingContext | undefined;
622
632
  setResourceCacheLimitBytes(maxBytes: number): void;
623
633
  getResourceCacheLimitBytes(): number;
624
634
  getResourceCacheUsage(): {
@@ -637,6 +647,8 @@ export declare class GrDirectContext {
637
647
  isAbandoned(): boolean;
638
648
  maxTextureSize(): number;
639
649
  maxRenderTargetSize(): number;
650
+ resetContext(state?: number): void;
651
+ adoptTexture(texture: WebGLTexture, info: AdoptTextureInfo): SkImage | undefined;
640
652
  releaseResourcesAndAbandonContext(): void;
641
653
  delete(): void;
642
654
  }
@@ -713,6 +725,7 @@ export interface PencilWasm {
713
725
  readonly ContourMeasure: typeof ContourMeasure;
714
726
  readonly ContourMeasureIter: typeof ContourMeasureIter;
715
727
  readonly Image: typeof SkImage;
728
+ readonly Images: typeof SkImages;
716
729
  readonly RuntimeEffect: typeof RuntimeEffect;
717
730
  readonly PDFDocument: typeof PDFDocument;
718
731
  readonly FontMgr: typeof FontMgr;
@@ -737,6 +750,9 @@ export interface PencilWasm {
737
750
  readonly StrokeCap: typeof StrokeCap;
738
751
  readonly StrokeJoin: typeof StrokeJoin;
739
752
  readonly TileMode: typeof TileMode;
753
+ readonly SurfaceOrigin: typeof SurfaceOrigin;
754
+ readonly GLBackendState: typeof GLBackendState;
755
+ readonly GLTextureFormat: typeof GLTextureFormat;
740
756
  readonly ClipOp: typeof ClipOp;
741
757
  readonly VertexMode: typeof VertexMode;
742
758
  readonly PointMode: typeof PointMode;