blink 0.1.19 → 0.1.20
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.
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/{bundler-xPkidrMX.js → bundler-4uIvhhYt.js} +1 -1
- package/dist/{chunk-___ucjiX.js → chunk-BJ0G7Fuz.js} +1 -1
- package/dist/cli/index.js +163 -352
- package/dist/client-C3Dw7WCR.js +53 -0
- package/dist/{client-Co5E3HOW.d.ts → client-D8MT8sJx.d.ts} +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/devtools-BcCRAN0J.js +91 -0
- package/dist/esm-Drha7BPV.js +1 -0
- package/dist/execAsync-BAIOEvm7.js +1 -0
- package/dist/getMachineId-bsd-CBHRhKd5.js +1 -0
- package/dist/getMachineId-darwin-BQAp2C5X.js +2 -0
- package/dist/getMachineId-linux-BDSWA6g7.js +1 -0
- package/dist/getMachineId-unsupported-CEuUrupF.js +1 -0
- package/dist/getMachineId-win-DN5AjfDl.js +1 -0
- package/dist/{node-DpJA8gUZ.js → node-CG2_9pyX.js} +1 -1
- package/dist/runtime/node.d.ts +1 -1
- package/dist/runtime/node.js +1 -1
- package/dist/test.d.ts +2 -2
- package/dist/test.js +1 -1
- package/dist/undici-DW9ax8PQ.js +94 -0
- package/dist/undici-t9VUEQlD.js +1 -0
- package/dist/wrapper-DD6ePqap.js +6 -0
- package/package.json +1 -2
- package/dist/client-7QrAnHDl.js +0 -53
- /package/dist/{api-_RFSw3t6.js → api-CQeRbh-7.js} +0 -0
- /package/dist/{index-DE3EoAtU.d.ts → index-b4FN8qkS.d.ts} +0 -0
package/dist/api/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Agent, AgentDefaultExport, Chat, CreateChatOptions, MessageOptions, SendMessagesOptions, SendMessagesRequest, SendMessagesResponse, StreamResponseFormat, StreamResponseFormatHeader, agent, chat, withResponseFormat } from "../index-
|
|
1
|
+
import { Agent, AgentDefaultExport, Chat, CreateChatOptions, MessageOptions, SendMessagesOptions, SendMessagesRequest, SendMessagesResponse, StreamResponseFormat, StreamResponseFormatHeader, agent, chat, withResponseFormat } from "../index-b4FN8qkS.js";
|
|
2
2
|
export { Agent, AgentDefaultExport, Chat, CreateChatOptions, MessageOptions, SendMessagesOptions, SendMessagesRequest, SendMessagesResponse, StreamResponseFormat, StreamResponseFormatHeader, agent, chat, withResponseFormat };
|
package/dist/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{StreamResponseFormatHeader as e,agent as t,chat as n,withResponseFormat as r}from"../api-
|
|
1
|
+
import{StreamResponseFormatHeader as e,agent as t,chat as n,withResponseFormat as r}from"../api-CQeRbh-7.js";export{e as StreamResponseFormatHeader,t as agent,n as chat,r as withResponseFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__require as e}from"./chunk-
|
|
1
|
+
import{__require as e}from"./chunk-BJ0G7Fuz.js";import{mkdir as t,readFile as n,stat as r}from"fs/promises";import{dirname as i,join as a,relative as o}from"path";async function s(e,{outdir:t}={}){t||=await u(e);let n=a(t,`agent.js`),r=p(),i=await r.build({...f,entryPoints:[e],outfile:n});if(i.errors.length>0)throw Error(`Failed to build agent!`);return{outfile:n}}async function c(e,{onErrors:t,onBuildStart:n,onBuildEnd:r,outdir:i}){let o=p();i||=await u(e);let s=a(i,`agent.js`),c=await o.context({...f,entryPoints:[e],logLevel:`silent`,outfile:s,plugins:[{name:`blink-dev-server`,setup(e){e.onStart(()=>{n?.()}),e.onEnd(e=>{if(e.errors.length>0){t?.(e.errors);return}r?.({outfile:s})})}}]});return await c.watch(),{dispose:()=>{c.dispose()}}}async function l(e){let t=await d(e,`package.json`);if(!t)throw Error(`No package.json found in ${e}`);let s=JSON.parse(await n(t,`utf-8`)),c=s.main;if(!c)throw Error(`"main" is not set in ${o(process.cwd(),t)}. It should be set to the entrypoint of your agent.`);let l=a(i(t),c),u=await r(l);if(!u.isFile())throw Error(`${l} is not a file.`);return l}async function u(e){let n=await d(e,`node_modules`);if(!n){let t=await r(e);return t.isDirectory()?a(e,`.blink`):a(i(e),`.blink`)}let o=a(n,`.blink`);return await t(o,{recursive:!0}),o}async function d(e,t){let n=e;for(;n!==i(n);){let e=a(n,t);try{return await r(e),e}catch{}n=i(n)}}const f={bundle:!0,format:`cjs`,platform:`node`,target:`node18`,sourcemap:`inline`},p=()=>{try{return e(`esbuild`)}catch{throw Error("esbuild is not installed. Please install it with `bun add esbuild`.")}};export{s as build,d as findNearestEntry,l as resolveEntrypoint,c as watch};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=e=>u(n({},`__esModule`,{value:!0}),e),p=e(import.meta.url);export{c as __commonJSMin,s as __esmMin,l as __export,
|
|
1
|
+
import{createRequire as e}from"node:module";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(e&&(t=e(e=0)),t),c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},u=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},d=(e,r,i)=>(i=e==null?{}:t(a(e)),u(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),f=e=>u(n({},`__esModule`,{value:!0}),e),p=e=>t=>d(t.default,e),m=e(import.meta.url);export{c as __commonJSMin,s as __esmMin,l as __export,m as __require,f as __toCommonJS,p as __toDynamicImportESM,d as __toESM};
|