@pen.dev/cli 0.2.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 (94) hide show
  1. package/LICENSE +66 -0
  2. package/README.md +369 -0
  3. package/SKILL.md +175 -0
  4. package/dist/all-Bd-ariyL.mjs +2 -0
  5. package/dist/anthropic-messages-D9L1s6pn.mjs +40 -0
  6. package/dist/anthropic-messages-OUY8OJj7.mjs +40 -0
  7. package/dist/azure-openai-responses-DJKVhgL-.mjs +2 -0
  8. package/dist/azure-openai-responses-DSoXDHyP.mjs +2 -0
  9. package/dist/browserAll-CGZu5S9C.mjs +2 -0
  10. package/dist/completionchunk-BaC49qbM.mjs +28 -0
  11. package/dist/completionchunk-c1fsGiUK.mjs +2 -0
  12. package/dist/diagnostics-hlO-DFfk.mjs +2 -0
  13. package/dist/dist-BMO4tFTj.mjs +1576 -0
  14. package/dist/dist-BupqiQep.mjs +10 -0
  15. package/dist/dist-CCiXmKIu.mjs +10 -0
  16. package/dist/dist-Dq7S86ex.mjs +4 -0
  17. package/dist/emscripten-module.browser-F76W5DM6-3XbeCXXF.mjs +5147 -0
  18. package/dist/emscripten-module.browser-XIKQQPVU-JPkxo8p_.mjs +2160 -0
  19. package/dist/error-body-D-jnPxbB.mjs +2 -0
  20. package/dist/esm-D7vjDQPJ.mjs +2 -0
  21. package/dist/esm-DZA7B0U9.mjs +25 -0
  22. package/dist/ffi-D6Fxg1d3.mjs +2 -0
  23. package/dist/ffi-u92ceo2s.mjs +2 -0
  24. package/dist/from-BRY6g9CG.mjs +15 -0
  25. package/dist/from-Bra_AO5N.mjs +15 -0
  26. package/dist/github-copilot-headers-ByQsj8SR.mjs +2 -0
  27. package/dist/github-copilot-headers-C4gA1Pjv.mjs +2 -0
  28. package/dist/google-generative-ai-BqfOLKon.mjs +2 -0
  29. package/dist/google-generative-ai-CZCmY9Gg.mjs +2 -0
  30. package/dist/google-shared-TkwodIGJ.mjs +318 -0
  31. package/dist/google-shared-YCDndJGN.mjs +318 -0
  32. package/dist/google-vertex-COsje8-Z.mjs +2 -0
  33. package/dist/google-vertex-Cz5Ddo09.mjs +2 -0
  34. package/dist/hash-BFdQp5Bn.mjs +2 -0
  35. package/dist/hash-DFXd8wf4.mjs +2 -0
  36. package/dist/headers-BkXFKypW.mjs +2 -0
  37. package/dist/headers-DtjIrAKV.mjs +2 -0
  38. package/dist/html-DwPxy9Y2.mjs +26 -0
  39. package/dist/index.mjs +8 -0
  40. package/dist/init-BaeOBiNV.mjs +2 -0
  41. package/dist/json-parse-BEWPMC87.mjs +4 -0
  42. package/dist/json-parse-qcO5FIDw.mjs +4 -0
  43. package/dist/mistral-conversations-DIR6EyvH.mjs +8 -0
  44. package/dist/mistral-conversations-JED5QLUZ.mjs +10 -0
  45. package/dist/models-CtsqYGxn.mjs +2 -0
  46. package/dist/models-DVeZ-5Ql.mjs +2 -0
  47. package/dist/module-ES6BEMUI-DGywGVC7.mjs +2 -0
  48. package/dist/module-asyncify-2EFITU5U-BU2CORSO.mjs +2 -0
  49. package/dist/multipart-parser-4wzMiNnD.mjs +3 -0
  50. package/dist/multipart-parser-CYJPmLQW.mjs +3 -0
  51. package/dist/node_modules/@highagency/pencil-wasm/enums.gen.d.ts +247 -0
  52. package/dist/node_modules/@highagency/pencil-wasm/package.json +26 -0
  53. package/dist/node_modules/@highagency/pencil-wasm/pencil.d.ts +769 -0
  54. package/dist/node_modules/@highagency/pencil-wasm/pencil.js +1 -0
  55. package/dist/node_modules/@highagency/pencil-wasm/pencil.wasm +0 -0
  56. package/dist/openai-CJ1JzbCY.mjs +17 -0
  57. package/dist/openai-Cv91uXJB.mjs +17 -0
  58. package/dist/openai-codex-responses-Cq8yFwfN.mjs +8 -0
  59. package/dist/openai-codex-responses-CzFfnGCe.mjs +8 -0
  60. package/dist/openai-completions-DT4sdoVc.mjs +6 -0
  61. package/dist/openai-completions-iO6yRDuR.mjs +6 -0
  62. package/dist/openai-prompt-cache-CjAED4AP.mjs +2 -0
  63. package/dist/openai-prompt-cache-tVxLccHG.mjs +2 -0
  64. package/dist/openai-responses-Cr3SvtkS.mjs +2 -0
  65. package/dist/openai-responses-Dtr2Vk2j.mjs +2 -0
  66. package/dist/openai-responses-shared-BLDoTd9K.mjs +13 -0
  67. package/dist/openai-responses-shared-C4PQs_0V.mjs +11 -0
  68. package/dist/openrouter-images-Dk-x2ke6.mjs +2 -0
  69. package/dist/openrouter-images-NEnwWNeg.mjs +2 -0
  70. package/dist/otel-BIqiVgiM.mjs +4 -0
  71. package/dist/otel-BbTSxAZp.mjs +4 -0
  72. package/dist/out/data/halo.lib.pen +4728 -0
  73. package/dist/out/data/lunaris.lib.pen +5980 -0
  74. package/dist/out/data/nitro.lib.pen +4923 -0
  75. package/dist/out/data/shadcn.lib.pen +5596 -0
  76. package/dist/out/mcp-server-darwin-arm64 +0 -0
  77. package/dist/out/mcp-server-darwin-x64 +0 -0
  78. package/dist/out/mcp-server-linux-arm64 +0 -0
  79. package/dist/out/mcp-server-linux-x64 +0 -0
  80. package/dist/out/mcp-server-windows-arm64.exe +0 -0
  81. package/dist/out/mcp-server-windows-x64.exe +0 -0
  82. package/dist/photon_rs-D_fXqzJa.mjs +2 -0
  83. package/dist/provider-env-D0o9FEJi.mjs +2 -0
  84. package/dist/provider-env-DTh1Xe-B.mjs +2 -0
  85. package/dist/sanitize-unicode-B5GgPEiu.mjs +2 -0
  86. package/dist/sanitize-unicode-DVHYNBlY.mjs +2 -0
  87. package/dist/src-Bk9f60_P.mjs +4 -0
  88. package/dist/src-CbkJodKR.mjs +4 -0
  89. package/dist/standalone-BGhJUGyg.mjs +30 -0
  90. package/dist/transform-messages-DSEUXL48.mjs +2 -0
  91. package/dist/transform-messages-j96k5V_T.mjs +2 -0
  92. package/dist/validate-response-CezyBuEO.mjs +3 -0
  93. package/dist/webworkerAll-Dy6-Qx-T.mjs +2 -0
  94. package/package.json +69 -0
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ function e(e){if(!(e instanceof Error))return{message:s(e),messageCarriesBody:!1};let r=e,i=t(r),a=n(r),o=a===void 0||e.message.includes(a);return{status:i,body:a,message:e.message,messageCarriesBody:o}}function t(e){if(typeof e.statusCode==`number`)return e.statusCode;if(typeof e.status==`number`)return e.status;if(typeof e.$metadata?.httpStatusCode==`number`)return e.$metadata.httpStatusCode;if(typeof e.$response?.statusCode==`number`)return e.$response.statusCode}function n(e){let t=r(e);if(t===void 0)return;let n=t.trim();if(n.length!==0)return o(n,4e3)}function r(e){if(typeof e.body==`string`)return e.body;if(i(e.error))return s(e.error);let t=e.$response?.body;if(typeof t==`string`)return t;if(i(t))return s(t)}function i(e){return typeof e==`object`&&!!e&&Object.keys(e).length>0}function a(e,t){return e.messageCarriesBody||e.status===void 0||e.body===void 0?t!==void 0&&e.status!==void 0?`${t} (${e.status}): ${e.message}`:e.message:t===void 0?`${e.status}: ${e.body}`:`${t} (${e.status}): ${e.body}`}function o(e,t){return e.length<=t?e:`${e.slice(0,t)}... [truncated ${e.length-t} chars]`}function s(e){try{let t=JSON.stringify(e);return t===void 0?String(e):t}catch{return String(e)}}export{e as n,a as t};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{K as e,M as t,N as n,W as r,X as i,_t as a,c as o,dt as s,f as c,ft as l,g as u,i as d,j as f,l as p,o as m,pt as h,s as g,st as _,t as v,u as y}from"./validate-response-CezyBuEO.mjs";import{$ as b,X as x,Y as S,Z as C,it as w,nt as T,rt as E}from"./index.mjs";function D(){try{new Headers}catch{throw Error(`connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.`)}}var O=function(e){return this instanceof O?(this.v=e,this):new O(e)},k=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof O?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};function A(s){D();let l=s.useBinaryFormat??!1;return{async unary(t,d,f,m,g,_,v){let{serialize:b,parse:x}=r(d,l,s.jsonOptions,s.binaryOptions);return m=m===void 0?s.defaultTimeoutMs:m<=0?void 0:m,await o({interceptors:s.interceptors,signal:f,timeoutMs:m,req:{stream:!1,service:t,method:d,url:i(s.baseUrl,t,d),init:{method:`POST`,credentials:s.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:c(d.kind,l,m,g,!1),contextValues:v??h(),message:_},next:async r=>{let i=s.useHttpGet===!0&&d.idempotency===E.NoSideEffects,o=null;i?r=p(r,b(r.message),l):o=b(r.message);let c=await(s.fetch??globalThis.fetch)(r.url,Object.assign(Object.assign({},r.init),{headers:r.header,signal:r.signal,body:o})),{isUnaryError:f,unaryError:m}=y(d.kind,l,c.status,c.headers);if(f)throw n(await c.json(),a(...u(c.headers)),m);let[h,g]=u(c.headers);return{stream:!1,service:t,method:d,header:h,message:l?x(new Uint8Array(await c.arrayBuffer())):d.O.fromJson(await c.json(),e(s.jsonOptions)),trailer:g}}})},async stream(e,n,a,o,u,d,p){let{serialize:m,parse:_}=r(n,l,s.jsonOptions,s.binaryOptions);function v(e,n,r,i){return k(this,arguments,function*(){let a=S(e).getReader(),o=!1;for(;;){let e=yield O(a.read());if(e.done)break;let{flags:i,data:s}=e.value;if((i&C)===C)throw new b(`protocol error: received unsupported compressed output`,T.Internal);if((i&f)===f){o=!0;let e=t(s);if(e.error){let t=e.error;throw r.forEach((e,n)=>{t.metadata.append(n,e)}),t}e.metadata.forEach((e,t)=>n.set(t,e));continue}yield yield O(_(s))}if(`throwIfAborted`in i&&i.throwIfAborted(),!o)throw`missing EndStreamResponse`})}async function E(e){if(n.kind!=w.ServerStreaming)throw`The fetch API does not support streaming request bodies`;let t=await e[Symbol.asyncIterator]().next();if(t.done==1)throw`missing request message`;return x(0,m(t.value))}return o=o===void 0?s.defaultTimeoutMs:o<=0?void 0:o,await g({interceptors:s.interceptors,timeoutMs:o,signal:a,req:{stream:!0,service:e,method:n,url:i(s.baseUrl,e,n),init:{method:`POST`,credentials:s.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:c(n.kind,l,o,u,!1),contextValues:p??h(),message:d},next:async e=>{let t=await(s.fetch??globalThis.fetch)(e.url,Object.assign(Object.assign({},e.init),{headers:e.header,signal:e.signal,body:await E(e.message)}));if(y(n.kind,l,t.status,t.headers),t.body===null)throw`missing response body`;let r=new Headers;return Object.assign(Object.assign({},e),{header:t.headers,trailer:r,message:v(t.body,r,t.headers,e.signal)})}})}}}var j=function(e){return this instanceof j?(this.v=e,this):new j(e)},M=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i={},s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof j?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};function N(e){D();let t=e.useBinaryFormat??!0;return{async unary(n,a,c,u,f,p,g){let{serialize:y,parse:w}=r(a,t,e.jsonOptions,e.binaryOptions);return u=u===void 0?e.defaultTimeoutMs:u<=0?void 0:u,await o({interceptors:e.interceptors,signal:c,timeoutMs:u,req:{stream:!1,service:n,method:a,url:i(e.baseUrl,n,a),init:{method:`POST`,credentials:e.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:d(t,u,f,!1),contextValues:g??h(),message:p},next:async t=>{let r=await(e.fetch??globalThis.fetch)(t.url,Object.assign(Object.assign({},t.init),{headers:t.header,signal:t.signal,body:x(0,y(t.message))})),{headerError:i}=v(r.status,r.headers);if(!r.body)throw i===void 0?`missing response body`:i;let o=S(r.body).getReader(),c,u;for(;;){let e=await o.read();if(e.done)break;let{flags:t,data:n}=e.value;if((t&C)===C)throw new b(`protocol error: received unsupported compressed output`,T.Internal);if(t===s){if(c!==void 0)throw`extra trailer`;c=l(n);continue}if(u!==void 0)throw new b(`extra message`,T.Unimplemented);u=w(n)}if(c===void 0)throw i===void 0?new b(`missing trailer`,r.headers.has(_)?T.Unimplemented:T.Unknown):i;if(m(c,r.headers),u===void 0)throw new b(`missing message`,c.has(_)?T.Unimplemented:T.Unknown);return{stream:!1,service:n,method:a,header:r.headers,message:u,trailer:c}}})},async stream(n,a,o,c,u,f,p){let{serialize:_,parse:y}=r(a,t,e.jsonOptions,e.binaryOptions);function b(e,t,n,r,i){return M(this,arguments,function*(){let a=S(e).getReader();if(t){if(!(yield j(a.read())).done)throw`extra data for trailers-only`;return yield j(void 0)}let o=!1;for(;;){let e=yield j(a.read());if(e.done)break;let{flags:t,data:i}=e.value;if((t&s)===s){if(o)throw`extra trailer`;o=!0;let e=l(i);m(e,r),e.forEach((e,t)=>n.set(t,e));continue}if(o)throw`extra message`;yield yield j(y(i))}if(`throwIfAborted`in i&&i.throwIfAborted(),!o)throw`missing trailer`})}async function C(e){if(a.kind!=w.ServerStreaming)throw`The fetch API does not support streaming request bodies`;let t=await e[Symbol.asyncIterator]().next();if(t.done==1)throw`missing request message`;return x(0,_(t.value))}return c=c===void 0?e.defaultTimeoutMs:c<=0?void 0:c,g({interceptors:e.interceptors,signal:o,timeoutMs:c,req:{stream:!0,service:n,method:a,url:i(e.baseUrl,n,a),init:{method:`POST`,credentials:e.credentials??`same-origin`,redirect:`error`,mode:`cors`},header:d(t,c,u,!1),contextValues:p??h(),message:f},next:async t=>{let n=await(e.fetch??globalThis.fetch)(t.url,Object.assign(Object.assign({},t.init),{headers:t.header,signal:t.signal,body:await C(t.message)})),{foundStatus:r,headerError:i}=v(n.status,n.headers);if(i!=null)throw i;if(!n.body)throw`missing response body`;let a=new Headers;return Object.assign(Object.assign({},t),{header:n.headers,trailer:a,message:b(n.body,r,a,n.headers,t.signal)})}})}}}export{A as createConnectTransport,N as createGrpcWebTransport};