blink 1.1.15 → 1.1.17
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/cli/{auth-DCUw-BJE.js → auth-Db3lxkv2.js} +2 -2
- package/dist/cli/{chat-ebiRKqit.js → chat-BtLHnRou.js} +1 -1
- package/dist/cli/{dev-D6lIT1u-.js → dev-VE6iNqe3.js} +104 -104
- package/dist/cli/index.js +4 -4
- package/dist/cli/init-BmUPyFWc.js +25 -0
- package/dist/cli/{init-templates-C_keoZ45.js → init-templates-3vtw2MZQ.js} +178 -143
- package/dist/cli/login-D1muj139.js +1 -0
- package/dist/cli/{run-DT3wRuFc.js → run-BlY6czRh.js} +1 -1
- package/dist/cli/{setup-slack-app-Bo1yEsSq.js → setup-slack-app-BeKQIOnA.js} +1 -1
- package/dist/cli/{util-DBfnc6lD.js → util-x4GqZFrj.js} +1 -1
- package/dist/node/agent/index.node.cjs +1 -1
- package/dist/node/agent/index.node.js +1 -1
- package/dist/node/{index.node-sb6fILn2.cjs → index.node-CijG75ex.cjs} +1 -1
- package/dist/node/{index.node-CERnwYbK.js → index.node-CvZqlsJo.js} +1 -1
- package/dist/node/react/index.node.cjs +237 -202
- package/dist/node/react/index.node.d.cts +3 -1
- package/dist/node/react/index.node.d.ts +3 -1
- package/dist/node/react/index.node.js +216 -181
- package/package.json +6 -4
- package/dist/cli/init-DYcep43s.js +0 -3
- package/dist/cli/login-P-KIKeEv.js +0 -1
- /package/dist/cli/{dist-AXHevRdg.js → dist-DxkSGwUH.js} +0 -0
- /package/dist/cli/{open-DCYivxgo.js → open-S_jcQ0nw.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blink",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "Blink is a
|
|
3
|
+
"version": "1.1.17",
|
|
4
|
+
"description": "Blink is a tool for building and deploying AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"blink": "./dist/cli/index.js"
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
],
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsdown",
|
|
73
|
-
"dev-install": "rm -rf ./*.tgz && bun run build && npm pack && bun remove -g blink && bun install -g $(pwd)/*.tgz"
|
|
73
|
+
"dev-install": "rm -rf ./*.tgz && bun run build && npm pack && bun remove -g blink && bun install -g $(pwd)/*.tgz",
|
|
74
|
+
"gen-templates": "bun run src/cli/scripts/generate-templates.ts && cd ../.. && bun format"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
77
|
"@ai-sdk/anthropic": "^2.0.15",
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
"emittery": "^1.2.0",
|
|
92
93
|
"eventsource-parser": "^3.0.6",
|
|
93
94
|
"filenamify": "^7.0.0",
|
|
95
|
+
"handlebars": "^4.7.8",
|
|
94
96
|
"hono": "^4.9.8",
|
|
95
97
|
"ignore": "^7.0.2",
|
|
96
98
|
"ink": "^6.2.3",
|
|
@@ -117,4 +119,4 @@
|
|
|
117
119
|
"engines": {
|
|
118
120
|
"node": ">=18.0.0"
|
|
119
121
|
}
|
|
120
|
-
}
|
|
122
|
+
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ie as e,M as t,Se as n,pD as r,ve as i,xe as a,ye as o}from"./dist-AXHevRdg.js";import"./open-DCYivxgo.js";import"./create-slack-app-CNDXDwfs.js";import{setupSlackApp as s}from"./setup-slack-app-Bo1yEsSq.js";import{templates as c}from"./init-templates-C_keoZ45.js";import{basename as l,join as u}from"path";import{readdir as d,writeFile as f}from"fs/promises";import{spawn as p}from"child_process";function m(e,t){let n=c[e],r={};for(let[e,i]of Object.entries(n))r[e]=i.replace(/\{\{name\}\}/g,t);return r}async function h(c){if(c||=process.cwd(),e(`Initializing a new Blink Agent`),(await d(c)).length>0){let e=await o({message:`Directory is not empty. Initialize anyway?`});(e===!1||r(e))&&(a(`Initialization cancelled.`),process.exit(1))}let h=await i({options:[{label:`Slack Bot`,value:`slack-bot`,hint:`Pre-configured Slack bot`},{label:`Scratch`,value:`scratch`,hint:`Basic agent with example tool`}],message:`Which template do you want to use?`});r(h)&&(a(`Initialization cancelled.`),process.exit(1));let g=h,_=l(c).replace(/[^a-zA-Z0-9]/g,`-`),v;if(process.env.npm_config_user_agent?.includes(`bun/`)?v=`bun`:process.env.npm_config_user_agent?.includes(`pnpm/`)?v=`pnpm`:process.env.npm_config_user_agent?.includes(`yarn/`)?v=`yarn`:process.env.npm_config_user_agent?.includes(`npm/`)&&(v=`npm`),!v){let e=await i({options:[{label:`Bun`,value:`bun`},{label:`NPM`,value:`npm`},{label:`PNPM`,value:`pnpm`},{label:`Yarn`,value:`yarn`}],message:`What package manager do you want to use?`});r(e)&&process.exit(0),v=e}t.info(`Using ${v} as the package manager.`);let y=m(g,_);await Promise.all(Object.entries(y).map(async([e,t])=>{await f(u(c,e),t)})),console.log(``);let b=p(v,[`install`],{stdio:`inherit`,cwd:c});await new Promise((e,t)=>{b.on(`close`,t=>{t===0&&e(void 0)}),b.on(`error`,e=>{t(e)})}),console.log(``);let x=!1;if(g===`slack-bot`){let e=await o({message:`Would you like to set up your Slack app now?`,initialValue:!0});r(e)||!e?(t.info(`You can set up your Slack app later by running:`),t.info(` blink setup slack-app`)):(await s(c,{name:_,packageManager:v}),x=!0),console.log(``)}let S={bun:`bun run dev`,npm:`npm run dev`,pnpm:`pnpm run dev`,yarn:`yarn dev`}[v];t.success(`To get started, run:
|
|
2
|
-
|
|
3
|
-
${S??`blink dev`}`),n(`Edit agent.ts to hot-reload your agent.`),x&&process.exit(0)}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./dist-AXHevRdg.js";import{login as e}from"./auth-DCUw-BJE.js";import"./open-DCYivxgo.js";async function t(){await e()}export{t as default};
|
|
File without changes
|
|
File without changes
|