@sylphx/flow 0.0.4 → 0.0.6
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/{chunk-n5gbcebk.js → chunk-02jj9ahn.js} +3 -3
- package/dist/{chunk-n5gbcebk.js.map → chunk-02jj9ahn.js.map} +1 -1
- package/dist/{chunk-t6aqpg7b.js → chunk-1ph5m7yh.js} +3 -3
- package/dist/{chunk-t6aqpg7b.js.map → chunk-1ph5m7yh.js.map} +1 -1
- package/dist/chunk-2cevqakq.js +3 -0
- package/dist/chunk-2cevqakq.js.map +10 -0
- package/dist/{chunk-0fz6p8ka.js → chunk-3nkp0s1j.js} +2 -2
- package/dist/{chunk-0fz6p8ka.js.map → chunk-3nkp0s1j.js.map} +1 -1
- package/dist/chunk-7wd1res1.js +3 -0
- package/dist/{chunk-e07nqvwm.js.map → chunk-7wd1res1.js.map} +2 -2
- package/dist/chunk-7wpv8zs7.js +4 -0
- package/dist/chunk-7wpv8zs7.js.map +11 -0
- package/dist/{chunk-5eyfa6f8.js → chunk-h9kssnyy.js} +2 -2
- package/dist/{chunk-5eyfa6f8.js.map → chunk-h9kssnyy.js.map} +1 -1
- package/dist/{chunk-wj8k6qd1.js → chunk-j08f9mnk.js} +2 -2
- package/dist/{chunk-wj8k6qd1.js.map → chunk-j08f9mnk.js.map} +1 -1
- package/dist/chunk-jgkkyjtr.js +4 -0
- package/dist/chunk-jgkkyjtr.js.map +10 -0
- package/dist/{chunk-6hhhwb03.js → chunk-pcm6twpw.js} +2 -2
- package/dist/{chunk-6hhhwb03.js.map → chunk-pcm6twpw.js.map} +1 -1
- package/dist/{chunk-hpef24m4.js → chunk-qb07mbyd.js} +3 -3
- package/dist/{chunk-hpef24m4.js.map → chunk-qb07mbyd.js.map} +1 -1
- package/dist/{chunk-e80fq5bq.js → chunk-x46tzzn9.js} +2 -2
- package/dist/{chunk-e80fq5bq.js.map → chunk-x46tzzn9.js.map} +1 -1
- package/dist/{chunk-8saardnr.js → chunk-y21bxgfy.js} +3 -3
- package/dist/{chunk-8saardnr.js.map → chunk-y21bxgfy.js.map} +1 -1
- package/dist/{chunk-n9kqfqp9.js → chunk-y6n0153m.js} +2 -2
- package/dist/{chunk-n9kqfqp9.js.map → chunk-y6n0153m.js.map} +1 -1
- package/dist/{chunk-sdjvmsk2.js → chunk-zn6bhyhc.js} +2 -2
- package/dist/{chunk-sdjvmsk2.js.map → chunk-zn6bhyhc.js.map} +1 -1
- package/dist/index.js +427 -296
- package/dist/index.js.map +146 -76
- package/package.json +6 -1
- package/dist/chunk-e07nqvwm.js +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Sylphx Flow - Type-safe development flow for modern web development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -60,10 +60,15 @@
|
|
|
60
60
|
},
|
|
61
61
|
"packageManager": "bun@1.3.1",
|
|
62
62
|
"dependencies": {
|
|
63
|
+
"@ai-sdk/anthropic": "^2.0.40",
|
|
64
|
+
"@ai-sdk/google": "^2.0.26",
|
|
65
|
+
"@ai-sdk/openai": "^2.0.59",
|
|
63
66
|
"@huggingface/transformers": "^3.7.6",
|
|
64
67
|
"@lancedb/lancedb": "^0.22.2",
|
|
65
68
|
"@libsql/client": "^0.15.15",
|
|
66
69
|
"@modelcontextprotocol/sdk": "^1.20.2",
|
|
70
|
+
"@openrouter/ai-sdk-provider": "^1.2.0",
|
|
71
|
+
"ai": "^5.0.85",
|
|
67
72
|
"boxen": "^8.0.1",
|
|
68
73
|
"chalk": "^5.6.2",
|
|
69
74
|
"chokidar": "^4.0.3",
|
package/dist/chunk-e07nqvwm.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{B,E as D}from"./chunk-e80fq5bq.js";var A=()=>{let q=process.argv,b=q[0],w=q[1];if(w.includes("/_npx/")&&w.includes("github"))return{type:"github",repo:"github:sylphxltd/flow"};if(w.includes("/_npx/")){let z=w.match(/@sylphx\/flow|@sylphxltd\/flow/);return{type:"npm",package:z?z[0]:"@sylphx/flow"}}if(b.includes("bun")&&!w.includes(process.cwd()))return{type:"bunx",package:"@sylphx/flow"};if(w.includes(process.cwd())){if(b.includes("bun"))return{type:"local-dev",script:"bun run dev"};return{type:"local-dev",script:"npm run dev"}}if(w.includes("node_modules/.bin")||w.includes("/bin/sylphx-flow"))return{type:"global",command:"sylphx-flow"};return{type:"unknown"}},E=(q)=>{let b=q||A();switch(b.type){case"npm":return`npx -y ${b.package}`;case"github":return`npx -y ${b.repo}`;case"bunx":return`bunx ${b.package}`;case"local-dev":return b.script;case"global":return b.command;case"unknown":return"npx -y @sylphx/flow"}},F=(q)=>{let b=q||A();switch(b.type){case"npm":return["-y",b.package,"mcp","start"];case"github":return["-y",b.repo,"mcp","start"];case"bunx":return[b.package,"mcp","start"];case"local-dev":return["./dist/index.js","mcp","start"];case"global":return[b.command,"mcp","start"];case"unknown":return["-y","@sylphx/flow","mcp","start"]}},G=(q)=>{switch((q||A()).type){case"npm":case"github":return"npx";case"bunx":return"bunx";case"local-dev":return process.execPath.includes("bun")?"bun":"node";case"global":case"unknown":return"npx"}},H=(q,b,w)=>{return`${E(w)} hook --type ${q} --target ${b}`},J=async(q)=>{let{updateSettings:b}=await import("./chunk-n5gbcebk.js");await b({invocationMethod:q})},K=async()=>{let{loadSettings:q}=await import("./chunk-n5gbcebk.js"),b=await q();if(b._tag==="Success")return b.value.invocationMethod;return};export{J as saveInvocationMethod,K as loadInvocationMethod,G as getMCPServerCommand,F as getMCPServerArgs,E as getCommandPrefix,H as generateHookCommand,A as detectInvocation};
|
|
2
|
-
|
|
3
|
-
//# debugId=D12C629143DE13EC64756E2164756E21
|