@sureshdsk/devflow-mcp 3.0.0 → 3.0.2
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +4 -4
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +1 -1
- package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/_not-found/page.js +2 -2
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +14 -13
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +14 -13
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +5 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/projects/[id]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/projects/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/projects/route.js +2 -2
- package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/specs/[name]/artifacts/[artifactType]/approve/route.js +2 -2
- package/.next/standalone/.next/server/app/api/specs/[name]/artifacts/[artifactType]/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/specs/[name]/artifacts/[artifactType]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/specs/[name]/artifacts/[artifactType]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/specs/[name]/promote/route.js +2 -2
- package/.next/standalone/.next/server/app/api/specs/[name]/promote/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/specs/[name]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/specs/[name]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/specs/route.js +2 -2
- package/.next/standalone/.next/server/app/api/specs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/[id]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/tasks/route.js +2 -2
- package/.next/standalone/.next/server/app/api/tasks/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +15 -14
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +15 -14
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +5 -4
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/page.js +2 -2
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/specs/[name]/page/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/specs/[name]/page.js +2 -2
- package/.next/standalone/.next/server/app/specs/[name]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/specs/[name]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0be0eb8b._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__a9d478ee._.js → [root-of-the-server]__160c54ca._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__17ac51e3._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1bb083e9._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1dc1e944._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__22ecfa2c._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__13a93eb6._.js → [root-of-the-server]__64710c0d._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a2b7e5f2._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cf302bda._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d85482cd._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__dfa21757._.js +3 -0
- package/.next/standalone/.next/server/chunks/_3f452afe._.js +2 -2
- package/.next/standalone/.next/server/chunks/src_db_index_ts_a71f50f0._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__023e2c69._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0a1a1435._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0c49a387._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__1be1fc5f._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__3a2f2efb._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4693399c._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__937c9212._.js → [root-of-the-server]__72a14301._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__8064ca06._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__8b786d48._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__8c052461._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__8d306066._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__9532fd59._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a119dd75._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__7fb6ef14._.js → [root-of-the-server]__a57b312b._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a80bd0ea._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__abe095b3._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__ad3bd783._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__1e05fe0e._.js → [root-of-the-server]__ae9f05d6._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__c8781469._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__c8a25070._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e8c1e595._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0ff3de19._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_01a5cd4b._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_05c6819f._.js +31 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_06c2c30a._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_09efe605._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_mermaid_dist_chunks_mermaid_core_ef601841._.js → node_modules_0a439e3b._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_3507b41a._.js → node_modules_0e73ad6c._.js} +3 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0e7ff06d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_0f73e25c._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_14cf9cea._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_19801f01._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_2235b8cf._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_23096c6d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_23db4cf7._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_24381e95._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_24ca0eb6._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_27525793._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_mermaid_dist_chunks_mermaid_core_4cfa6360._.js → node_modules_27c20382._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_2c901b92._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_33b818b7._.js +45 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_345d7791._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_36185c24._.js +45 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_3ac7ce09._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_41b77cc7._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_ed317ff6._.js → node_modules_42acd8db._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_434aa5ec._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_54a9e72d._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_54f1273a._.js +26 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_58d64491._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_5e012e3d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_5ea9e4cf._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_5ecf8270._.js +26 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_611c99b5._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/{node_modules_d3-scale_src_e02ef77f._.js → node_modules_6629853d._.js} +2 -2
- package/.next/standalone/.next/server/chunks/ssr/node_modules_6fe2661c._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_7fe65a84._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_860f971a._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_882f3743._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_8e047938._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_9268cdc4._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_942541c9._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_9d52c0d6._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_@tanstack_query-core_build_modern_21ece5ea._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_ae6841d2._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_ba280bb0._.js +31 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_bffdb8ec._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_c00f1821._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_c142ba86._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_d1a47cde._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_d9b454fe._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_dbe36b1d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_ddbe26b7._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_e76b8bf2._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_e945b74d._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_fbd8a2ee._.js +17 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_31d456ba._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_katex_dist_katex_mjs_e1edc676._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_lodash-es_33e24dce._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-QXUST7PY_mjs_159fba97._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-S3R3BYOJ_mjs_dbeeb277._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_mermaid_core_mjs_a11916de._.js +9 -0
- package/.next/standalone/.next/server/chunks/ssr/src_66a70595._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/src_components_kanban-board_tsx_7b875e8e._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/4f23f64d46848f57.js +1 -0
- package/.next/standalone/.next/static/chunks/53081dcdcad4f31e.js +1 -0
- package/.next/{static/chunks/6a3d582315f1c214.js → standalone/.next/static/chunks/701cfcbb41e0ab47.js} +1 -1
- package/.next/standalone/.next/static/chunks/ac4b6b4d5b7e486e.css +1 -0
- package/.next/standalone/.next/static/chunks/d0309ea872db5d9f.js +1 -0
- package/.next/standalone/.next/static/chunks/d4cf8893a018e965.js +1 -0
- package/.next/standalone/.next/static/chunks/e6c0233269a4bd69.js +13 -0
- package/.next/{static/chunks/7e65cfa9841f66a5.js → standalone/.next/static/chunks/e7d83ce855afe416.js} +2 -2
- package/.next/standalone/.next/static/chunks/ee7035560fc9e5e9.js +1 -0
- package/.next/{static/chunks/turbopack-f4d3806ab575051d.js → standalone/.next/static/chunks/turbopack-8b3b66a22a5e0fb4.js} +2 -2
- package/.next/standalone/.next/static/static/V6JvQiyb7wzYpHUOLB6BC/_buildManifest.js +11 -0
- package/.next/standalone/.next/static/static/V6JvQiyb7wzYpHUOLB6BC/_clientMiddlewareManifest.json +1 -0
- package/.next/standalone/.next/static/static/V6JvQiyb7wzYpHUOLB6BC/_ssgManifest.js +1 -0
- package/.next/standalone/.next/static/static/chunks/01c05b0fdc89fc0c.js +2 -0
- package/.next/standalone/.next/static/static/chunks/034e8cfdbd1cf3ac.js +24 -0
- package/.next/standalone/.next/static/static/chunks/0356b23e9d8fbd11.js +160 -0
- package/.next/standalone/.next/static/static/chunks/0697f660af9a95f1.js +1 -0
- package/.next/standalone/.next/static/static/chunks/09e4e9409aadc2fe.js +1 -0
- package/.next/standalone/.next/static/static/chunks/09ec2e3c3d2d294f.js +29 -0
- package/.next/standalone/.next/static/static/chunks/1bdb5b021c9a4e61.js +62 -0
- package/.next/standalone/.next/static/static/chunks/1cec4d71237d0c89.js +15 -0
- package/.next/standalone/.next/static/static/chunks/20337e5244416041.js +1 -0
- package/.next/standalone/.next/static/static/chunks/20c1169c30c95e0f.js +1 -0
- package/.next/standalone/.next/static/static/chunks/27f5fab49d8a5395.js +1 -0
- package/.next/standalone/.next/static/static/chunks/31965ae569bf807f.js +24 -0
- package/.next/standalone/.next/static/static/chunks/34e2788a0be7ee63.js +1 -0
- package/.next/standalone/.next/static/static/chunks/3e6042c77fa8e7ac.js +1 -0
- package/.next/standalone/.next/static/static/chunks/46d959abf8046f0e.js +15 -0
- package/.next/standalone/.next/static/static/chunks/483effa74d32093a.js +1 -0
- package/.next/standalone/.next/static/static/chunks/4f23f64d46848f57.js +1 -0
- package/.next/standalone/.next/static/static/chunks/53081dcdcad4f31e.js +1 -0
- package/.next/standalone/.next/static/static/chunks/539636bf51e84308.js +1 -0
- package/.next/standalone/.next/static/static/chunks/559e55a53f22f5d1.js +1 -0
- package/.next/standalone/.next/static/static/chunks/5623d8a1c99eba62.js +1 -0
- package/.next/standalone/.next/static/static/chunks/581c7f8a86cc86fb.js +1 -0
- package/.next/standalone/.next/static/static/chunks/5c05dda6ed4d92bf.js +1 -0
- package/.next/standalone/.next/static/static/chunks/5eac621951969859.js +60 -0
- package/.next/standalone/.next/static/static/chunks/6f4c5a75f38f686b.js +1 -0
- package/.next/standalone/.next/static/static/chunks/6fee5c7b5d483c8a.js +5 -0
- package/.next/standalone/.next/static/static/chunks/701cfcbb41e0ab47.js +1 -0
- package/.next/standalone/.next/static/static/chunks/70b3258c508216b5.js +4 -0
- package/.next/standalone/.next/static/static/chunks/762121739217e5da.js +1 -0
- package/.next/standalone/.next/static/static/chunks/808075c416a273c9.js +2 -0
- package/.next/standalone/.next/static/static/chunks/8321c26033c9fc5b.js +1 -0
- package/.next/standalone/.next/static/static/chunks/87f01c0a5d4010ab.js +1 -0
- package/.next/standalone/.next/static/static/chunks/89ebb4231102677a.js +77 -0
- package/.next/standalone/.next/static/static/chunks/909ac8a87c0dd9cb.js +215 -0
- package/.next/standalone/.next/static/static/chunks/9525dc246b363870.js +262 -0
- package/.next/standalone/.next/static/static/chunks/957a5dae245bbc84.js +1 -0
- package/.next/standalone/.next/static/static/chunks/9a52b8ded6a9ee38.js +215 -0
- package/.next/standalone/.next/static/static/chunks/9eb0474ddf7f6238.js +80 -0
- package/.next/standalone/.next/static/static/chunks/a6dad97d9634a72d.js +1 -0
- package/.next/standalone/.next/static/static/chunks/a6dad97d9634a72d.js.map +1 -0
- package/.next/standalone/.next/static/static/chunks/a85d55e8b6841436.js +1 -0
- package/.next/standalone/.next/static/static/chunks/ac4b6b4d5b7e486e.css +1 -0
- package/.next/standalone/.next/static/static/chunks/ad24b3b0881818aa.js +4 -0
- package/.next/standalone/.next/static/static/chunks/ae52f8e72d4127b1.js +59 -0
- package/.next/standalone/.next/static/static/chunks/af66c50a65af610b.js +93 -0
- package/.next/standalone/.next/static/static/chunks/b8b36494d4330f5f.js +152 -0
- package/.next/standalone/.next/static/static/chunks/b8ca88454bfa8e05.js +148 -0
- package/.next/standalone/.next/static/static/chunks/b9a047fc90291dbd.js +63 -0
- package/.next/standalone/.next/static/static/chunks/be28d13ded360528.js +117 -0
- package/.next/standalone/.next/static/static/chunks/c231010aae14914b.js +1 -0
- package/.next/standalone/.next/static/static/chunks/c36e148ece9c20ae.js +43 -0
- package/.next/standalone/.next/static/static/chunks/cb863a7e46548566.js +15 -0
- package/.next/standalone/.next/static/static/chunks/ce4052f386943efb.js +1 -0
- package/.next/standalone/.next/static/static/chunks/d0309ea872db5d9f.js +1 -0
- package/.next/standalone/.next/static/static/chunks/d4cf8893a018e965.js +1 -0
- package/.next/standalone/.next/static/static/chunks/d5b700b8aafeea3b.js +55 -0
- package/.next/standalone/.next/static/static/chunks/dc16aeb5aabadbd8.js +136 -0
- package/.next/standalone/.next/static/static/chunks/de9c5219846f92bb.js +53 -0
- package/.next/standalone/.next/static/static/chunks/df3c9c7fcf3e0a3d.js +15 -0
- package/.next/standalone/.next/static/static/chunks/e6c0233269a4bd69.js +13 -0
- package/.next/standalone/.next/static/static/chunks/e7d83ce855afe416.js +5 -0
- package/.next/standalone/.next/static/static/chunks/eb22f55ae829d296.js +36 -0
- package/.next/standalone/.next/static/static/chunks/ec0de430276c8209.js +1 -0
- package/.next/standalone/.next/static/static/chunks/ed2e02f2db03c1dc.js +1 -0
- package/.next/standalone/.next/static/static/chunks/ee7035560fc9e5e9.js +1 -0
- package/.next/standalone/.next/static/static/chunks/f1f8594d5ec7b93e.js +1 -0
- package/.next/standalone/.next/static/static/chunks/f42ff7863eb4c3ff.js +1 -0
- package/.next/standalone/.next/static/static/chunks/f678cdcec3cea0de.js +1 -0
- package/.next/standalone/.next/static/static/chunks/f7a6fed60fb079dd.js +1 -0
- package/.next/standalone/.next/static/static/chunks/f9eb3f4ff87b8d8d.js +56 -0
- package/.next/standalone/.next/static/static/chunks/ff1a16fafef87110.js +1 -0
- package/.next/standalone/.next/static/static/chunks/ff49535ba8193dec.js +1 -0
- package/.next/standalone/.next/static/static/chunks/turbopack-8b3b66a22a5e0fb4.js +4 -0
- package/.next/standalone/.next/static/static/media/favicon.0b3bf435.ico +0 -0
- package/.next/standalone/AGENTS.md +13 -7
- package/.next/standalone/CONTRIBUTING.md +42 -26
- package/.next/standalone/README.md +166 -25
- package/.next/standalone/bin/devflow.js +12 -5
- package/.next/standalone/bun.lock +78 -24
- package/.next/standalone/devflow/project-config.json +4 -0
- package/.next/standalone/devflow/schemas/api-first/schema.yaml +39 -0
- package/.next/standalone/devflow/schemas/api-first/templates/api-design.md +41 -0
- package/.next/standalone/devflow/schemas/api-first/templates/db-design.md +28 -0
- package/.next/standalone/devflow/schemas/api-first/templates/final-architecture.md +31 -0
- package/.next/standalone/devflow/schemas/api-first/templates/proposal.md +22 -0
- package/.next/standalone/devflow/schemas/api-first/templates/tasks.md +16 -0
- package/.next/standalone/devflow/specs/autodetect-skill-and-slash-command-installation/.approvals.json +1 -1
- package/.next/standalone/devflow/specs/autodetect-skill-and-slash-command-installation/.meta.json +1 -1
- package/.next/standalone/devflow/specs/autodetect-skill-and-slash-command-installation/design.md +11 -0
- package/.next/standalone/devflow/specs/autodetect-skill-and-slash-command-installation/proposal.md +3 -0
- package/.next/standalone/devflow/specs/autodetect-skill-and-slash-command-installation/tasks.md +34 -2
- package/.next/standalone/devflow/specs/precommit/.approvals.json +26 -0
- package/.next/standalone/devflow/specs/precommit/.meta.json +7 -0
- package/.next/standalone/devflow/specs/precommit/design.md +105 -0
- package/.next/standalone/devflow/specs/precommit/proposal.md +43 -0
- package/.next/standalone/devflow/specs/precommit/specs.md +89 -0
- package/.next/standalone/devflow/specs/precommit/tasks.md +283 -0
- package/.next/standalone/docs/custom-schemas.md +117 -0
- package/.next/standalone/docs/local-dev-guide.md +73 -0
- package/.next/standalone/drizzle.config.ts +7 -7
- package/.next/standalone/eslint.config.mjs +2 -2
- package/.next/standalone/instrumentation.ts +3 -5
- package/.next/standalone/next.config.ts +11 -2
- package/.next/standalone/node_modules/{sharp → libsql}/node_modules/detect-libc/package.json +4 -8
- package/.next/standalone/package-lock.json +5257 -2085
- package/.next/standalone/package.json +18 -9
- package/.next/standalone/postcss.config.mjs +1 -1
- package/.next/standalone/scripts/init-db.js +3 -5
- package/.next/standalone/scripts/init-db.test.js +6 -6
- package/.next/standalone/scripts/init-schema.js +22 -22
- package/.next/standalone/scripts/init-schema.test.js +45 -45
- package/.next/standalone/scripts/install-environments.js +27 -8
- package/.next/standalone/scripts/install-environments.test.js +19 -10
- package/.next/standalone/scripts/install-skills.js +104 -31
- package/.next/standalone/scripts/install-skills.test.js +6 -6
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/src/app/api/agents/route.ts +2 -2
- package/.next/standalone/src/app/api/projects/[id]/route.ts +10 -19
- package/.next/standalone/src/app/api/projects/route.ts +4 -10
- package/.next/standalone/src/app/api/specs/[name]/artifacts/[artifactType]/approve/route.ts +8 -8
- package/.next/standalone/src/app/api/specs/[name]/artifacts/[artifactType]/route.ts +14 -14
- package/.next/standalone/src/app/api/specs/[name]/promote/route.ts +17 -23
- package/.next/standalone/src/app/api/specs/[name]/route.ts +34 -36
- package/.next/standalone/src/app/api/specs/route.ts +10 -10
- package/.next/standalone/src/app/api/tasks/[id]/route.ts +11 -33
- package/.next/standalone/src/app/api/tasks/route.ts +3 -6
- package/.next/standalone/src/app/globals.css +3 -3
- package/.next/standalone/src/app/layout.tsx +9 -5
- package/.next/standalone/src/app/page.tsx +1 -1
- package/.next/standalone/src/app/specs/[name]/page.tsx +26 -68
- package/.next/standalone/src/components/kanban-board.tsx +78 -157
- package/.next/standalone/src/components/kanban-column.tsx +10 -12
- package/.next/standalone/src/components/markdown-preview.tsx +36 -19
- package/.next/standalone/src/components/providers.tsx +20 -0
- package/.next/standalone/src/components/specs/artifact-dag-status.tsx +12 -14
- package/.next/standalone/src/components/specs/artifact-editor.tsx +55 -26
- package/.next/standalone/src/components/specs/spec-detail.tsx +48 -40
- package/.next/standalone/src/components/specs/spec-kanban-column.tsx +49 -68
- package/.next/standalone/src/components/specs/spec-modal.tsx +119 -83
- package/.next/standalone/src/components/task-card.tsx +34 -38
- package/.next/standalone/src/components/task-dialog.tsx +16 -31
- package/.next/standalone/src/components/ui/badge.tsx +12 -18
- package/.next/standalone/src/components/ui/button.tsx +23 -28
- package/.next/standalone/src/components/ui/card.tsx +42 -62
- package/.next/standalone/src/components/ui/dialog.tsx +17 -35
- package/.next/standalone/src/db/index.ts +10 -10
- package/.next/standalone/src/db/schema.ts +37 -37
- package/.next/standalone/src/hooks/use-queries.ts +81 -0
- package/.next/standalone/src/hooks/use-websocket.ts +74 -0
- package/.next/standalone/src/lib/schema.test.ts +37 -37
- package/.next/standalone/src/lib/schema.ts +77 -31
- package/.next/standalone/src/lib/specs-dir.ts +8 -8
- package/.next/standalone/src/lib/specs.ts +98 -92
- package/.next/standalone/src/lib/utils.ts +2 -2
- package/.next/standalone/src/mcp/server.ts +556 -349
- package/.next/standalone/src/mcp/websocket.ts +26 -23
- package/.next/standalone/src/schemas/backend-api/templates/proposal.md +6 -4
- package/.next/standalone/src/schemas/backend-api/templates/tasks.md +6 -0
- package/.next/standalone/src/schemas/data-engineering/templates/proposal.md +6 -4
- package/.next/standalone/src/schemas/data-engineering/templates/tasks.md +6 -0
- package/.next/standalone/src/schemas/devops-platform/templates/proposal.md +6 -4
- package/.next/standalone/src/schemas/devops-platform/templates/tasks.md +6 -0
- package/.next/standalone/src/schemas/frontend-product/templates/proposal.md +6 -4
- package/.next/standalone/src/schemas/frontend-product/templates/tasks.md +6 -0
- package/.next/standalone/src/schemas/spec-driven/templates/proposal.md +6 -4
- package/.next/standalone/src/schemas/spec-driven/templates/tasks.md +26 -0
- package/.next/standalone/src/websocket/server.ts +20 -18
- package/.next/standalone/tsconfig.json +3 -12
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/README.md +166 -25
- package/bin/devflow.js +12 -5
- package/drizzle.config.ts +7 -7
- package/next.config.ts +11 -2
- package/package.json +18 -9
- package/scripts/init-db.js +3 -5
- package/scripts/init-db.test.js +6 -6
- package/scripts/init-schema.js +22 -22
- package/scripts/init-schema.test.js +45 -45
- package/scripts/install-environments.js +27 -8
- package/scripts/install-environments.test.js +19 -10
- package/scripts/install-skills.js +104 -31
- package/scripts/install-skills.test.js +6 -6
- package/src/app/api/agents/route.ts +2 -2
- package/src/app/api/projects/[id]/route.ts +10 -19
- package/src/app/api/projects/route.ts +4 -10
- package/src/app/api/specs/[name]/artifacts/[artifactType]/approve/route.ts +8 -8
- package/src/app/api/specs/[name]/artifacts/[artifactType]/route.ts +14 -14
- package/src/app/api/specs/[name]/promote/route.ts +17 -23
- package/src/app/api/specs/[name]/route.ts +34 -36
- package/src/app/api/specs/route.ts +10 -10
- package/src/app/api/tasks/[id]/route.ts +11 -33
- package/src/app/api/tasks/route.ts +3 -6
- package/src/app/globals.css +3 -3
- package/src/app/layout.tsx +9 -5
- package/src/app/page.tsx +1 -1
- package/src/app/specs/[name]/page.tsx +26 -68
- package/src/components/kanban-board.tsx +78 -157
- package/src/components/kanban-column.tsx +10 -12
- package/src/components/markdown-preview.tsx +36 -19
- package/src/components/providers.tsx +20 -0
- package/src/components/specs/artifact-dag-status.tsx +12 -14
- package/src/components/specs/artifact-editor.tsx +55 -26
- package/src/components/specs/spec-detail.tsx +48 -40
- package/src/components/specs/spec-kanban-column.tsx +49 -68
- package/src/components/specs/spec-modal.tsx +119 -83
- package/src/components/task-card.tsx +34 -38
- package/src/components/task-dialog.tsx +16 -31
- package/src/components/ui/badge.tsx +12 -18
- package/src/components/ui/button.tsx +23 -28
- package/src/components/ui/card.tsx +42 -62
- package/src/components/ui/dialog.tsx +17 -35
- package/src/db/index.ts +10 -10
- package/src/db/schema.ts +37 -37
- package/src/hooks/use-queries.ts +81 -0
- package/src/hooks/use-websocket.ts +74 -0
- package/src/lib/schema.test.ts +37 -37
- package/src/lib/schema.ts +77 -31
- package/src/lib/specs-dir.ts +8 -8
- package/src/lib/specs.ts +98 -92
- package/src/lib/utils.ts +2 -2
- package/src/mcp/server.ts +556 -349
- package/src/mcp/websocket.ts +26 -23
- package/src/schemas/backend-api/templates/proposal.md +6 -4
- package/src/schemas/backend-api/templates/tasks.md +6 -0
- package/src/schemas/data-engineering/templates/proposal.md +6 -4
- package/src/schemas/data-engineering/templates/tasks.md +6 -0
- package/src/schemas/devops-platform/templates/proposal.md +6 -4
- package/src/schemas/devops-platform/templates/tasks.md +6 -0
- package/src/schemas/frontend-product/templates/proposal.md +6 -4
- package/src/schemas/frontend-product/templates/tasks.md +6 -0
- package/src/schemas/spec-driven/templates/proposal.md +6 -4
- package/src/schemas/spec-driven/templates/tasks.md +26 -0
- package/src/types/bun-sqlite.d.ts +1 -1
- package/src/websocket/server.ts +20 -18
- package/tsconfig.json +3 -12
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1be4e4b6._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__492a4a24._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__67c59ae1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6cc7aecd._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__83a77b07._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__88d91cb5._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a9e095e8._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__b367d327._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb413bbc._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0b8c072a._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__12b2191f._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__15316462._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__19c9c409._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__19e5e22f._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__25b5ccb3._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__2f78c3da._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__3160b3f4._.js +0 -9
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__319559be._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__34f7cbcb._.js +0 -31
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__3abab94b._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__3b3d8930._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4250799b._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4c29cbc3._.js +0 -26
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4e0bb6eb._.js +0 -9
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__5678d2e3._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__673445e0._.js +0 -31
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__934de06b._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__9b6c6f09._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a1b83a98._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__b00a15c5._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__b8567be3._.js +0 -26
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__ce64536e._.js +0 -45
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e96d33d2._.js +0 -45
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__fd7ec054._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_16a3f9e7._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules_45bce0e1._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_5e5a372d._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules_6ece6f1e._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_d173e749._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_d3-shape_src_arc_fb1ac087.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_1f73a830._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_663ac803._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-FMBD7UC4_mjs_4f485529._.js +0 -17
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-TZMSLE5B_mjs_8436a62a._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_f78d2dc4._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/src_app_layout_tsx_cc8184fa._.js +0 -3
- package/.next/standalone/devflow/specs/add-default-schema-template-selection/.approvals.json +0 -26
- package/.next/standalone/devflow/specs/add-default-schema-template-selection/.meta.json +0 -8
- package/.next/standalone/devflow/specs/add-default-schema-template-selection/design.md +0 -126
- package/.next/standalone/devflow/specs/add-default-schema-template-selection/proposal.md +0 -65
- package/.next/standalone/devflow/specs/add-default-schema-template-selection/specs.md +0 -107
- package/.next/standalone/devflow/specs/add-default-schema-template-selection/tasks.md +0 -235
- package/.next/standalone/devflow/specs/test-no-project/.approvals.json +0 -17
- package/.next/standalone/devflow/specs/test-no-project/.meta.json +0 -6
- package/.next/standalone/devflow/specs/ui-cleanup/.approvals.json +0 -29
- package/.next/standalone/devflow/specs/ui-cleanup/.meta.json +0 -6
- package/.next/standalone/devflow/specs/ui-cleanup/design.md +0 -49
- package/.next/standalone/devflow/specs/ui-cleanup/proposal.md +0 -34
- package/.next/standalone/devflow/specs/ui-cleanup/specs.md +0 -55
- package/.next/standalone/devflow/specs/ui-cleanup/tasks.md +0 -28
- package/.next/standalone/node_modules/@img/colour/color.cjs +0 -1594
- package/.next/standalone/node_modules/@img/colour/index.cjs +0 -1
- package/.next/standalone/node_modules/@img/colour/package.json +0 -45
- package/.next/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-darwin-arm64/package.json +0 -40
- package/.next/standalone/node_modules/@img/sharp-libvips-darwin-arm64/README.md +0 -46
- package/.next/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h +0 -220
- package/.next/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js +0 -1
- package/.next/standalone/node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-darwin-arm64/package.json +0 -36
- package/.next/standalone/node_modules/@img/sharp-libvips-darwin-arm64/versions.json +0 -30
- package/.next/standalone/node_modules/buffer-from/index.js +0 -72
- package/.next/standalone/node_modules/buffer-from/package.json +0 -19
- package/.next/standalone/node_modules/sharp/lib/channel.js +0 -177
- package/.next/standalone/node_modules/sharp/lib/colour.js +0 -195
- package/.next/standalone/node_modules/sharp/lib/composite.js +0 -212
- package/.next/standalone/node_modules/sharp/lib/constructor.js +0 -499
- package/.next/standalone/node_modules/sharp/lib/index.js +0 -16
- package/.next/standalone/node_modules/sharp/lib/input.js +0 -809
- package/.next/standalone/node_modules/sharp/lib/is.js +0 -143
- package/.next/standalone/node_modules/sharp/lib/libvips.js +0 -207
- package/.next/standalone/node_modules/sharp/lib/operation.js +0 -1016
- package/.next/standalone/node_modules/sharp/lib/output.js +0 -1666
- package/.next/standalone/node_modules/sharp/lib/resize.js +0 -595
- package/.next/standalone/node_modules/sharp/lib/sharp.js +0 -121
- package/.next/standalone/node_modules/sharp/lib/utility.js +0 -291
- package/.next/standalone/node_modules/sharp/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/.next/standalone/node_modules/sharp/node_modules/detect-libc/lib/elf.js +0 -39
- package/.next/standalone/node_modules/sharp/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/.next/standalone/node_modules/sharp/node_modules/detect-libc/lib/process.js +0 -24
- package/.next/standalone/node_modules/sharp/node_modules/semver/classes/comparator.js +0 -143
- package/.next/standalone/node_modules/sharp/node_modules/semver/classes/range.js +0 -557
- package/.next/standalone/node_modules/sharp/node_modules/semver/classes/semver.js +0 -333
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/cmp.js +0 -54
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/coerce.js +0 -62
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/compare.js +0 -7
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/eq.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/gt.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/gte.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/lt.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/lte.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/neq.js +0 -5
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/parse.js +0 -18
- package/.next/standalone/node_modules/sharp/node_modules/semver/functions/satisfies.js +0 -12
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/constants.js +0 -37
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/debug.js +0 -11
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/identifiers.js +0 -29
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/lrucache.js +0 -42
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/parse-options.js +0 -17
- package/.next/standalone/node_modules/sharp/node_modules/semver/internal/re.js +0 -223
- package/.next/standalone/node_modules/sharp/node_modules/semver/package.json +0 -78
- package/.next/standalone/node_modules/sharp/package.json +0 -202
- package/.next/standalone/node_modules/source-map/lib/array-set.js +0 -121
- package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/.next/standalone/node_modules/source-map/lib/base64.js +0 -67
- package/.next/standalone/node_modules/source-map/lib/binary-search.js +0 -111
- package/.next/standalone/node_modules/source-map/lib/mapping-list.js +0 -79
- package/.next/standalone/node_modules/source-map/lib/quick-sort.js +0 -114
- package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/.next/standalone/node_modules/source-map/lib/source-node.js +0 -413
- package/.next/standalone/node_modules/source-map/lib/util.js +0 -488
- package/.next/standalone/node_modules/source-map/package.json +0 -73
- package/.next/standalone/node_modules/source-map/source-map.js +0 -8
- package/.next/standalone/node_modules/source-map-support/LICENSE.md +0 -21
- package/.next/standalone/node_modules/source-map-support/README.md +0 -284
- package/.next/standalone/node_modules/source-map-support/browser-source-map-support.js +0 -114
- package/.next/standalone/node_modules/source-map-support/package.json +0 -31
- package/.next/standalone/node_modules/source-map-support/register-hook-require.js +0 -1
- package/.next/standalone/node_modules/source-map-support/register.js +0 -1
- package/.next/standalone/node_modules/source-map-support/source-map-support.js +0 -625
- package/.next/standalone/node_modules/typescript/lib/_tsc.js +0 -133818
- package/.next/standalone/node_modules/typescript/lib/_tsserver.js +0 -659
- package/.next/standalone/node_modules/typescript/lib/_typingsInstaller.js +0 -222
- package/.next/standalone/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/tsc.js +0 -8
- package/.next/standalone/node_modules/typescript/lib/tsserver.js +0 -8
- package/.next/standalone/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/.next/standalone/node_modules/typescript/lib/typesMap.json +0 -497
- package/.next/standalone/node_modules/typescript/lib/typescript.js +0 -200276
- package/.next/standalone/node_modules/typescript/lib/typingsInstaller.js +0 -8
- package/.next/standalone/node_modules/typescript/lib/watchGuard.js +0 -53
- package/.next/standalone/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
- package/.next/standalone/node_modules/typescript/package.json +0 -120
- package/.next/standalone/src/components/ui/collapsible.tsx +0 -12
- package/.next/standalone/src/components/ui/sheet.tsx +0 -130
- package/.next/standalone/src/components/ui/tabs.tsx +0 -58
- package/.next/static/chunks/0177331b8adf7346.js +0 -7
- package/.next/static/chunks/06af74e2f3e207c5.js +0 -7
- package/.next/static/chunks/1748d5cd2443723b.css +0 -1
- package/.next/static/chunks/7ae917cb100be2b9.js +0 -7
- package/.next/static/chunks/7c4b901b394c3a8c.js +0 -7
- package/src/components/ui/collapsible.tsx +0 -12
- package/src/components/ui/sheet.tsx +0 -130
- package/src/components/ui/tabs.tsx +0 -58
- /package/.next/{static/5YFrdIQd1UU2IxLxekrU9 → standalone/.next/static/V6JvQiyb7wzYpHUOLB6BC}/_buildManifest.js +0 -0
- /package/.next/{static/5YFrdIQd1UU2IxLxekrU9 → standalone/.next/static/V6JvQiyb7wzYpHUOLB6BC}/_clientMiddlewareManifest.json +0 -0
- /package/.next/{static/5YFrdIQd1UU2IxLxekrU9 → standalone/.next/static/V6JvQiyb7wzYpHUOLB6BC}/_ssgManifest.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/01c05b0fdc89fc0c.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/034e8cfdbd1cf3ac.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/0356b23e9d8fbd11.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/0697f660af9a95f1.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/09e4e9409aadc2fe.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/09ec2e3c3d2d294f.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/1bdb5b021c9a4e61.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/1cec4d71237d0c89.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/20337e5244416041.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/20c1169c30c95e0f.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/27f5fab49d8a5395.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/31965ae569bf807f.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/34e2788a0be7ee63.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/3e6042c77fa8e7ac.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/46d959abf8046f0e.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/483effa74d32093a.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/539636bf51e84308.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/559e55a53f22f5d1.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/5623d8a1c99eba62.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/581c7f8a86cc86fb.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/5c05dda6ed4d92bf.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/5eac621951969859.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/6f4c5a75f38f686b.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/6fee5c7b5d483c8a.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/70b3258c508216b5.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/762121739217e5da.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/808075c416a273c9.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/8321c26033c9fc5b.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/87f01c0a5d4010ab.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/89ebb4231102677a.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/909ac8a87c0dd9cb.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/9525dc246b363870.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/957a5dae245bbc84.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/9a52b8ded6a9ee38.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/9eb0474ddf7f6238.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/a6dad97d9634a72d.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/a6dad97d9634a72d.js.map +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/a85d55e8b6841436.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ad24b3b0881818aa.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ae52f8e72d4127b1.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/af66c50a65af610b.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/b8b36494d4330f5f.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/b8ca88454bfa8e05.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/b9a047fc90291dbd.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/be28d13ded360528.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/c231010aae14914b.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/c36e148ece9c20ae.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/cb863a7e46548566.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ce4052f386943efb.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/d5b700b8aafeea3b.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/dc16aeb5aabadbd8.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/de9c5219846f92bb.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/df3c9c7fcf3e0a3d.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/eb22f55ae829d296.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ec0de430276c8209.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ed2e02f2db03c1dc.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/f1f8594d5ec7b93e.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/f42ff7863eb4c3ff.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/f678cdcec3cea0de.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/f7a6fed60fb079dd.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/f9eb3f4ff87b8d8d.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ff1a16fafef87110.js +0 -0
- /package/.next/{static → standalone/.next/static}/chunks/ff49535ba8193dec.js +0 -0
- /package/.next/{static → standalone/.next/static}/media/favicon.0b3bf435.ico +0 -0
- /package/.next/standalone/node_modules/{detect-libc → libsql/node_modules/detect-libc}/lib/detect-libc.js +0 -0
- /package/.next/standalone/node_modules/{detect-libc → libsql/node_modules/detect-libc}/lib/filesystem.js +0 -0
- /package/.next/standalone/node_modules/{detect-libc → libsql/node_modules/detect-libc}/lib/process.js +0 -0
|
@@ -1,595 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright 2013 Lovell Fuller and others.
|
|
3
|
-
SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
const is = require('./is');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Weighting to apply when using contain/cover fit.
|
|
10
|
-
* @member
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
const gravity = {
|
|
14
|
-
center: 0,
|
|
15
|
-
centre: 0,
|
|
16
|
-
north: 1,
|
|
17
|
-
east: 2,
|
|
18
|
-
south: 3,
|
|
19
|
-
west: 4,
|
|
20
|
-
northeast: 5,
|
|
21
|
-
southeast: 6,
|
|
22
|
-
southwest: 7,
|
|
23
|
-
northwest: 8
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Position to apply when using contain/cover fit.
|
|
28
|
-
* @member
|
|
29
|
-
* @private
|
|
30
|
-
*/
|
|
31
|
-
const position = {
|
|
32
|
-
top: 1,
|
|
33
|
-
right: 2,
|
|
34
|
-
bottom: 3,
|
|
35
|
-
left: 4,
|
|
36
|
-
'right top': 5,
|
|
37
|
-
'right bottom': 6,
|
|
38
|
-
'left bottom': 7,
|
|
39
|
-
'left top': 8
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* How to extend the image.
|
|
44
|
-
* @member
|
|
45
|
-
* @private
|
|
46
|
-
*/
|
|
47
|
-
const extendWith = {
|
|
48
|
-
background: 'background',
|
|
49
|
-
copy: 'copy',
|
|
50
|
-
repeat: 'repeat',
|
|
51
|
-
mirror: 'mirror'
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Strategies for automagic cover behaviour.
|
|
56
|
-
* @member
|
|
57
|
-
* @private
|
|
58
|
-
*/
|
|
59
|
-
const strategy = {
|
|
60
|
-
entropy: 16,
|
|
61
|
-
attention: 17
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Reduction kernels.
|
|
66
|
-
* @member
|
|
67
|
-
* @private
|
|
68
|
-
*/
|
|
69
|
-
const kernel = {
|
|
70
|
-
nearest: 'nearest',
|
|
71
|
-
linear: 'linear',
|
|
72
|
-
cubic: 'cubic',
|
|
73
|
-
mitchell: 'mitchell',
|
|
74
|
-
lanczos2: 'lanczos2',
|
|
75
|
-
lanczos3: 'lanczos3',
|
|
76
|
-
mks2013: 'mks2013',
|
|
77
|
-
mks2021: 'mks2021'
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Methods by which an image can be resized to fit the provided dimensions.
|
|
82
|
-
* @member
|
|
83
|
-
* @private
|
|
84
|
-
*/
|
|
85
|
-
const fit = {
|
|
86
|
-
contain: 'contain',
|
|
87
|
-
cover: 'cover',
|
|
88
|
-
fill: 'fill',
|
|
89
|
-
inside: 'inside',
|
|
90
|
-
outside: 'outside'
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Map external fit property to internal canvas property.
|
|
95
|
-
* @member
|
|
96
|
-
* @private
|
|
97
|
-
*/
|
|
98
|
-
const mapFitToCanvas = {
|
|
99
|
-
contain: 'embed',
|
|
100
|
-
cover: 'crop',
|
|
101
|
-
fill: 'ignore_aspect',
|
|
102
|
-
inside: 'max',
|
|
103
|
-
outside: 'min'
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @private
|
|
108
|
-
*/
|
|
109
|
-
function isRotationExpected (options) {
|
|
110
|
-
return (options.angle % 360) !== 0 || options.rotationAngle !== 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @private
|
|
115
|
-
*/
|
|
116
|
-
function isResizeExpected (options) {
|
|
117
|
-
return options.width !== -1 || options.height !== -1;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Resize image to `width`, `height` or `width x height`.
|
|
122
|
-
*
|
|
123
|
-
* When both a `width` and `height` are provided, the possible methods by which the image should **fit** these are:
|
|
124
|
-
* - `cover`: (default) Preserving aspect ratio, attempt to ensure the image covers both provided dimensions by cropping/clipping to fit.
|
|
125
|
-
* - `contain`: Preserving aspect ratio, contain within both provided dimensions using "letterboxing" where necessary.
|
|
126
|
-
* - `fill`: Ignore the aspect ratio of the input and stretch to both provided dimensions.
|
|
127
|
-
* - `inside`: Preserving aspect ratio, resize the image to be as large as possible while ensuring its dimensions are less than or equal to both those specified.
|
|
128
|
-
* - `outside`: Preserving aspect ratio, resize the image to be as small as possible while ensuring its dimensions are greater than or equal to both those specified.
|
|
129
|
-
*
|
|
130
|
-
* Some of these values are based on the [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property.
|
|
131
|
-
*
|
|
132
|
-
* <img alt="Examples of various values for the fit property when resizing" width="100%" style="aspect-ratio: 998/243" src="/api-resize-fit.svg">
|
|
133
|
-
*
|
|
134
|
-
* When using a **fit** of `cover` or `contain`, the default **position** is `centre`. Other options are:
|
|
135
|
-
* - `sharp.position`: `top`, `right top`, `right`, `right bottom`, `bottom`, `left bottom`, `left`, `left top`.
|
|
136
|
-
* - `sharp.gravity`: `north`, `northeast`, `east`, `southeast`, `south`, `southwest`, `west`, `northwest`, `center` or `centre`.
|
|
137
|
-
* - `sharp.strategy`: `cover` only, dynamically crop using either the `entropy` or `attention` strategy.
|
|
138
|
-
*
|
|
139
|
-
* Some of these values are based on the [object-position](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) CSS property.
|
|
140
|
-
*
|
|
141
|
-
* The strategy-based approach initially resizes so one dimension is at its target length
|
|
142
|
-
* then repeatedly ranks edge regions, discarding the edge with the lowest score based on the selected strategy.
|
|
143
|
-
* - `entropy`: focus on the region with the highest [Shannon entropy](https://en.wikipedia.org/wiki/Entropy_%28information_theory%29).
|
|
144
|
-
* - `attention`: focus on the region with the highest luminance frequency, colour saturation and presence of skin tones.
|
|
145
|
-
*
|
|
146
|
-
* Possible downsizing kernels are:
|
|
147
|
-
* - `nearest`: Use [nearest neighbour interpolation](http://en.wikipedia.org/wiki/Nearest-neighbor_interpolation).
|
|
148
|
-
* - `linear`: Use a [triangle filter](https://en.wikipedia.org/wiki/Triangular_function).
|
|
149
|
-
* - `cubic`: Use a [Catmull-Rom spline](https://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline).
|
|
150
|
-
* - `mitchell`: Use a [Mitchell-Netravali spline](https://www.cs.utexas.edu/~fussell/courses/cs384g-fall2013/lectures/mitchell/Mitchell.pdf).
|
|
151
|
-
* - `lanczos2`: Use a [Lanczos kernel](https://en.wikipedia.org/wiki/Lanczos_resampling#Lanczos_kernel) with `a=2`.
|
|
152
|
-
* - `lanczos3`: Use a Lanczos kernel with `a=3` (the default).
|
|
153
|
-
* - `mks2013`: Use a [Magic Kernel Sharp](https://johncostella.com/magic/mks.pdf) 2013 kernel, as adopted by Facebook.
|
|
154
|
-
* - `mks2021`: Use a Magic Kernel Sharp 2021 kernel, with more accurate (reduced) sharpening than the 2013 version.
|
|
155
|
-
*
|
|
156
|
-
* When upsampling, these kernels map to `nearest`, `linear` and `cubic` interpolators.
|
|
157
|
-
* Downsampling kernels without a matching upsampling interpolator map to `cubic`.
|
|
158
|
-
*
|
|
159
|
-
* Only one resize can occur per pipeline.
|
|
160
|
-
* Previous calls to `resize` in the same pipeline will be ignored.
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* sharp(input)
|
|
164
|
-
* .resize({ width: 100 })
|
|
165
|
-
* .toBuffer()
|
|
166
|
-
* .then(data => {
|
|
167
|
-
* // 100 pixels wide, auto-scaled height
|
|
168
|
-
* });
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* sharp(input)
|
|
172
|
-
* .resize({ height: 100 })
|
|
173
|
-
* .toBuffer()
|
|
174
|
-
* .then(data => {
|
|
175
|
-
* // 100 pixels high, auto-scaled width
|
|
176
|
-
* });
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* sharp(input)
|
|
180
|
-
* .resize(200, 300, {
|
|
181
|
-
* kernel: sharp.kernel.nearest,
|
|
182
|
-
* fit: 'contain',
|
|
183
|
-
* position: 'right top',
|
|
184
|
-
* background: { r: 255, g: 255, b: 255, alpha: 0.5 }
|
|
185
|
-
* })
|
|
186
|
-
* .toFile('output.png')
|
|
187
|
-
* .then(() => {
|
|
188
|
-
* // output.png is a 200 pixels wide and 300 pixels high image
|
|
189
|
-
* // containing a nearest-neighbour scaled version
|
|
190
|
-
* // contained within the north-east corner of a semi-transparent white canvas
|
|
191
|
-
* });
|
|
192
|
-
*
|
|
193
|
-
* @example
|
|
194
|
-
* const transformer = sharp()
|
|
195
|
-
* .resize({
|
|
196
|
-
* width: 200,
|
|
197
|
-
* height: 200,
|
|
198
|
-
* fit: sharp.fit.cover,
|
|
199
|
-
* position: sharp.strategy.entropy
|
|
200
|
-
* });
|
|
201
|
-
* // Read image data from readableStream
|
|
202
|
-
* // Write 200px square auto-cropped image data to writableStream
|
|
203
|
-
* readableStream
|
|
204
|
-
* .pipe(transformer)
|
|
205
|
-
* .pipe(writableStream);
|
|
206
|
-
*
|
|
207
|
-
* @example
|
|
208
|
-
* sharp(input)
|
|
209
|
-
* .resize(200, 200, {
|
|
210
|
-
* fit: sharp.fit.inside,
|
|
211
|
-
* withoutEnlargement: true
|
|
212
|
-
* })
|
|
213
|
-
* .toFormat('jpeg')
|
|
214
|
-
* .toBuffer()
|
|
215
|
-
* .then(function(outputBuffer) {
|
|
216
|
-
* // outputBuffer contains JPEG image data
|
|
217
|
-
* // no wider and no higher than 200 pixels
|
|
218
|
-
* // and no larger than the input image
|
|
219
|
-
* });
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
* sharp(input)
|
|
223
|
-
* .resize(200, 200, {
|
|
224
|
-
* fit: sharp.fit.outside,
|
|
225
|
-
* withoutReduction: true
|
|
226
|
-
* })
|
|
227
|
-
* .toFormat('jpeg')
|
|
228
|
-
* .toBuffer()
|
|
229
|
-
* .then(function(outputBuffer) {
|
|
230
|
-
* // outputBuffer contains JPEG image data
|
|
231
|
-
* // of at least 200 pixels wide and 200 pixels high while maintaining aspect ratio
|
|
232
|
-
* // and no smaller than the input image
|
|
233
|
-
* });
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* const scaleByHalf = await sharp(input)
|
|
237
|
-
* .metadata()
|
|
238
|
-
* .then(({ width }) => sharp(input)
|
|
239
|
-
* .resize(Math.round(width * 0.5))
|
|
240
|
-
* .toBuffer()
|
|
241
|
-
* );
|
|
242
|
-
*
|
|
243
|
-
* @param {number} [width] - How many pixels wide the resultant image should be. Use `null` or `undefined` to auto-scale the width to match the height.
|
|
244
|
-
* @param {number} [height] - How many pixels high the resultant image should be. Use `null` or `undefined` to auto-scale the height to match the width.
|
|
245
|
-
* @param {Object} [options]
|
|
246
|
-
* @param {number} [options.width] - An alternative means of specifying `width`. If both are present this takes priority.
|
|
247
|
-
* @param {number} [options.height] - An alternative means of specifying `height`. If both are present this takes priority.
|
|
248
|
-
* @param {String} [options.fit='cover'] - How the image should be resized/cropped to fit the target dimension(s), one of `cover`, `contain`, `fill`, `inside` or `outside`.
|
|
249
|
-
* @param {String} [options.position='centre'] - A position, gravity or strategy to use when `fit` is `cover` or `contain`.
|
|
250
|
-
* @param {String|Object} [options.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour when `fit` is `contain`, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency.
|
|
251
|
-
* @param {String} [options.kernel='lanczos3'] - The kernel to use for image reduction and the inferred interpolator to use for upsampling. Use the `fastShrinkOnLoad` option to control kernel vs shrink-on-load.
|
|
252
|
-
* @param {Boolean} [options.withoutEnlargement=false] - Do not scale up if the width *or* height are already less than the target dimensions, equivalent to GraphicsMagick's `>` geometry option. This may result in output dimensions smaller than the target dimensions.
|
|
253
|
-
* @param {Boolean} [options.withoutReduction=false] - Do not scale down if the width *or* height are already greater than the target dimensions, equivalent to GraphicsMagick's `<` geometry option. This may still result in a crop to reach the target dimensions.
|
|
254
|
-
* @param {Boolean} [options.fastShrinkOnLoad=true] - Take greater advantage of the JPEG and WebP shrink-on-load feature, which can lead to a slight moiré pattern or round-down of an auto-scaled dimension.
|
|
255
|
-
* @returns {Sharp}
|
|
256
|
-
* @throws {Error} Invalid parameters
|
|
257
|
-
*/
|
|
258
|
-
function resize (widthOrOptions, height, options) {
|
|
259
|
-
if (isResizeExpected(this.options)) {
|
|
260
|
-
this.options.debuglog('ignoring previous resize options');
|
|
261
|
-
}
|
|
262
|
-
if (this.options.widthPost !== -1) {
|
|
263
|
-
this.options.debuglog('operation order will be: extract, resize, extract');
|
|
264
|
-
}
|
|
265
|
-
if (is.defined(widthOrOptions)) {
|
|
266
|
-
if (is.object(widthOrOptions) && !is.defined(options)) {
|
|
267
|
-
options = widthOrOptions;
|
|
268
|
-
} else if (is.integer(widthOrOptions) && widthOrOptions > 0) {
|
|
269
|
-
this.options.width = widthOrOptions;
|
|
270
|
-
} else {
|
|
271
|
-
throw is.invalidParameterError('width', 'positive integer', widthOrOptions);
|
|
272
|
-
}
|
|
273
|
-
} else {
|
|
274
|
-
this.options.width = -1;
|
|
275
|
-
}
|
|
276
|
-
if (is.defined(height)) {
|
|
277
|
-
if (is.integer(height) && height > 0) {
|
|
278
|
-
this.options.height = height;
|
|
279
|
-
} else {
|
|
280
|
-
throw is.invalidParameterError('height', 'positive integer', height);
|
|
281
|
-
}
|
|
282
|
-
} else {
|
|
283
|
-
this.options.height = -1;
|
|
284
|
-
}
|
|
285
|
-
if (is.object(options)) {
|
|
286
|
-
// Width
|
|
287
|
-
if (is.defined(options.width)) {
|
|
288
|
-
if (is.integer(options.width) && options.width > 0) {
|
|
289
|
-
this.options.width = options.width;
|
|
290
|
-
} else {
|
|
291
|
-
throw is.invalidParameterError('width', 'positive integer', options.width);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
// Height
|
|
295
|
-
if (is.defined(options.height)) {
|
|
296
|
-
if (is.integer(options.height) && options.height > 0) {
|
|
297
|
-
this.options.height = options.height;
|
|
298
|
-
} else {
|
|
299
|
-
throw is.invalidParameterError('height', 'positive integer', options.height);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
// Fit
|
|
303
|
-
if (is.defined(options.fit)) {
|
|
304
|
-
const canvas = mapFitToCanvas[options.fit];
|
|
305
|
-
if (is.string(canvas)) {
|
|
306
|
-
this.options.canvas = canvas;
|
|
307
|
-
} else {
|
|
308
|
-
throw is.invalidParameterError('fit', 'valid fit', options.fit);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
// Position
|
|
312
|
-
if (is.defined(options.position)) {
|
|
313
|
-
const pos = is.integer(options.position)
|
|
314
|
-
? options.position
|
|
315
|
-
: strategy[options.position] || position[options.position] || gravity[options.position];
|
|
316
|
-
if (is.integer(pos) && (is.inRange(pos, 0, 8) || is.inRange(pos, 16, 17))) {
|
|
317
|
-
this.options.position = pos;
|
|
318
|
-
} else {
|
|
319
|
-
throw is.invalidParameterError('position', 'valid position/gravity/strategy', options.position);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
// Background
|
|
323
|
-
this._setBackgroundColourOption('resizeBackground', options.background);
|
|
324
|
-
// Kernel
|
|
325
|
-
if (is.defined(options.kernel)) {
|
|
326
|
-
if (is.string(kernel[options.kernel])) {
|
|
327
|
-
this.options.kernel = kernel[options.kernel];
|
|
328
|
-
} else {
|
|
329
|
-
throw is.invalidParameterError('kernel', 'valid kernel name', options.kernel);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
// Without enlargement
|
|
333
|
-
if (is.defined(options.withoutEnlargement)) {
|
|
334
|
-
this._setBooleanOption('withoutEnlargement', options.withoutEnlargement);
|
|
335
|
-
}
|
|
336
|
-
// Without reduction
|
|
337
|
-
if (is.defined(options.withoutReduction)) {
|
|
338
|
-
this._setBooleanOption('withoutReduction', options.withoutReduction);
|
|
339
|
-
}
|
|
340
|
-
// Shrink on load
|
|
341
|
-
if (is.defined(options.fastShrinkOnLoad)) {
|
|
342
|
-
this._setBooleanOption('fastShrinkOnLoad', options.fastShrinkOnLoad);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
if (isRotationExpected(this.options) && isResizeExpected(this.options)) {
|
|
346
|
-
this.options.rotateBefore = true;
|
|
347
|
-
}
|
|
348
|
-
return this;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Extend / pad / extrude one or more edges of the image with either
|
|
353
|
-
* the provided background colour or pixels derived from the image.
|
|
354
|
-
* This operation will always occur after resizing and extraction, if any.
|
|
355
|
-
*
|
|
356
|
-
* @example
|
|
357
|
-
* // Resize to 140 pixels wide, then add 10 transparent pixels
|
|
358
|
-
* // to the top, left and right edges and 20 to the bottom edge
|
|
359
|
-
* sharp(input)
|
|
360
|
-
* .resize(140)
|
|
361
|
-
* .extend({
|
|
362
|
-
* top: 10,
|
|
363
|
-
* bottom: 20,
|
|
364
|
-
* left: 10,
|
|
365
|
-
* right: 10,
|
|
366
|
-
* background: { r: 0, g: 0, b: 0, alpha: 0 }
|
|
367
|
-
* })
|
|
368
|
-
* ...
|
|
369
|
-
*
|
|
370
|
-
* @example
|
|
371
|
-
* // Add a row of 10 red pixels to the bottom
|
|
372
|
-
* sharp(input)
|
|
373
|
-
* .extend({
|
|
374
|
-
* bottom: 10,
|
|
375
|
-
* background: 'red'
|
|
376
|
-
* })
|
|
377
|
-
* ...
|
|
378
|
-
*
|
|
379
|
-
* @example
|
|
380
|
-
* // Extrude image by 8 pixels to the right, mirroring existing right hand edge
|
|
381
|
-
* sharp(input)
|
|
382
|
-
* .extend({
|
|
383
|
-
* right: 8,
|
|
384
|
-
* background: 'mirror'
|
|
385
|
-
* })
|
|
386
|
-
* ...
|
|
387
|
-
*
|
|
388
|
-
* @param {(number|Object)} extend - single pixel count to add to all edges or an Object with per-edge counts
|
|
389
|
-
* @param {number} [extend.top=0]
|
|
390
|
-
* @param {number} [extend.left=0]
|
|
391
|
-
* @param {number} [extend.bottom=0]
|
|
392
|
-
* @param {number} [extend.right=0]
|
|
393
|
-
* @param {String} [extend.extendWith='background'] - populate new pixels using this method, one of: background, copy, repeat, mirror.
|
|
394
|
-
* @param {String|Object} [extend.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency.
|
|
395
|
-
* @returns {Sharp}
|
|
396
|
-
* @throws {Error} Invalid parameters
|
|
397
|
-
*/
|
|
398
|
-
function extend (extend) {
|
|
399
|
-
if (is.integer(extend) && extend > 0) {
|
|
400
|
-
this.options.extendTop = extend;
|
|
401
|
-
this.options.extendBottom = extend;
|
|
402
|
-
this.options.extendLeft = extend;
|
|
403
|
-
this.options.extendRight = extend;
|
|
404
|
-
} else if (is.object(extend)) {
|
|
405
|
-
if (is.defined(extend.top)) {
|
|
406
|
-
if (is.integer(extend.top) && extend.top >= 0) {
|
|
407
|
-
this.options.extendTop = extend.top;
|
|
408
|
-
} else {
|
|
409
|
-
throw is.invalidParameterError('top', 'positive integer', extend.top);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
if (is.defined(extend.bottom)) {
|
|
413
|
-
if (is.integer(extend.bottom) && extend.bottom >= 0) {
|
|
414
|
-
this.options.extendBottom = extend.bottom;
|
|
415
|
-
} else {
|
|
416
|
-
throw is.invalidParameterError('bottom', 'positive integer', extend.bottom);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
if (is.defined(extend.left)) {
|
|
420
|
-
if (is.integer(extend.left) && extend.left >= 0) {
|
|
421
|
-
this.options.extendLeft = extend.left;
|
|
422
|
-
} else {
|
|
423
|
-
throw is.invalidParameterError('left', 'positive integer', extend.left);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
if (is.defined(extend.right)) {
|
|
427
|
-
if (is.integer(extend.right) && extend.right >= 0) {
|
|
428
|
-
this.options.extendRight = extend.right;
|
|
429
|
-
} else {
|
|
430
|
-
throw is.invalidParameterError('right', 'positive integer', extend.right);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
this._setBackgroundColourOption('extendBackground', extend.background);
|
|
434
|
-
if (is.defined(extend.extendWith)) {
|
|
435
|
-
if (is.string(extendWith[extend.extendWith])) {
|
|
436
|
-
this.options.extendWith = extendWith[extend.extendWith];
|
|
437
|
-
} else {
|
|
438
|
-
throw is.invalidParameterError('extendWith', 'one of: background, copy, repeat, mirror', extend.extendWith);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
} else {
|
|
442
|
-
throw is.invalidParameterError('extend', 'integer or object', extend);
|
|
443
|
-
}
|
|
444
|
-
return this;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Extract/crop a region of the image.
|
|
449
|
-
*
|
|
450
|
-
* - Use `extract` before `resize` for pre-resize extraction.
|
|
451
|
-
* - Use `extract` after `resize` for post-resize extraction.
|
|
452
|
-
* - Use `extract` twice and `resize` once for extract-then-resize-then-extract in a fixed operation order.
|
|
453
|
-
*
|
|
454
|
-
* @example
|
|
455
|
-
* sharp(input)
|
|
456
|
-
* .extract({ left: left, top: top, width: width, height: height })
|
|
457
|
-
* .toFile(output, function(err) {
|
|
458
|
-
* // Extract a region of the input image, saving in the same format.
|
|
459
|
-
* });
|
|
460
|
-
* @example
|
|
461
|
-
* sharp(input)
|
|
462
|
-
* .extract({ left: leftOffsetPre, top: topOffsetPre, width: widthPre, height: heightPre })
|
|
463
|
-
* .resize(width, height)
|
|
464
|
-
* .extract({ left: leftOffsetPost, top: topOffsetPost, width: widthPost, height: heightPost })
|
|
465
|
-
* .toFile(output, function(err) {
|
|
466
|
-
* // Extract a region, resize, then extract from the resized image
|
|
467
|
-
* });
|
|
468
|
-
*
|
|
469
|
-
* @param {Object} options - describes the region to extract using integral pixel values
|
|
470
|
-
* @param {number} options.left - zero-indexed offset from left edge
|
|
471
|
-
* @param {number} options.top - zero-indexed offset from top edge
|
|
472
|
-
* @param {number} options.width - width of region to extract
|
|
473
|
-
* @param {number} options.height - height of region to extract
|
|
474
|
-
* @returns {Sharp}
|
|
475
|
-
* @throws {Error} Invalid parameters
|
|
476
|
-
*/
|
|
477
|
-
function extract (options) {
|
|
478
|
-
const suffix = isResizeExpected(this.options) || this.options.widthPre !== -1 ? 'Post' : 'Pre';
|
|
479
|
-
if (this.options[`width${suffix}`] !== -1) {
|
|
480
|
-
this.options.debuglog('ignoring previous extract options');
|
|
481
|
-
}
|
|
482
|
-
['left', 'top', 'width', 'height'].forEach(function (name) {
|
|
483
|
-
const value = options[name];
|
|
484
|
-
if (is.integer(value) && value >= 0) {
|
|
485
|
-
this.options[name + (name === 'left' || name === 'top' ? 'Offset' : '') + suffix] = value;
|
|
486
|
-
} else {
|
|
487
|
-
throw is.invalidParameterError(name, 'integer', value);
|
|
488
|
-
}
|
|
489
|
-
}, this);
|
|
490
|
-
// Ensure existing rotation occurs before pre-resize extraction
|
|
491
|
-
if (isRotationExpected(this.options) && !isResizeExpected(this.options)) {
|
|
492
|
-
if (this.options.widthPre === -1 || this.options.widthPost === -1) {
|
|
493
|
-
this.options.rotateBefore = true;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
if (this.options.input.autoOrient) {
|
|
497
|
-
this.options.orientBefore = true;
|
|
498
|
-
}
|
|
499
|
-
return this;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Trim pixels from all edges that contain values similar to the given background colour, which defaults to that of the top-left pixel.
|
|
504
|
-
*
|
|
505
|
-
* Images with an alpha channel will use the combined bounding box of alpha and non-alpha channels.
|
|
506
|
-
*
|
|
507
|
-
* If the result of this operation would trim an image to nothing then no change is made.
|
|
508
|
-
*
|
|
509
|
-
* The `info` response Object will contain `trimOffsetLeft` and `trimOffsetTop` properties.
|
|
510
|
-
*
|
|
511
|
-
* @example
|
|
512
|
-
* // Trim pixels with a colour similar to that of the top-left pixel.
|
|
513
|
-
* await sharp(input)
|
|
514
|
-
* .trim()
|
|
515
|
-
* .toFile(output);
|
|
516
|
-
*
|
|
517
|
-
* @example
|
|
518
|
-
* // Trim pixels with the exact same colour as that of the top-left pixel.
|
|
519
|
-
* await sharp(input)
|
|
520
|
-
* .trim({
|
|
521
|
-
* threshold: 0
|
|
522
|
-
* })
|
|
523
|
-
* .toFile(output);
|
|
524
|
-
*
|
|
525
|
-
* @example
|
|
526
|
-
* // Assume input is line art and trim only pixels with a similar colour to red.
|
|
527
|
-
* const output = await sharp(input)
|
|
528
|
-
* .trim({
|
|
529
|
-
* background: "#FF0000",
|
|
530
|
-
* lineArt: true
|
|
531
|
-
* })
|
|
532
|
-
* .toBuffer();
|
|
533
|
-
*
|
|
534
|
-
* @example
|
|
535
|
-
* // Trim all "yellow-ish" pixels, being more lenient with the higher threshold.
|
|
536
|
-
* const output = await sharp(input)
|
|
537
|
-
* .trim({
|
|
538
|
-
* background: "yellow",
|
|
539
|
-
* threshold: 42,
|
|
540
|
-
* })
|
|
541
|
-
* .toBuffer();
|
|
542
|
-
*
|
|
543
|
-
* @param {Object} [options]
|
|
544
|
-
* @param {string|Object} [options.background='top-left pixel'] - Background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to that of the top-left pixel.
|
|
545
|
-
* @param {number} [options.threshold=10] - Allowed difference from the above colour, a positive number.
|
|
546
|
-
* @param {boolean} [options.lineArt=false] - Does the input more closely resemble line art (e.g. vector) rather than being photographic?
|
|
547
|
-
* @returns {Sharp}
|
|
548
|
-
* @throws {Error} Invalid parameters
|
|
549
|
-
*/
|
|
550
|
-
function trim (options) {
|
|
551
|
-
this.options.trimThreshold = 10;
|
|
552
|
-
if (is.defined(options)) {
|
|
553
|
-
if (is.object(options)) {
|
|
554
|
-
if (is.defined(options.background)) {
|
|
555
|
-
this._setBackgroundColourOption('trimBackground', options.background);
|
|
556
|
-
}
|
|
557
|
-
if (is.defined(options.threshold)) {
|
|
558
|
-
if (is.number(options.threshold) && options.threshold >= 0) {
|
|
559
|
-
this.options.trimThreshold = options.threshold;
|
|
560
|
-
} else {
|
|
561
|
-
throw is.invalidParameterError('threshold', 'positive number', options.threshold);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
if (is.defined(options.lineArt)) {
|
|
565
|
-
this._setBooleanOption('trimLineArt', options.lineArt);
|
|
566
|
-
}
|
|
567
|
-
} else {
|
|
568
|
-
throw is.invalidParameterError('trim', 'object', options);
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
if (isRotationExpected(this.options)) {
|
|
572
|
-
this.options.rotateBefore = true;
|
|
573
|
-
}
|
|
574
|
-
return this;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Decorate the Sharp prototype with resize-related functions.
|
|
579
|
-
* @module Sharp
|
|
580
|
-
* @private
|
|
581
|
-
*/
|
|
582
|
-
module.exports = (Sharp) => {
|
|
583
|
-
Object.assign(Sharp.prototype, {
|
|
584
|
-
resize,
|
|
585
|
-
extend,
|
|
586
|
-
extract,
|
|
587
|
-
trim
|
|
588
|
-
});
|
|
589
|
-
// Class attributes
|
|
590
|
-
Sharp.gravity = gravity;
|
|
591
|
-
Sharp.strategy = strategy;
|
|
592
|
-
Sharp.kernel = kernel;
|
|
593
|
-
Sharp.fit = fit;
|
|
594
|
-
Sharp.position = position;
|
|
595
|
-
};
|