@godmode-team/godmode 1.7.2 → 1.8.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/LICENSE +94 -46
- package/README.md +195 -36
- package/assets/agent-roster/competitor-watch.md +40 -0
- package/assets/agent-roster/content-writer.md +35 -53
- package/assets/agent-roster/godmode-builder.md +2 -2
- package/assets/agent-roster/inbox-manager.md +38 -0
- package/assets/agent-roster/meeting-prep.md +40 -16
- package/assets/agent-roster/skill-optimizer.md +50 -0
- package/assets/agent-roster/weekly-review.md +42 -0
- package/assets/skills/autoresearch.md +1 -1
- package/assets/skills/pattern-scout.md +1 -1
- package/assets/skills/visual-qa.md +128 -0
- package/dist/godmode-ui/aeo.html +1 -1
- package/dist/godmode-ui/assets/brain-tab-B1CYwAJ7.js +402 -0
- package/dist/godmode-ui/assets/connections-tab-Cuv4eW0d.js +91 -0
- package/dist/godmode-ui/assets/ctrl-settings-COfcdhha.js +5 -0
- package/dist/godmode-ui/assets/dashboards-tab-7hHXzWPp.js +137 -0
- package/dist/godmode-ui/assets/index-DcYipcbm.js +1994 -0
- package/dist/godmode-ui/assets/index-DmEmOd0w.css +1 -0
- package/dist/godmode-ui/assets/lit-core-CTInmNPB.js +3 -0
- package/dist/godmode-ui/assets/markdown-i_gIkIP3.js +59 -0
- package/dist/godmode-ui/assets/second-brain-tab-DkFatLwl.js +350 -0
- package/dist/godmode-ui/assets/setup-BnLadXY9.js +1 -0
- package/dist/godmode-ui/assets/team-tab-Q3icI_Q-.js +296 -0
- package/dist/godmode-ui/assets/today-tab-C6lIMzgY.js +209 -0
- package/dist/godmode-ui/assets/views-settings-B2UFEtoi.js +4643 -0
- package/dist/godmode-ui/assets/work-tab-DwU559Bx.js +1 -0
- package/dist/godmode-ui/assets/workspaces-vzpIVgdl.js +718 -0
- package/dist/godmode-ui/index.html +11 -5
- package/dist/index.js +1658 -36092
- package/dist/mcp-entry.js +1272 -0
- package/dist/standalone.js +1917 -0
- package/openclaw.plugin.json +36 -7
- package/package.json +27 -13
- package/scripts/godmode-gateway.service +41 -0
- package/scripts/install-systemd.sh +99 -0
- package/skill-cards/adversarial-board.md +63 -0
- package/skill-cards/autoresearch.md +39 -0
- package/skill-cards/bill-review.md +26 -0
- package/skill-cards/calendar.md +32 -0
- package/skill-cards/code-quality.md +31 -0
- package/skill-cards/competitor-scan.md +26 -0
- package/skill-cards/content-generation.md +26 -0
- package/skill-cards/context-deep-dive.md +65 -0
- package/skill-cards/cron-workflows.md +33 -0
- package/skill-cards/dashboards.md +38 -0
- package/skill-cards/delegate.md +57 -0
- package/skill-cards/files.md +38 -0
- package/skill-cards/godmode-builder.md +58 -0
- package/skill-cards/inbox-sweep.md +26 -0
- package/skill-cards/integrations.md +40 -0
- package/skill-cards/life-admin.md +26 -0
- package/skill-cards/meetings.md +42 -0
- package/skill-cards/meta-problem-solver.md +52 -0
- package/skill-cards/people.md +39 -0
- package/skill-cards/personal-brand.md +71 -0
- package/skill-cards/project-orchestrator.md +97 -0
- package/skill-cards/project-pipeline.md +78 -0
- package/skill-cards/proof-editor.md +28 -0
- package/skill-cards/quality-gate.md +57 -0
- package/skill-cards/quarterly-review.md +26 -0
- package/skill-cards/queue.md +40 -0
- package/skill-cards/screenpipe.md +49 -0
- package/skill-cards/second-brain.md +46 -0
- package/skill-cards/standup-prep.md +26 -0
- package/skill-cards/tasks.md +34 -0
- package/skill-cards/visual-qa.md +56 -0
- package/skill-cards/workspace-memory.md +51 -0
- package/skill-cards/x-twitter.md +37 -0
- package/dist/godmode-ui/assets/dashboards-CrT3s0NG.js +0 -1
- package/dist/godmode-ui/assets/index-BtwTHiwI.js +0 -9353
- package/dist/godmode-ui/assets/index-xiAdnGJD.css +0 -1
- package/dist/godmode-ui/assets/options-QuHclvvX.js +0 -1
- package/dist/godmode-ui/assets/second-brain-ghSM5E6X.js +0 -1
- package/dist/godmode-ui/assets/setup-CWjMtnE4.js +0 -1
- package/dist/godmode-ui/consciousness-icon-64.png +0 -0
- package/dist/godmode-ui/consciousness-icon.png +0 -0
- package/dist/godmode-ui/godmode-logo.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as u,g as w,r as i,t as T}from"./lit-core-CTInmNPB.js";import{a as l,l as f,b as h,s as k,r as g,t as m,c as y,d as W,e as _,f as S,g as C,h as p,i as B,u as x,j as F,k as b,m as P,n as v,p as q,o as E,q as I,v as U,w as Q}from"./index-DcYipcbm.js";import{r as L}from"./workspaces-vzpIVgdl.js";import"./ctrl-settings-COfcdhha.js";import"./views-settings-B2UFEtoi.js";import"./markdown-i_gIkIP3.js";var R=Object.defineProperty,D=Object.getOwnPropertyDescriptor,r=(e,s,t,o)=>{for(var c=o>1?void 0:o?D(s,t):s,n=e.length-1,d;n>=0;n--)(d=e[n])&&(c=(o?d(s,t,c):d(c))||c);return o&&c&&R(s,t,c),c};let a=class extends u{constructor(){super(...arguments),this.selectedWorkspace=null,this.workspacesSearchQuery="",this.workspaceItemSearchQuery="",this.workspacesLoading=!1,this.workspacesCreateLoading=!1,this.workspacesError=null,this.workspaceExpandedFolders=new Set,this.taskFilter="outstanding",this.taskSort="due",this.taskSearch="",this.showCompletedTasks=!1,this.editingTaskId=null,this.workspaceBrowsePath=null,this.workspaceBrowseEntries=null,this.workspaceBreadcrumbs=null,this.workspaceBrowseSearchQuery="",this.workspaceBrowseSearchResults=null,this._unsubs=[],this._lastConnected=!1,this._refreshInFlight=!1}createRenderRoot(){return this}get client(){return this.ctx.gateway}get connected(){return this.ctx.connected}connectedCallback(){super.connectedCallback(),this._unsubs.push(l.on("refresh-requested",e=>{(e.target==="workspaces"||e.target==="work")&&this._refresh()})),this._refresh()}disconnectedCallback(){for(const e of this._unsubs)e();this._unsubs=[],super.disconnectedCallback()}updated(e){super.updated?.(e);const s=this.ctx?.connected??!1;s&&!this._lastConnected&&(!this.workspaces?.length||this.workspacesError)&&this._refresh(),this._lastConnected=s}render(){return L({connected:this.ctx.connected,workspaces:this.workspaces??[],selectedWorkspace:this.selectedWorkspace??null,searchQuery:this.workspacesSearchQuery,itemSearchQuery:this.workspaceItemSearchQuery,expandedFolders:this.workspaceExpandedFolders,loading:this.workspacesLoading,createLoading:this.workspacesCreateLoading,error:this.workspacesError,allTasks:this.allTasks??[],taskFilter:this.taskFilter,taskSort:this.taskSort,taskSearch:this.taskSearch,showCompletedTasks:this.showCompletedTasks,editingTaskId:this.editingTaskId,workspaceNames:(this.workspaces??[]).map(e=>e.name),browsePath:this.workspaceBrowsePath,browseEntries:this.workspaceBrowseEntries,breadcrumbs:this.workspaceBreadcrumbs,browseSearchQuery:this.workspaceBrowseSearchQuery,browseSearchResults:this.workspaceBrowseSearchResults,onSearch:e=>{this.workspacesSearchQuery=e},onItemSearch:e=>{this.workspaceItemSearchQuery=e},onSelectWorkspace:e=>this._onSelectWorkspace(e),onBack:()=>this._onBack(),onItemClick:e=>this._onItemClick(e),onSessionClick:e=>this._onSessionClick(e),onPinToggle:(e,s,t)=>this._onPinToggle(e,s,t),onPinSessionToggle:(e,s,t)=>this._onPinSessionToggle(e,s,t),onCreateWorkspace:e=>this._onCreateWorkspace(e),onDeleteWorkspace:e=>this._onDeleteWorkspace(e),onToggleFolder:e=>this._onToggleFolder(e),onTeamSetup:()=>this._onTeamSetup(),onToggleTaskComplete:(e,s)=>this._onToggleTaskComplete(e,s),onCreateTask:(e,s)=>this._onCreateTask(e,s),onSetTaskFilter:e=>{this.taskFilter=e},onSetTaskSort:e=>{this.taskSort=e},onSetTaskSearch:e=>{this.taskSearch=e},onToggleCompletedTasks:()=>{this.showCompletedTasks=!this.showCompletedTasks},onStartTask:e=>this._onStartTask(e),onViewTaskOutput:e=>this._onViewTaskOutput(e),onEditTask:e=>{this.editingTaskId=e},onUpdateTask:(e,s)=>this._onUpdateTask(e,s),onBrowseFolder:e=>this._onBrowseFolder(e),onBrowseSearch:e=>this._onBrowseSearch(e),onBrowseBack:()=>this._onBrowseBack(),onCreateFolder:e=>this._onCreateFolder(e),onBatchPushToDrive:e=>this._onBatchPushToDrive(e),onPostToFeed:(e,s)=>this._onPostToFeed(e,s),onTestConnection:e=>this._onTestConnection(e),onRemoveConnection:e=>this._onRemoveConnection(e)})}async _refresh(){if(this._refreshInFlight)return;this._refreshInFlight=!0;const e=setTimeout(()=>{this.workspacesLoading&&(console.warn("[GmWork] safety timeout — forcing loading off"),this.workspacesLoading=!1,this.workspacesError??="Loading timed out — tap to retry",this.requestUpdate())},12e3);try{await f(this),this.allTasks=await h(this)}catch(s){console.error("[GmWork] refresh failed:",s)}finally{clearTimeout(e),this._refreshInFlight=!1}this.requestUpdate()}async _onSelectWorkspace(e){this.workspaceItemSearchQuery="",this.workspacesLoading=!0,this.requestUpdate();try{const s=new Promise((t,o)=>setTimeout(()=>o(new Error("Workspace load timed out")),1e4));await Promise.race([k(this,e),s])}catch(s){console.error("[GmWork] workspace select failed:",s),this.selectedWorkspace||(this.selectedWorkspace={...e,pinned:[],pinnedSessions:[],outputs:[],sessions:[],tasks:[]}),this.ctx.addToast(s instanceof Error?s.message:"Failed to open "+e.name,"error")}finally{this.workspacesLoading=!1,this.requestUpdate()}}_onBack(){this.selectedWorkspace=null,this.workspaceItemSearchQuery="",this._onBrowseBack()}async _onItemClick(e){const s=this.selectedWorkspace?.id,t=await g(this,e.path,s);if(!t){this.ctx.addToast("Failed to open "+e.name,"error");return}this.ctx.openSidebar({content:t.content,mimeType:t.mime,filePath:e.path,title:e.name})}_onSessionClick(e){e.key&&l.emit("chat-navigate",{sessionKey:e.key,tab:"chat"})}async _onPinToggle(e,s,t){await m(this,e,s,t)||this.ctx.addToast("Failed to update pin","error"),this.requestUpdate()}async _onPinSessionToggle(e,s,t){await y(this,e,s,t)||this.ctx.addToast("Failed to update session pin","error"),this.requestUpdate()}async _onCreateWorkspace(e){this.workspacesCreateLoading=!0;try{const s=await W(this,e);return s?(this.workspaceItemSearchQuery="",await k(this,s),this.ctx.addToast("Created workspace: "+s.name,"success"),this.requestUpdate(),!0):(this.ctx.addToast("Failed to create workspace","error"),!1)}finally{this.workspacesCreateLoading=!1}}async _onDeleteWorkspace(e){if(!await _(this,e.id)){this.ctx.addToast("Failed to delete "+e.name,"error");return}this.ctx.addToast("Deleted workspace: "+e.name,"success"),this.allTasks=await h(this),this.requestUpdate()}_onToggleFolder(e){this.workspaceExpandedFolders=S(this.workspaceExpandedFolders,e),this.requestUpdate()}_onTeamSetup(){l.emit("chat-navigate",{sessionKey:"new",tab:"chat",message:"I want to set up a Team Workspace so my team can collaborate. Please walk me through it step by step, keeping it simple."})}async _onToggleTaskComplete(e,s){if(!await C(this,e,s)){this.ctx.addToast("Failed to update task","error");return}if(this.allTasks=await h(this),this.selectedWorkspace){const o=await p(this,this.selectedWorkspace.id);o&&(this.selectedWorkspace=o)}this.requestUpdate()}async _onCreateTask(e,s){const t=await B(this,e,s);if(!t){this.ctx.addToast("Failed to create task","error");return}if(this.ctx.addToast("Task created: "+t.title,"success"),this.allTasks=await h(this),this.selectedWorkspace){const o=await p(this,this.selectedWorkspace.id);o&&(this.selectedWorkspace=o)}this.requestUpdate()}async _onUpdateTask(e,s){if(!await x(this,e,s)){this.ctx.addToast("Failed to update task","error");return}if(this.editingTaskId=null,this.allTasks=await h(this),this.selectedWorkspace){const o=await p(this,this.selectedWorkspace.id);o&&(this.selectedWorkspace=o)}this.requestUpdate()}async _onStartTask(e){const s=await F(this,e);if(!s?.sessionId){this.ctx.addToast("Failed to open session for task","error");return}let t="";if(s.created&&!s.queueOutput){const o=[...this.allTasks??[],...this.selectedWorkspace?.tasks??[]].find(n=>n.id===e),c=o?.project?` (project: ${o.project})`:"";t="Let's work on: "+(o?.title??"this task")+c}this.allTasks=await h(this),this.requestUpdate(),l.emit("chat-navigate",{sessionKey:s.sessionId,tab:"chat",message:t})}async _onViewTaskOutput(e){const s=this.ctx?.gateway;if(!(!s||!this.ctx?.connected))try{const o=(await s.request("queue.list",{limit:100}))?.items?.find(d=>d.sourceTaskId===e);if(!o?.result?.outputPath){this.ctx?.addToast?.("No output available for this task","info");return}const c=await s.request("queue.readOutput",{path:o.result.outputPath}),n=o.result.outputPath.split("/").pop()??"Agent Output";this.ctx?.openSidebar?.({content:c.content,mimeType:"text/markdown",filePath:o.result.outputPath,title:n})}catch(t){console.error("[GmWork] View task output failed:",t),this.ctx?.addToast?.("Failed to load agent output","error")}}async _onBrowseFolder(e){if(!this.selectedWorkspace)return;const s=await b(this,this.selectedWorkspace.id,e);s&&(this.workspaceBrowsePath=e,this.workspaceBrowseEntries=s.entries,this.workspaceBreadcrumbs=s.breadcrumbs)}async _onBrowseSearch(e){if(this.workspaceBrowseSearchQuery=e,!e.trim()||!this.selectedWorkspace){this.workspaceBrowseSearchResults=null;return}this.workspaceBrowseSearchResults=await P(this,this.selectedWorkspace.id,e)}_onBrowseBack(){this.workspaceBrowsePath=null,this.workspaceBrowseEntries=null,this.workspaceBreadcrumbs=null,this.workspaceBrowseSearchQuery="",this.workspaceBrowseSearchResults=null}async _onCreateFolder(e){if(!this.selectedWorkspace)return;const s=await v(this,this.selectedWorkspace.id,e);s&&this.workspaceBrowsePath&&await this._onBrowseFolder(this.workspaceBrowsePath),s&&this.ctx.addToast("Folder created","success")}async _onPostToFeed(e,s){if(!this.selectedWorkspace)return;const t=await q(this,this.selectedWorkspace.id,e,s);if(!t){this.ctx.addToast("Failed to post to feed","error");return}this.selectedWorkspace.feedEntries&&(this.selectedWorkspace={...this.selectedWorkspace,feedEntries:[t,...this.selectedWorkspace.feedEntries]}),this.requestUpdate()}async _onTestConnection(e){if(!this.selectedWorkspace)return;this.ctx.addToast("Testing connection...","info");const s=await E(this,this.selectedWorkspace.id,e);if(s.ok){this.ctx.addToast("Connection OK","success");const t=await I(this,this.selectedWorkspace.id);this.selectedWorkspace={...this.selectedWorkspace,connections:t}}else this.ctx.addToast("Connection failed: "+(s.error??"unknown"),"error");this.requestUpdate()}async _onRemoveConnection(e){if(!this.selectedWorkspace)return;if(!await U(this,this.selectedWorkspace.id,e)){this.ctx.addToast("Failed to remove connection","error");return}this.ctx.addToast("Connection removed","success"),this.selectedWorkspace={...this.selectedWorkspace,connections:(this.selectedWorkspace.connections??[]).filter(t=>t.id!==e)},this.requestUpdate()}async _onBatchPushToDrive(e){if(!(e.length===0||!this.ctx.gateway||!this.ctx.connected)){this.ctx.addToast("Uploading "+e.length+" files to Drive...","info");try{const s=await this.ctx.gateway.request("files.batchPushToDrive",{filePaths:e}),t=s?.results?.filter(c=>c.success).length??0,o=s?.results?.length??e.length;t===o?this.ctx.addToast("Uploaded "+t+" files to Google Drive","success"):this.ctx.addToast("Uploaded "+t+"/"+o+" files ("+(o-t)+" failed)","warning")}catch(s){const t=s instanceof Error?s.message:"Unknown error";this.ctx.addToast("Batch Drive upload failed: "+t,"error")}}}};r([w({context:Q,subscribe:!0})],a.prototype,"ctx",2);r([i()],a.prototype,"workspaces",2);r([i()],a.prototype,"selectedWorkspace",2);r([i()],a.prototype,"workspacesSearchQuery",2);r([i()],a.prototype,"workspaceItemSearchQuery",2);r([i()],a.prototype,"workspacesLoading",2);r([i()],a.prototype,"workspacesCreateLoading",2);r([i()],a.prototype,"workspacesError",2);r([i()],a.prototype,"workspaceExpandedFolders",2);r([i()],a.prototype,"allTasks",2);r([i()],a.prototype,"taskFilter",2);r([i()],a.prototype,"taskSort",2);r([i()],a.prototype,"taskSearch",2);r([i()],a.prototype,"showCompletedTasks",2);r([i()],a.prototype,"editingTaskId",2);r([i()],a.prototype,"workspaceBrowsePath",2);r([i()],a.prototype,"workspaceBrowseEntries",2);r([i()],a.prototype,"workspaceBreadcrumbs",2);r([i()],a.prototype,"workspaceBrowseSearchQuery",2);r([i()],a.prototype,"workspaceBrowseSearchResults",2);a=r([T("gm-work")],a);export{a as GmWork};
|