@lovelybunch/api 1.0.71-alpha.1 → 1.0.71-alpha.3
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/lib/file-validation.d.ts +65 -0
- package/dist/lib/file-validation.js +125 -0
- package/dist/middleware/auth.d.ts +1 -0
- package/dist/middleware/auth.js +13 -3
- package/dist/routes/api/v1/events/status/route.d.ts +1 -1
- package/dist/routes/api/v1/jobs/[id]/run/route.d.ts +2 -2
- package/dist/routes/api/v1/jobs/status/route.d.ts +1 -1
- package/dist/routes/api/v1/proposals/[id]/route.d.ts +8 -8
- package/dist/routes/api/v1/resources/route.js +10 -7
- package/package.json +5 -4
- package/static/assets/AgentDetailPage-DVDnvYcy.js +1 -0
- package/static/assets/AgentEditPage-DRLTkdIZ.js +1 -0
- package/static/assets/AgentsPage-CVoYisFq.js +3 -0
- package/static/assets/AgentsSettingsPage-D9FDJHpC.js +6 -0
- package/static/assets/ApiKeysSettingsPage-DGcz0E10.js +7 -0
- package/static/assets/ArchitectureEditPage-PXH0HtcY.js +21 -0
- package/static/assets/ArchitecturePage-BiybPTif.js +1 -0
- package/static/assets/AuthSettingsPage-6TaOiZV7.js +11 -0
- package/static/assets/CallbackPage-BdZglBBj.js +1 -0
- package/static/assets/CodePage-B239DtM2.js +2 -0
- package/static/assets/CollapsibleSection-DaqBpCe-.js +1 -0
- package/static/assets/DashboardPage-B2FJcHVR.js +11 -0
- package/static/assets/GitPage-DaWE2Q-b.js +16 -0
- package/static/assets/GitSettingsPage-bTqUr0fn.js +6 -0
- package/static/assets/IdentityPage-eXzMXYy2.js +11 -0
- package/static/assets/ImplementationStepsEditor-CuDeossU.js +6 -0
- package/static/assets/IntegrationsSettingsPage-wAf_7nar.js +1 -0
- package/static/assets/KnowledgeDetailPage-B5ieYIze.js +1 -0
- package/static/assets/KnowledgeEditPage-OMUREl1n.js +1 -0
- package/static/assets/KnowledgePage-CKtcok1N.js +8 -0
- package/static/assets/LoginPage-B70_aCBv.js +1 -0
- package/static/assets/McpSettingsPage-DcJIlHEi.js +1 -0
- package/static/assets/NewAgentPage-DITLLDez.js +1 -0
- package/static/assets/NewKnowledgePage-C7vEg4PR.js +9 -0
- package/static/assets/NewProposalPage-z8wqyXIj.js +90 -0
- package/static/assets/ProjectEditPage-BDj8GlD_.js +11 -0
- package/static/assets/ProjectPage-CtoKV0l9.js +1 -0
- package/static/assets/PromptsSettingsPage-CI-pWQVw.js +1 -0
- package/static/assets/ProposalDetailPage-D6rhO9vm.js +1 -0
- package/static/assets/ProposalEditPage-DCy3_sbg.js +1 -0
- package/static/assets/ProposalsPage-DQLqm83b.js +17 -0
- package/static/assets/ResourcesPage-Bq9t872V.js +66 -0
- package/static/assets/RulesSettingsPage-MgsP5qaA.js +16 -0
- package/static/assets/SchedulePage-C1vDSjyh.js +4 -0
- package/static/assets/TagInput-Cdfvhozb.js +1 -0
- package/static/assets/TerminalPage-NQzi2rzj.js +1 -0
- package/static/assets/TerminalSessionPage-DQgbm-LP.js +13 -0
- package/static/assets/UserPreferencesPage-CCYsj_XY.js +1 -0
- package/static/assets/UserSettingsPage-DdCnaoY_.js +1 -0
- package/static/assets/UtilitiesPage-DGcmJSz6.js +1 -0
- package/static/assets/alert-BAeRxZ1d.js +1 -0
- package/static/assets/arrow-down-5CQhXptz.js +6 -0
- package/static/assets/arrow-left-DSqUNUH-.js +6 -0
- package/static/assets/arrow-up-CYoJSbWn.js +6 -0
- package/static/assets/badge-NJasrAx_.js +1 -0
- package/static/assets/browser-modal-x3ise3M1.js +6 -0
- package/static/assets/calendar-wiZSxCBM.js +6 -0
- package/static/assets/card-CvaBJsG6.js +1 -0
- package/static/assets/chevron-left-CaZHWPr-.js +6 -0
- package/static/assets/circle-alert-61156jM6.js +6 -0
- package/static/assets/circle-check-big-K_QMED_K.js +6 -0
- package/static/assets/circle-check-z0By2KN8.js +6 -0
- package/static/assets/circle-play-88lMuMRZ.js +6 -0
- package/static/assets/circle-x-DdTsJYO7.js +6 -0
- package/static/assets/clipboard-B9ndUJKl.js +1 -0
- package/static/assets/clipboard-BNXOfcye.js +11 -0
- package/static/assets/clock-BTCBJF7v.js +6 -0
- package/static/assets/download-BaYIFjpj.js +6 -0
- package/static/assets/droid-CmYuCN_q.js +4 -0
- package/static/assets/eye-CuSCp49Y.js +6 -0
- package/static/assets/folder-git-2-CiVM8o0Y.js +6 -0
- package/static/assets/index-B8vejVRZ.js +458 -0
- package/static/assets/{index-Bo1l13x2.css → index-CKwmN6yL.css} +2 -33
- package/static/assets/label-DtNTh--4.js +1 -0
- package/static/assets/markdown-editor-DUEthZ0y.css +1 -0
- package/static/assets/markdown-editor-DvlGlqU9.js +62 -0
- package/static/assets/pause-COIsHZIp.js +6 -0
- package/static/assets/play-a8BsF4gF.js +6 -0
- package/static/assets/plus-Bon5P_OK.js +6 -0
- package/static/assets/radio-group-DpJuX02X.js +1 -0
- package/static/assets/refresh-cw-CnHMzcH3.js +6 -0
- package/static/assets/search-BR37JgJ3.js +6 -0
- package/static/assets/switch-D86f4WeD.js +1 -0
- package/static/assets/tabs-BYrDWPwx.js +1 -0
- package/static/assets/tag--U3Nuedb.js +6 -0
- package/static/assets/terminal-preview-Be68j_3t.js +11 -0
- package/static/assets/use-terminal-2DGl8X5T.js +1 -0
- package/static/assets/xterm-DTxiCjtJ.js +9 -0
- package/static/assets/xterm-qxJ8_QYu.css +32 -0
- package/static/assets/zap-C0eIGEl_.js +6 -0
- package/static/index.html +2 -2
- package/static/assets/index-DgZp291y.js +0 -973
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as e}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const t=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],a=e("calendar",t);export{a as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,j as d,f as t}from"./index-B8vejVRZ.js";const o=r.forwardRef(({className:a,...e},s)=>d.jsx("div",{ref:s,className:t("rounded-xl border bg-card text-card-foreground shadow",a),...e}));o.displayName="Card";const c=r.forwardRef(({className:a,...e},s)=>d.jsx("div",{ref:s,className:t("flex flex-col space-y-1.5 p-6",a),...e}));c.displayName="CardHeader";const i=r.forwardRef(({className:a,...e},s)=>d.jsx("h3",{ref:s,className:t("font-semibold leading-none tracking-tight",a),...e}));i.displayName="CardTitle";const n=r.forwardRef(({className:a,...e},s)=>d.jsx("p",{ref:s,className:t("text-sm text-muted-foreground",a),...e}));n.displayName="CardDescription";const l=r.forwardRef(({className:a,...e},s)=>d.jsx("div",{ref:s,className:t("p-6 pt-0",a),...e}));l.displayName="CardContent";const f=r.forwardRef(({className:a,...e},s)=>d.jsx("div",{ref:s,className:t("flex items-center p-6 pt-0",a),...e}));f.displayName="CardFooter";export{o as C,l as a,c as b,i as c,n as d,f as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as e}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const o=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],t=e("chevron-left",o);export{t as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as e}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const c=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],y=e("circle-alert",c);export{y as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],t=c("circle-check-big",e);export{t as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],r=c("circle-check",e);export{r as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const a=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l=c("circle-play",a);export{l as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],o=c("circle-x",e);export{o as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function r(o){if(navigator.clipboard?.writeText){await navigator.clipboard.writeText(o);return}if(document.execCommand){const e=document.createElement("textarea");e.value=o,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{const t=document.execCommand("copy");if(document.body.removeChild(e),!t)throw new Error("execCommand failed")}catch{throw document.body.removeChild(e),new Error("Fallback copy failed")}return}throw new Error("Clipboard API not available")}export{r as c};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{c as a}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const t=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]],o=a("clipboard-check",t);/**
|
|
7
|
+
* @license lucide-react v0.542.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const c=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],r=a("clipboard",c);export{o as C,r as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const o=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],r=c("clock",o);export{r as C};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as o}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const a=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],e=o("download",a);export{e as D};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const l="Consult the schema references in .nut/.schema (proposal.schema.md, project.schema.md, architecture.schema.md, agent.schema.md, knowledge.schema.md) so any updates you make follow the documented structure and include complete arrays for plan steps, dependencies, tags, labels, and comments.",m="Use .nut/context/project.md and .nut/context/architecture.md for reference.";function p(e,t,s,o=!0){const n=[];return o&&n.push(`
|
|
2
|
+
## Task
|
|
3
|
+
|
|
4
|
+
`,`Review .nut/proposals/${e}.md and begin implementing.`,"Update the assignment to yourself (Coconut AI), the implementation steps (updated as you progress), and set the status upon completion to Code Complete.","Use .nut/context/project.md and .nut/context/architecture.md for reference and make any logical updates to those files upon completion of the proposal too.",l,`Lastly, please add notable comments to the proposal (.nut/proposals/${e}.md) from your chain-of-thought upon completion, particularly for ideas for future suggestions and/or improvements related to the proposal or wider project.`),t.length>0&&n.push(`Please also use these agents: ${t.join(", ")}`),s&&s.trim()&&n.push(s.trim()),n}function d(e,t){const s=[];return s.push(m),e.length>0&&s.push(`Please use these agents: ${e.join(", ")}`),t&&t.trim()&&s.push(`Additional instruction: ${t.trim()}`),s}const h=e=>{const t=e.selectedAgentIds.map(u=>`.nut/agents/${u}`),o=(e.contextType==="change-proposal"?p(e.proposalId,t,e.customInstruction,e.includeDefaultInstructions??!0):d(t,e.customInstruction)).join(" "),n=[e.automationEnabled?"--dangerously-skip-permissions":""].filter(Boolean).join(" "),c=e.selectedMcpServers.map(u=>`'${u.replace(/'/g,"'\\''")}'`).join(","),a=[JSON.stringify(o)].concat(n?[JSON.stringify("--dangerously-skip-permissions")]:[]);return`node -e "${`const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${c}]);const c=require('./.nut/mcp/config.json');const o={mcpServers:Object.fromEntries(Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)))};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('claude',[${a.join(",")}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`},g=e=>{const t=e.selectedAgentIds.map(i=>`.nut/agents/${i}`),o=(e.contextType==="change-proposal"?p(e.proposalId,t,e.customInstruction,e.includeDefaultInstructions??!0):d(t,e.customInstruction)).join(" ");return`node -e "${`const fs=require('fs'),path=require('path'),{spawn}=require('child_process');const s=new Set([${e.selectedMcpServers.map(i=>`'${i.replace(/'/g,"'\\''")}'`).join(",")}]);const c=require('./.nut/mcp/config.json');const geminiPath=path.join(require('os').homedir(),'.gemini','settings.json');let settings={};try{settings=JSON.parse(fs.readFileSync(geminiPath,'utf8'))}catch(e){}settings.mcpServers=Object.fromEntries(Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)));fs.writeFileSync(geminiPath,JSON.stringify(settings,null,2));const p=spawn('gemini',['-i',${JSON.stringify(o)}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`},f=e=>{const t=e.selectedAgentIds.map(r=>`.nut/agents/${r}`),o=(e.contextType==="change-proposal"?p(e.proposalId,t,e.customInstruction,e.includeDefaultInstructions??!0):d(t,e.customInstruction)).join(" "),n=e.selectedMcpServers.map(r=>`'${r.replace(/'/g,"'\\''")}'`).join(","),c=[JSON.stringify(o)].concat(e.automationEnabled?[JSON.stringify("--dangerously-bypass-approvals-and-sandbox")]:[]);return`node -e "${`const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${n}]);const c=require('./.nut/mcp/config.json');const o={mcpServers:Object.fromEntries(Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)))};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('codex',[${c.join(",")}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`},j=e=>{const t=e.selectedAgentIds.map(r=>`.nut/agents/${r}`),o=(e.contextType==="change-proposal"?p(e.proposalId,t,e.customInstruction,e.includeDefaultInstructions??!0):d(t,e.customInstruction)).join(" "),n=e.selectedMcpServers.map(r=>`'${r.replace(/'/g,"'\\''")}'`).join(","),c=[JSON.stringify(o)];return`node -e "${`const fs=require('fs'),{spawn}=require('child_process');const s=new Set([${n}]);const c=require('./.nut/mcp/config.json');const o={mcpServers:Object.fromEntries(Object.entries(c.mcpServers||{}).filter(([k])=>s.has(k)))};fs.writeFileSync('.mcp.json',JSON.stringify(o,null,2));const p=spawn('droid',[${c.join(",")}],{stdio:'inherit'});p.on('exit',code=>process.exit(code));`.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`};export{j as a,h as b,f as c,g as d};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],r=c("eye",e);export{r as E};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c}from"./index-B8vejVRZ.js";/**
|
|
2
|
+
* @license lucide-react v0.542.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const e=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],a=c("folder-git-2",e);export{a as F};
|