@entrydesk/cli 2.1.0-beta.4 → 2.1.0
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/README.md +15 -0
- package/dist/{add-4VqDcbIj.js → add-D4yZrlJH.js} +1 -1
- package/dist/{agents-CCOqroYN.js → agents-3dOJzTmM.js} +1 -1
- package/dist/{billing-BV5kdyQb.js → billing-Cyk-IzGv.js} +1 -1
- package/dist/{budget-CnxbNkne.js → budget-znTQ0rkG.js} +1 -1
- package/dist/build-task-request-config-C62XneUL.js +10 -0
- package/dist/commands--5Ein-MI.js +10 -0
- package/dist/{commands-DRUlUd-I.js → commands-D5BrzwFc.js} +1 -1
- package/dist/{config-CJf4r7wp.js → config-D-9dIy19.js} +1 -1
- package/dist/{connectors-C_Re7e0l.js → connectors-B7smri5B.js} +2 -2
- package/dist/index.js +17 -17
- package/dist/{instruction-DYgn39xF.js → instruction-BzftVNfK.js} +1 -1
- package/dist/{login-C0Zz6tHG.js → login-Ch3S9nh6.js} +1 -1
- package/dist/{logout-DnFBlXMZ.js → logout-BFFnjWjY.js} +1 -1
- package/dist/{marketplace-DQsEzT6T.js → marketplace-DNm78dKX.js} +1 -1
- package/dist/mcp-D2zejorr.js +11 -0
- package/dist/mcp-client-ltOwvE7T.js +10 -0
- package/dist/{meeting-C6H_GJB7.js → meeting-BdLr54zK.js} +1 -1
- package/dist/{message-utils-Cq_Fel5P.js → message-utils-DiNLK_84.js} +1 -1
- package/dist/{models-DT78HZxx.js → models-6WioEQKB.js} +1 -1
- package/dist/{notifications-3UrKbGaT.js → notifications-DIokyl4e.js} +1 -1
- package/dist/{paginate-Brd-j5V8.js → paginate-C9ixtica.js} +1 -1
- package/dist/{paths-mBL9tt9p.js → paths-CZAS8cbS.js} +1 -1
- package/dist/{profile-D4m5ZAG7.js → profile-CWsA2P_O.js} +1 -1
- package/dist/profile-storage-CuiJZpFD.js +68 -0
- package/dist/{project-C5_rCWCh.js → project-c8F30d-Q.js} +1 -1
- package/dist/{project-context-DnIuy1T0.js → project-context-C0ozCzKH.js} +1 -1
- package/dist/{project-governance-CxDZSThr.js → project-governance-DRDjqvX8.js} +1 -1
- package/dist/{project-sources-D17oXXhL.js → project-sources-DFn7Tn7u.js} +1 -1
- package/dist/{project-sources-write-C-W8gjLg.js → project-sources-write-Bz0lGCid.js} +1 -1
- package/dist/{project-tasks-t4HFgEoZ.js → project-tasks-DnOrMxr3.js} +1 -1
- package/dist/{push-CJZLFEdk.js → push-mojEdys2.js} +1 -1
- package/dist/{recordings-DeB1LqiS.js → recordings-BbeRVH0H.js} +1 -1
- package/dist/remove-BLF3muSH.js +10 -0
- package/dist/{resolve-Czx_OkYk.js → resolve-BoqGhxVK.js} +2 -2
- package/dist/{resource-grants-zAoqe73P.js → resource-grants-CtIINiDN.js} +1 -1
- package/dist/{schedules-COBaV-Be.js → schedules-ec4cS2A0.js} +2 -2
- package/dist/skills-C0xCUb-M.js +10 -0
- package/dist/status-Bfh5hjTq.js +10 -0
- package/dist/status-DpYhlJPA.js +10 -0
- package/dist/{task-C8PttINZ.js → task-DfLoMsmZ.js} +36 -36
- package/dist/{tasks-CAmfAGsn.js → tasks-Bl8A2HW6.js} +1 -1
- package/dist/{tasks-dv0gJ38_.js → tasks-CA2QZ8rX.js} +1 -1
- package/dist/{tool-kEevHrsQ.js → tool-B8CuZYYb.js} +1 -1
- package/dist/{update-Y9S-P4wG.js → update-BVBj3leV.js} +1 -1
- package/dist/{usage-CHIhyA8S.js → usage-CIhTZm98.js} +1 -1
- package/dist/{usage-audit-C1xGe42N.js → usage-audit-BUcbqdAc.js} +3 -3
- package/dist/{version-Dgsb7T5N.js → version-C1OwBsCd.js} +1 -1
- package/dist/{workflow-DWmgcRJ_.js → workflow-DJSq8hY5.js} +1 -1
- package/dist/{workspaces-3PFiXy1I.js → workspaces-BM_3Miqs.js} +1 -1
- package/package.json +5 -4
- package/dist/build-task-request-config-CjKDSNjv.js +0 -10
- package/dist/commands-gyHmiEsC.js +0 -10
- package/dist/mcp-DHXuIFWP.js +0 -11
- package/dist/mcp-client-EK-Fh8gM.js +0 -10
- package/dist/profile-storage-CPg61h-2.js +0 -68
- package/dist/remove-ChV-BE95.js +0 -10
- package/dist/skills-OLZywcSs.js +0 -10
- package/dist/status-CpfDbB9S.js +0 -10
- package/dist/status-Oo8upbyy.js +0 -10
package/README.md
CHANGED
|
@@ -568,6 +568,21 @@ entrydesk config set hubUrl http://localhost:3000
|
|
|
568
568
|
entrydesk config unset apiUrl
|
|
569
569
|
```
|
|
570
570
|
|
|
571
|
+
When only `hubUrl` is set, the CLI asks that Hub where its API lives
|
|
572
|
+
(`GET <hubUrl>/.well-known/entrydesk/client`) the first time a command sends an
|
|
573
|
+
API request, and caches the answer per Hub in `~/.entrydesk/hub-discovery.json`
|
|
574
|
+
for five minutes; the profile config is left untouched. Commands that never
|
|
575
|
+
call the API (`config`, `profile`, `version`) do not contact the Hub, and
|
|
576
|
+
`entrydesk status` shows the API as resolved on first request until then.
|
|
577
|
+
`entrydesk logout` does reach the API to revoke the session, so it resolves
|
|
578
|
+
the URL, and it clears the local credentials either way.
|
|
579
|
+
`ENTRYDESK_API_URL` and a configured `apiUrl` both take precedence and skip
|
|
580
|
+
discovery. If a Hub has no discovery endpoint, the CLI falls back to the
|
|
581
|
+
matching API for `app.entrydesk.com`, `entrydesk.dcard.io` and `stage.gntc.io`,
|
|
582
|
+
and fails the request with an error for any other Hub instead of sending it to
|
|
583
|
+
the production API — set `apiUrl` explicitly in that case. With neither URL
|
|
584
|
+
set, the CLI uses `https://app.entrydesk.com` and `https://api.entrydesk.com`.
|
|
585
|
+
|
|
571
586
|
### Running Against a Local API
|
|
572
587
|
|
|
573
588
|
Point the CLI at a locally running API for one command, or persist it in the
|
|
@@ -7,4 +7,4 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{
|
|
10
|
+
import{M as e}from"./profile-storage-CuiJZpFD.js";import{a as t,d as n,f as r,g as i,i as a,r as o}from"./paths-CZAS8cbS.js";import{t as s}from"./hash-CnSb1n2t.js";import{r as c}from"./installer-CKB3jBE-.js";import{t as l}from"./remote-D3JMUBbh.js";import u from"node:fs";import d from"node:os";import f from"node:path";import p from"cross-spawn";function m(e,t){let n=f.dirname(e);u.mkdirSync(n,{recursive:!0});let r=u.mkdtempSync(f.join(n,`.${f.basename(e)}.tmp-`)),i=f.join(r,`next`),a=f.join(r,`prev`);u.mkdirSync(i,{recursive:!0});let o=!1;try{t(i),u.existsSync(e)&&(u.renameSync(e,a),o=!0),u.renameSync(i,e)}catch(t){throw o&&!u.existsSync(e)&&u.renameSync(a,e),t}finally{u.rmSync(r,{recursive:!0,force:!0})}}const h=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iu,g=/^([\w.-]+)\/([\w.-]+)(?:\/(.+))?$/u;function _(e){return e===`~`?d.homedir():e.startsWith(`~/`)||e.startsWith(`~\\`)?f.join(d.homedir(),e.slice(2)):e}function v(e){return e.startsWith(`./`)||e.startsWith(`../`)||e.startsWith(`/`)||e.startsWith(`~`)||e.startsWith(`.\\`)||/^[a-zA-Z]:[\\/]/u.test(e)}function y(e){let t=/^https?:\/\/github\.com\/([\w.-]+)\/([\w.-]+?)(?:\.git)?(?:\/tree\/([^/]+)(?:\/(.+))?)?\/?$/u.exec(e);return t?{type:`github`,owner:t[1],repo:t[2],gitRef:t[3],subpath:t[4],url:`https://github.com/${t[1]}/${t[2]}`}:null}function b(e){let t=e.trim();if(v(t))return{type:`local`,path:f.resolve(_(t))};if(t.startsWith(`ed:`)){let e=t.slice(3);return{type:`entrydesk`,ref:e,isId:h.test(e)}}if(h.test(t))return{type:`entrydesk`,ref:t,isId:!0};if(t.startsWith(`git@`)||t.endsWith(`.git`))return{type:`git`,url:t};let n=y(t);if(n)return n;if(/^https?:\/\//u.test(t))return{type:`git`,url:t};let r=g.exec(t);return r?{type:`github`,owner:r[1],repo:r[2],subpath:r[3],url:`https://github.com/${r[1]}/${r[2]}`}:{type:`entrydesk`,ref:t,isId:!1}}function x(e){return e.type===`github`?`github`:e.type}const S=new Set([`.git`,`node_modules`,`__pycache__`,`.DS_Store`,`.entrydesk`]);function C(e,t){if(!u.existsSync(f.join(e,`SKILL.md`)))throw Error(`No SKILL.md found at ${e}`);let n=u.realpathSync(e);if(n===(u.existsSync(t)?u.realpathSync(t):f.resolve(t)))return;let r=u.mkdtempSync(f.join(d.tmpdir(),`ed-local-skill-`)),i=f.join(r,`skill`);try{u.cpSync(n,i,{recursive:!0,filter:e=>!S.has(f.basename(e))}),m(t,e=>{u.cpSync(i,e,{recursive:!0})})}finally{u.rmSync(r,{recursive:!0,force:!0})}}function w(e){try{let t=u.readFileSync(f.join(e,`SKILL.md`),`utf8`),n=/^name:\s*(.+?)\s*$/mu.exec(t.split(/^---\s*$/mu)[1]??``);if(n?.[1])return n[1].replace(/^['"]|['"]$/gu,``)}catch{}return f.basename(e)}async function T(e,t){let{default:n}=await import(`adm-zip`),r=new n(e);m(t,e=>{let t=f.resolve(e)+f.sep;for(let n of r.getEntries()){if(n.isDirectory)continue;let r=f.resolve(e,n.entryName);if(!r.startsWith(t))throw Error(`Zip entry contains path traversal: ${n.entryName}`);u.mkdirSync(f.dirname(r),{recursive:!0}),u.writeFileSync(r,n.getData())}})}async function E(e,t){if(t.isId)return t.ref;let n=(await l(e.client,e.accessToken,e.workspaceId)).find(e=>e.name===t.ref||e.id===t.ref);if(!n)throw Error(`Skill not found in workspace: ${t.ref}`);return n.id}function D(e,t,n){let r=u.mkdtempSync(f.join(d.tmpdir(),`ed-npx-skills-`)),i=[`-y`,`skills@1.5.12`,`add`,e,`--copy`,`--yes`];try{let e=p.sync(`npx`,i,{cwd:r,stdio:n?[`ignore`,`pipe`,`pipe`]:`inherit`});if(e.error)throw e.error;if(e.status!==0){let t=e.stderr?.toString().trim();throw Error(`npx exited with code ${e.status??`null`}${t?`: ${t}`:``}`)}}catch(t){throw u.rmSync(r,{recursive:!0,force:!0}),Error(`npx skills failed for ${e}. Ensure npx + network are available. (${t instanceof Error?t.message:String(t)})`,{cause:t})}let a=f.join(r,`.agents`,`skills`);if(!u.existsSync(a))throw u.rmSync(r,{recursive:!0,force:!0}),Error(`npx skills produced no skills under ${a}`);let o=u.readdirSync(a,{withFileTypes:!0}).filter(e=>e.isDirectory());if(o.length===0)throw u.rmSync(r,{recursive:!0,force:!0}),Error(`npx skills installed no skill directory`);let s=o[0];if(o.length>1){let e=t.type===`github`&&t.subpath?f.basename(t.subpath):void 0,n=e?o.find(t=>t.name===e):void 0;if(!n)throw u.rmSync(r,{recursive:!0,force:!0}),Error(`npx skills installed [${o.map(e=>e.name).join(`, `)}]; ${e?`none matched the subpath "${e}"`:`specify a subpath to pick one`}.`);s=n}return{dir:f.join(a,s.name),tmpRoot:r}}async function O(l,d,f){let p=b(l),m=!!d.global,h=await a(m,f.workspaceId),g=h.rootDir,_={...f,workspaceId:h.workspaceId};if(!h.linked){let i={workspaceId:f.workspaceId,apiUrl:await e()};t(),m?n(i):r(process.cwd(),i)}let v,y,S;if(p.type===`entrydesk`){y=await E(_,p);let e=await _.client.downloadSkillCurrent(_.accessToken,_.workspaceId,y);v=e.name,S=o(g,v);let t=await fetch(e.url);if(!t.ok)throw Error(`Failed to download ${v}: ${t.status}`);await T(Buffer.from(await t.arrayBuffer()),S)}else if(p.type===`local`)v=w(p.path),S=o(g,v),C(p.path,S);else{let{dir:e,tmpRoot:t}=D(l,p,!!d.json);try{v=w(e),S=o(g,v),C(e,S)}finally{u.rmSync(t,{recursive:!0,force:!0})}}let O=s(S),k={source:l,sourceType:x(p),skillId:y,localHash:O,lastPulledHash:p.type===`entrydesk`?O:``,mode:`symlink`,...p.type===`github`?{sourceUrl:p.url,ref:p.gitRef,subpath:p.subpath}:{},...p.type===`git`?{sourceUrl:p.url}:{}};i(g,v,k);let A=c(S,v,g,`symlink`,d.agent);d.json?console.info(JSON.stringify({name:v,sourceType:x(p),hash:O},null,2)):console.info(`✓ added ${v} (${p.type}, ${O.slice(0,12)}) → agents: ${A.map(e=>e.agentId).join(`, `)}`)}export{O as runSkillsAdd};
|
|
@@ -7,4 +7,4 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{
|
|
10
|
+
import{Mt as e,Ot as t,b as n,dt as r,jt as i,u as a}from"./profile-storage-CuiJZpFD.js";import{t as o}from"./resource-grants-CtIINiDN.js";function s(n){return n?e([...new Set(n)]):t}function c(e){console.log(`Available agents (${e.length}):\n`);for(let t of e){if(console.log(` ${t.name} (${t.visibility})`),t.description){let e=t.description.length>80?`${t.description.slice(0,80)}…`:t.description;console.log(` ${e}`)}console.log(` ID: ${t.id}`),console.log(``)}}function l(e){console.log(`My agents (${e.length}):\n`);for(let t of e){let e=[];t.latestVersionNumber!=null&&e.push(`v${t.latestVersionNumber}`),t.hasUnpublishedChanges&&e.push(`unpublished changes`);let n=e.length>0?` (${e.join(` · `)})`:``;if(console.log(` ${t.name}${n}`),t.description){let e=t.description.length>80?`${t.description.slice(0,80)}…`:t.description;console.log(` ${e}`)}console.log(` ${t.myRole??`no-role`} · ID: ${t.id}`),console.log(``)}}function u(e){if(console.log(`${e.name}\n`),console.log(` ID: ${e.id}`),e.visibility&&console.log(` Visibility: ${e.visibility}`),e.model&&console.log(` Model: ${e.model.name}`),e.author&&console.log(` Author: ${e.author.name}${e.author.isMe?` (you)`:``}`),e.description&&console.log(` Description: ${e.description}`),e.capabilities){let t=i(e.capabilities).map(e=>r(e));t.length>0&&console.log(` Capabilities: ${t.join(`, `)}`)}e.connectors&&e.connectors.length>0&&console.log(` Connectors: ${e.connectors.map(e=>e.name).join(`, `)}`),e.tools&&e.tools.length>0&&console.log(` Tools: ${e.tools.length}`),e.conversationStarters&&e.conversationStarters.length>0&&console.log(` Starters: ${e.conversationStarters.length}`),e.systemPrompt&&console.log(`\n System prompt:\n${e.systemPrompt}`)}async function d(e){let{accessToken:t,workspaceId:r}=await a(),i=new n;if(e.mine){let n=[],a=e.all?void 0:e.nextKey;for(let o=0;;o++){o>=100&&(console.error(`Reached maximum page limit (100). Use --limit and --next-key for manual pagination.`),process.exit(1));let s=await i.getMyAgents(t,r,{limit:e.limit,nextKey:a});if(n.push(...s.agents),a=s.nextKey,!e.all||!a)break}if(e.json){console.log(JSON.stringify({agents:n,nextKey:a}));return}if(n.length===0){console.log("You own no agents in this workspace. Create one with `entrydesk agents create --name <name> …`, or browse `entrydesk marketplace`.");return}l(n),!e.all&&a&&console.log(`Next page: --next-key ${a}`);return}if(e.all){let n=[],a;for(let o=0;;o++){o>=100&&(console.error(`Reached maximum page limit (100). Use --limit and --next-key for manual pagination.`),process.exit(1));let s=await i.getAgents(t,r,{limit:e.limit??100,nextKey:a});if(n.push(...s.agents),a=s.nextKey,!a)break}if(e.json){console.log(JSON.stringify({agents:n}));return}if(n.length===0){console.log("No agents in this workspace yet. Create one with `entrydesk agents create`, or browse `entrydesk marketplace`.");return}c(n);return}let{agents:o,nextKey:s}=await i.getAgents(t,r,{limit:e.limit,nextKey:e.nextKey});if(e.json){console.log(JSON.stringify({agents:o,nextKey:s}));return}if(o.length===0){console.log("No agents in this workspace yet. Create one with `entrydesk agents create`, or browse `entrydesk marketplace`.");return}c(o),s&&console.log(`Next page: --next-key ${s}`)}async function f(e,t){let{accessToken:r,workspaceId:i}=await a(),o=await new n().getAgent(r,i,e);if(t.json){console.log(JSON.stringify(o));return}u(o)}async function p(e){let{accessToken:t,workspaceId:r}=await a(),i=await new n().createAgent(t,r,{name:e.name,description:e.description,systemPrompt:e.systemPrompt,modelId:e.modelId,connectorIds:e.connectorIds??[],capabilities:s(e.capabilities),conversationStarters:e.conversationStarters??[],tools:e.tools,iconId:e.iconId});if(e.json){console.log(JSON.stringify(i));return}console.log(`Created agent: ${i.name}`),console.log(` ID: ${i.id}`)}async function m(e,t){let{accessToken:r,workspaceId:i}=await a(),o=new n,c=await o.getAgent(r,i,e),l={name:t.name??c.name,description:t.description??c.description,systemPrompt:t.systemPrompt??c.systemPrompt??``,modelId:t.modelId??c.model?.id??``,connectorIds:t.connectorIds??c.connectors?.map(e=>e.id)??[],capabilities:t.capabilities?s(t.capabilities):c.capabilities??{},conversationStarters:t.conversationStarters??c.conversationStarters??[],tools:t.tools??c.tools??[],iconId:t.iconId??c.iconId};await o.updateAgent(r,i,e,l),console.log(`Updated agent: ${e}`)}async function h(e){let{accessToken:t,workspaceId:r}=await a();await new n().deleteAgent(t,r,e),console.log(`Deleted agent: ${e}`)}async function g(e,t){let{accessToken:r,workspaceId:i}=await a();if(await new n().publishAgent(r,i,e),t.json){console.log(JSON.stringify({id:e,published:!0}));return}console.log(`Published agent to the workspace: ${e}`)}async function _(e,t){let{accessToken:r,workspaceId:i}=await a(),s=new n;if(t.addUser){let n=await s.upsertAgentGrant(r,i,e,t.addUser,t.role);if(t.json){console.log(JSON.stringify(n));return}console.log(`Granted ${t.role} to user ${t.addUser}`);return}if(t.removeUser){if(await s.removeAgentGrant(r,i,e,t.removeUser),t.json){console.log(JSON.stringify({userId:t.removeUser,removed:!0}));return}console.log(`Revoked access for user ${t.removeUser}`);return}let c=await s.getAgentGrants(r,i,e);if(t.json){console.log(JSON.stringify(c));return}o(c)}export{p as createAgent,h as deleteAgent,d as listAgents,g as publishAgent,_ as shareAgent,f as showAgent,m as updateAgent};
|
|
@@ -7,4 +7,4 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{b as e,u as t,v as n}from"./profile-storage-
|
|
10
|
+
import{b as e,u as t,v as n}from"./profile-storage-CuiJZpFD.js";import{r}from"./format-DCvznP70.js";import{t as i}from"./paginate-C9ixtica.js";function a(e){if(console.log(`Billing status: ${e.lifecycle.kind}`),e.subscription){let t=e.subscription,n=t.nextInvoiceDueAt?` · next invoice ${new Date(t.nextInvoiceDueAt).toLocaleDateString()}`:``;console.log(` Plan: ${t.planName} · ~${r(t.estimatedMonthlyChargeUsd)}/month${n}`)}else console.log(` Plan: (no active subscription)`);let t=e.seats;console.log(` Seats: pro ${t.assigned.pro}/${t.purchased.pro}, premium ${t.assigned.premium}/${t.purchased.premium} (assigned/purchased)`);let n=e.extraUsage;console.log(` Balance: ${r(n.balanceUsd)} extra usage`),console.log(` Spent: ${r(n.currentSpentUsd)} this period`),n.monthlyExtraUsageLimitUsd!=null&&console.log(` Limit: ${r(n.monthlyExtraUsageLimitUsd)} / month`)}function o(e){console.log(`Invoices (${e.length}):\n`);for(let t of e){let e=new Date(t.billingDate).toLocaleDateString();console.log(` ${e} · ${t.type} · ${t.status} · ${r(t.totalUsd)}`),t.hostedInvoiceUrl&&console.log(` ${t.hostedInvoiceUrl}`),console.log(` ID: ${t.id}`),console.log(``)}}async function s(){return n()&&(console.error("Billing requires an interactive login. A workspace PAT (ENTRYDESK_TOKEN) cannot read billing — run `entrydesk login`."),process.exit(1)),t()}async function c(t){let{accessToken:n,workspaceId:r}=await s(),i=await new e().getBillingOverview(n,r);if(t.json){console.log(JSON.stringify(i));return}a(i)}async function l(t){let{accessToken:n,workspaceId:r}=await s(),a=new e;if(t.all){let e=await i(async e=>{let i=await a.getBillingInvoices(n,r,{limit:t.limit??20,nextKey:e});return{items:i.invoices,nextKey:i.nextKey}});if(t.json){console.log(JSON.stringify({invoices:e}));return}if(e.length===0){console.log(`No invoices.`);return}o(e);return}let{invoices:c,nextKey:l}=await a.getBillingInvoices(n,r,{limit:t.limit,nextKey:t.nextKey});if(t.json){console.log(JSON.stringify({invoices:c,nextKey:l}));return}if(c.length===0){console.log(`No invoices.`);return}o(c),l&&console.log(`Next page: --next-key ${l}`)}export{l as listInvoices,c as showBillingStatus};
|
|
@@ -7,4 +7,4 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{b as e,u as t}from"./profile-storage-
|
|
10
|
+
import{b as e,u as t}from"./profile-storage-CuiJZpFD.js";async function n(n){let{accessToken:r,workspaceId:i}=await t(),a=await new e().getBudget(r,i);if(n.json){console.log(JSON.stringify(a));return}if(a.budget===null){console.log(`No budget set for this workspace.`);return}console.log(`Current workspace budget: $${a.budget}`)}async function r(n,r){let{accessToken:i,workspaceId:a}=await t(),o=new e;if(await o.updateBudget(i,a,n),r.json){console.log(JSON.stringify(await o.getBudget(i,a)));return}console.log(`Budget updated: $${n}`)}async function i(n){let{accessToken:r,workspaceId:i}=await t(),a=new e;if(await a.updateBudget(r,i,null),n.json){console.log(JSON.stringify(await a.getBudget(r,i)));return}console.log(`Budget cleared.`)}export{i as clearBudget,r as setBudget,n as showBudget};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __entrydeskNodeFloor = 24;
|
|
3
|
+
if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
4
|
+
process.stderr.write(
|
|
5
|
+
'entrydesk: Node.js ' + __entrydeskNodeFloor + ' or newer is required, but this is Node ' + process.versions.node + '.\n' +
|
|
6
|
+
'Upgrade Node (https://nodejs.org/en/download), then reinstall @entrydesk/cli.\n'
|
|
7
|
+
);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
}
|
|
10
|
+
import{lt as e,mt as t,pt as n,ut as r}from"./profile-storage-CuiJZpFD.js";function i({allowedTools:e,disallowedTools:r}){if(!(!e?.length&&!r?.length))return[...t(e?.map(e=>({toolName:e,policy:n.ALWAYS_ALLOW})),r?.map(e=>({toolName:e,policy:n.BLOCK})))].map(([e,t])=>({toolName:e,policy:t}))}function a(e,r){let i=[...r].map(e=>({toolName:e,policy:n.ALWAYS_ALLOW}));return i.length===0?e:[...t(e,i)].map(([e,t])=>({toolName:e,policy:t}))}function o({agentId:t,model:n,projectId:i,connectorIds:a,clientTools:o,clientToolSystemPrompt:s,toolApprovalMode:c,toolPolicies:l}){return{...i?{projectId:i}:{},...t?{agentId:t}:{...n?{model:n}:{},...a?.length?{connectorIds:a}:{}},...o?{clientTools:r(o,e.DIRECT)}:{},...s?{clientToolSystemPrompt:s}:{},...c?{toolApprovalMode:c}:{},...l?.length?{toolPolicies:l}:{}}}export{i as n,a as r,o as t};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __entrydeskNodeFloor = 24;
|
|
3
|
+
if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
4
|
+
process.stderr.write(
|
|
5
|
+
'entrydesk: Node.js ' + __entrydeskNodeFloor + ' or newer is required, but this is Node ' + process.versions.node + '.\n' +
|
|
6
|
+
'Upgrade Node (https://nodejs.org/en/download), then reinstall @entrydesk/cli.\n'
|
|
7
|
+
);
|
|
8
|
+
process.exit(1);
|
|
9
|
+
}
|
|
10
|
+
import{M as e}from"./profile-storage-CuiJZpFD.js";import{a as t,c as n,d as r,f as i,g as a,i as o,l as s,m as c,o as l,r as u,s as d,u as f}from"./paths-CZAS8cbS.js";import{t as p}from"./hash-CnSb1n2t.js";import{r as m}from"./installer-CKB3jBE-.js";import h from"node:path";import g from"node:fs/promises";const _=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/iu;async function v(a,o,s){let c=a&&_.test(a)?a:s.workspaceId,l={workspaceId:c,apiUrl:await e()};if(t(),o.global)r(l),console.info(`Linked ${d()} → workspace ${c}`);else{let e=process.cwd();i(e,l),console.info(`Linked ${n(e)} → workspace ${c}`)}}function y(e){if(e.global){s()?console.info(`Unlinked ${d()}`):console.info(`No global link found.`);return}let t=l(process.cwd());t&&f(t)?console.info(`Unlinked ${n(t)}`):console.info(`No project link found.`)}async function b(e,t,n,r,i){let o=n.skillId;if(!o){let{skills:t}=await e.client.listAvailableSkills(e.accessToken,e.workspaceId),r=t.find(e=>e.name===n.name);if(!r)throw Error(`Skill not found in workspace: ${n.name}`);o=r.id}let{url:s,name:c}=await e.client.downloadSkillCurrent(e.accessToken,e.workspaceId,o),l=await fetch(s);if(!l.ok)throw Error(`Failed to download ${c}: ${l.status}`);let d=Buffer.from(await l.arrayBuffer()),f=u(t,c);await g.rm(f,{recursive:!0,force:!0}),await g.mkdir(f,{recursive:!0});let{default:_}=await import(`adm-zip`),v=h.resolve(f)+h.sep;for(let e of new _(d).getEntries()){if(e.isDirectory)continue;let t=h.resolve(f,e.entryName);if(!t.startsWith(v))throw Error(`Zip entry contains path traversal: ${e.entryName}`);await g.mkdir(h.dirname(t),{recursive:!0}),await g.writeFile(t,e.getData())}let y=p(f);a(t,c,{source:o,sourceType:`entrydesk`,skillId:o,localHash:y,lastPulledHash:y,mode:`symlink`});let b=m(f,c,t,`symlink`,i);return r||console.info(`✓ pulled ${c} (${y.slice(0,12)}) → agents: ${b.map(e=>e.agentId).join(`, `)}`),{name:c,hash:y}}async function x(e,t,n){let{rootDir:r,workspaceId:i}=await o(!!t.global,n.workspaceId),a={...n,workspaceId:i},s=!!t.json,l=[];if(e)l.push(_.test(e)?{skillId:e}:{name:e});else{let e=c(r).skills;for(let[t,n]of Object.entries(e))l.push({skillId:n.skillId,name:t});if(l.length===0){console.info(`Nothing to pull — no tracked skills. Try: entrydesk skills pull <name>`);return}}let u=[];for(let e of l)u.push(await b(a,r,e,s,t.agent));s&&console.info(JSON.stringify(u,null,2))}export{x as n,y as r,v as t};
|
|
@@ -7,5 +7,5 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{
|
|
10
|
+
import{F as e,P as t,t as n}from"./profile-storage-CuiJZpFD.js";function r(e){try{let{pathname:t}=new URL(e);return t.replace(/\/+$/u,``).endsWith(`/api`)}catch{return!1}}function i(r){let i=e.getAll();if(r.json){console.log(JSON.stringify(i));return}let a=Object.entries(i);if(console.log(`Profile: ${n.getEffectiveProfileName()}`),a.length===0){console.log(`No configuration set.`),console.log(`Available keys: ${t.join(`, `)}`);return}console.log(`Configuration:
|
|
11
11
|
`);for(let[e,t]of a)console.log(` ${e}=${t}`);console.log(`\nAvailable keys: ${t.join(`, `)}`)}function a(t,n){let r=e.get(t);n.json?console.log(JSON.stringify({[t]:r??null})):console.log(r||`Not set`)}function o(t,i){e.set(t,i),console.log(`Set ${t}=${i}`),console.error(`(profile: ${n.getEffectiveProfileName()})`),t===`apiUrl`&&r(i)&&console.error(`Warning: ${i} looks like a web app's "/api" browser proxy path. Such proxies usually strip the Authorization header, so CLI requests will fail with 401 missing_token — prefer the API server's own URL unless you know this proxy forwards Authorization.`)}function s(t){e.unset(t),console.log(`Unset ${t}`),console.error(`(profile: ${n.getEffectiveProfileName()})`)}export{a as getConfigValue,i as listConfig,o as setConfigValue,s as unsetConfigValue};
|
|
@@ -7,5 +7,5 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{
|
|
11
|
-
After you approve, the connection is saved automatically — re-run`),console.log("`entrydesk connectors` to confirm it shows as connected.");return}let s;t.token?s={token:t.token}:t.username&&t.password?s={username:t.username,password:t.password}:(console.error(`Provide --token, or --username and --password, or --oauth to connect.`),process.exit(1)),await
|
|
10
|
+
import{Dt as e,K as t,W as n,X as r,Z as i,b as a,u as o}from"./profile-storage-CuiJZpFD.js";import{t as s}from"./confirm-Ct432t3K.js";function c(e,t){return t?r(t)?`Next: entrydesk connectors connect ${e} --oauth`:t===`credentials`?`Next: entrydesk connectors connect ${e} --username <username> --password <password>`:`Next: entrydesk connectors connect ${e} --token <token>`:`This connector needs no authorization — there is no connect step.`}async function l(e){let{accessToken:t,workspaceId:n}=await o(),{connectors:r,nextKey:i}=await new a().getConnectors(t,n,{connectionStatus:e.all?`all`:`connected`,search:e.search,limit:e.limit,nextKey:e.nextKey});if(e.json){console.log(JSON.stringify({connectors:r,nextKey:i}));return}if(r.length===0){console.log(e.all?`No connectors found.`:`No connected connectors. Use --all to browse connectable ones.`);return}let s=e.all?`Connectors`:`Connected connectors`;console.log(`${s} (${r.length}):\n`);for(let e of r){let t=e.connected?`connected`:`not connected`;console.log(` ${e.name} (${t})`),console.log(` Provider: ${e.provider}`),console.log(` ID: ${e.id}`),e.authorization?.type&&console.log(` Auth: ${e.authorization.type}`),console.log(``)}i&&console.log(`More results: --next-key ${i}`)}async function u(e,t){let{accessToken:n,workspaceId:r}=await o(),{tools:i}=await new a().getConnectorTools(n,r,e);if(t.json){console.log(JSON.stringify({tools:i}));return}if(i.length===0){console.log(`This connector exposes no tools.`);return}console.log(`Tools (${i.length}):\n`);for(let e of i)console.log(` ${e.name} [${e.policy}]`),e.description&&console.log(` ${e.description}`)}async function d(e,t){let{accessToken:n,workspaceId:r}=await o();await new a().syncConnectorTools(n,r,e),console.log(t.json?JSON.stringify({id:e,synced:!0}):`Synced tools for connector ${e}.`)}async function f(e,t){let{accessToken:n,workspaceId:r}=await o(),i=new a;if(t.oauth){let{url:a}=await i.getConnectorAuthUrl(n,r,e);if(t.json){console.log(JSON.stringify({url:a}));return}console.log(`Open this URL in your browser to authorize the connector:`),console.log(` ${a}`),console.log(`
|
|
11
|
+
After you approve, the connection is saved automatically — re-run`),console.log("`entrydesk connectors` to confirm it shows as connected.");return}let s;t.token?s={token:t.token}:t.username&&t.password?s={username:t.username,password:t.password}:(console.error(`Provide --token, or --username and --password, or --oauth to connect.`),process.exit(1)),await i.connectConnectorToken(n,r,e,s),console.log(t.json?JSON.stringify({id:e,connected:!0}):`Connected connector ${e}.`)}function p(e){let t=e.auth===`oauth`||e.auth===`google-iap`;if(t&&(!e.provider||!e.scope?.length)&&(console.error(`--auth ${e.auth} needs --provider and at least one --scope.`),process.exit(1)),!t&&(e.provider||e.scope?.length)&&(console.error(e.auth?`--provider and --scope apply only to --auth oauth and --auth google-iap, not --auth ${e.auth}.`:`--provider and --scope need --auth oauth or --auth google-iap.`),process.exit(1)),e.auth!==void 0)return e.auth===!1?null:{type:e.auth,...e.provider?{provider:e.provider}:{},...e.scope?.length?{scopes:e.scope}:{}}}async function m(r){let s=p(r),l=r.toolNamespace??r.toolPrefix,u=l??i(r.name),d=t(u);if(d){let e=n[d];console.error(l?`--tool-namespace ${e}.`:`The tool namespace derived from --name ("${u}") ${e}. Pass --tool-namespace explicitly.`),process.exit(1)}let{accessToken:f,workspaceId:m}=await o(),h=await new a().createCustomConnector(f,m,{type:e.CUSTOM_REMOTE_URL,name:r.name,description:r.description,transport:r.transport,url:r.url,toolNamespace:u,...s?{authorization:s}:{}});if(r.json){console.log(JSON.stringify(h));return}console.log(`Created connector ${h.name}.`),console.log(` ID: ${h.id}`),console.log(` URL: ${h.url}`),console.log(` Tool namespace: ${h.toolNamespace}`),console.log(`\n${c(h.id,r.auth)}`)}function h(e,t){return t===void 0?e:t===null||t.type!==e?.type?t:{...e,...t}}async function g(t,n){[n.name,n.url,n.description,n.transport,n.toolNamespace,n.auth,n.provider,n.scope].every(e=>e===void 0)&&(console.error(`Nothing to update. Pass at least one of --name, --url, --description, --transport, --tool-namespace, --auth or --no-auth.`),process.exit(1));let r=p(n),{accessToken:i,workspaceId:s}=await o(),c=new a,l=await c.getCustomConnector(i,s,t),u=await c.updateCustomConnector(i,s,t,{type:e.CUSTOM_REMOTE_URL,name:n.name??l.name,description:n.description??l.description,transport:n.transport??l.transport,url:n.url??l.url,toolNamespace:n.toolNamespace??l.toolNamespace,authorization:h(l.authorization,r)});if(n.json){console.log(JSON.stringify(u));return}console.log(`Updated connector ${u.name}.`),console.log(` ID: ${u.id}`),console.log(` URL: ${u.url}`),console.log(` Tool namespace: ${u.toolNamespace}`)}async function _(e,t){let{accessToken:n,workspaceId:r}=await o();if(!t.yes&&(process.stdin.isTTY||(console.error(`Disconnecting connector ${e} needs confirmation. Re-run with --yes.`),process.exit(1)),!await s(`Disconnect connector ${e}?`))){console.log(`Aborted.`);return}await new a().disconnectConnector(n,r,e),console.log(t.json?JSON.stringify({id:e,disconnected:!0}):`Disconnected connector ${e}.`)}export{f as connectConnector,m as createConnector,_ as disconnectConnector,u as listConnectorTools,l as listConnectors,d as syncConnectorTools,g as updateConnector};
|
package/dist/index.js
CHANGED
|
@@ -7,28 +7,28 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{
|
|
10
|
+
import{At as e,E as t,Et as n,G as r,Gt as i,H as a,It as o,J as ee,K as te,Kt as ne,P as re,T as ie,U as ae,V as s,W as oe,Y as c,_t as se,bt as l,gt as u,ht as d,kt as f,o as ce,q as le,qt as ue,t as p,vt as de,z as fe}from"./profile-storage-CuiJZpFD.js";import{t as pe}from"./version-C1OwBsCd.js";import{a as m,c as me,i as he,n as ge,o as _e,r as ve,s as ye,t as be}from"./options-Dpxg1wT1.js";import{Argument as xe,Command as Se,InvalidArgumentError as h,Option as g}from"@commander-js/extra-typings";function _(e){if(!/^[+-]?\d+$/u.test(e.trim()))throw new h(`must be an integer`);return Number.parseInt(e,10)}function v(e,t){return n=>{let r=_(n);if(r<e||r>t)throw new h(`must be an integer between ${e} and ${t}`);return r}}function y(e){return t=>{let n=Number(t.trim());if(t.trim()===``||!Number.isFinite(n))throw new h(`must be a number`);if(n<e)throw new h(`must be at least ${e}`);return n}}function b(e){return t=>{if(t.length>e)throw new h(`must be at most ${e} characters`);return t}}function x(e){let t=b(e);return e=>{let n=e.trim();if(n.length===0)throw new h(`must not be empty`);return t(n)}}function S(e){let t=ee(e);if(t)throw new h(r[t]);return e}function C(e){let t=te(e);if(t)throw new h(oe[t]);return e}function w(e){let t=e.split(`,`).map(e=>e.trim()).filter(e=>e.length>0);if(t.length===0)throw new h(`must list at least one value`);return t}function T(e,t){let n=v(e,t);return e=>w(e).map(n)}function Ce(e,t=[]){return[...t,e]}const we=/[()*]/u;function E(e,t=[]){let n=e.split(/[\s,]+/u).filter(e=>e.length>0);if(n.length===0)throw new h(`must name at least one tool`);for(let e of n)if(we.test(e))throw new h(`"${e}" is not a tool name. Name each tool in full, as it is exposed to the model (for example slack__send_message); narrowing one to some of its arguments or matching a whole namespace is not supported`);return[...t,...n]}const Te=new Map([[`web`,f.WEB_SEARCH],[`image`,f.CREATION],[`image-gen`,f.CREATION],[`image_generation`,f.CREATION]]);function Ee(t){return w(t).map(t=>{let n=t.replaceAll(`-`,`_`),r=Te.get(t)??e.find(e=>e===n);if(!r)throw new h(`"${t}" is not one of: ${e.join(`, `)}`);return r})}function D(e){let t=/^(\d{1,2}):(\d{2})$/u.exec(e);if(!t)throw new h(`"${e}" is not an HH:MM time`);let n=Number.parseInt(t[1],10),r=Number.parseInt(t[2],10);if(n>23||r>59)throw new h(`"${e}" is not a valid time of day`);return{hour:n,minute:r}}function De(e){return w(e).map(D)}function Oe(e){return w(e).map(e=>{let[t,n]=e.split(`-`);if(!t||!n)throw new h(`"${e}" is not an HH:MM-HH:MM range`);return{start:D(t),end:D(n)}})}const O=`--profile <name>`;function k(e){return e.option(`--json`,`Output JSON for scripting`)}function A(e,t){return e.option(`--limit <number>`,`Max results per page (default: ${t})`,v(1,100)).option(`--next-key <cursor>`,`Fetch the next page using this cursor`)}function j(e,t){return A(e,t).addOption(new g(`--all`,`Fetch every page (auto-paginate)`).conflicts(`nextKey`))}function M(e){return e.addOption(new g(`--add-user <userId>`,`Grant a user access`).conflicts(`removeUser`)).option(`--remove-user <userId>`,`Revoke a user's access`)}function N(e){return M(e).addOption(new g(`--role <role>`,`Role for --add-user`).choices(n.options).default(n.enum.viewer))}const P={chat:`Chat & Tasks:`,build:`Build:`,workspace:`Workspace:`,setup:`Setup:`};function ke(){return new Se().name(`entrydesk`).description(`EntryDesk CLI — interact with EntryDesk from your terminal`).option(`--json`,`Output JSON for scripting (most commands support it)`).option(O,`Use a specific profile for this command`).version(`entrydesk ${pe()}`,`-v, --version`,`Show the version number`).showHelpAfterError("(run `entrydesk --help` to see the command list)").configureHelp({showGlobalOptions:!0}).addHelpText(`after`,`
|
|
11
11
|
Examples:
|
|
12
12
|
entrydesk task -m "Summarize my open tasks" --model <model>
|
|
13
13
|
entrydesk meeting transcript <recordingId> | entrydesk task -m "List action items"
|
|
14
14
|
entrydesk agents list --mine --json
|
|
15
15
|
|
|
16
|
-
Docs: https://entrydesk.com/docs/cli`)}function F(
|
|
16
|
+
Docs: https://entrydesk.com/docs/cli`)}function F(t){return t.option(`--connector-ids <ids>`,`Comma-separated connector ids`,w).option(`--capabilities <list>`,`Comma-separated capabilities (${e.join(`, `)})`,Ee).option(`--conversation-starters <list>`,`Comma-separated conversation starters`,w).option(`--tools <list>`,`Comma-separated tool names (prefix__tool)`,w).option(`--icon-id <iconId>`,`Icon to use`)}function Ae(e){let t=e.command(`agents`).summary(`List, show, create, publish, and share agents`).helpGroup(P.build);k(j(t.command(`list`,{isDefault:!0}).description(`List available agents`).option(`--me, --mine`,`List agents you own or edit, with their publish state`),100)).action(async(e,t)=>{let{listAgents:n}=await import(`./agents-3dOJzTmM.js`);await n(t.optsWithGlobals())}),k(t.command(`show`).description(`Show one agent's full details`).argument(`<agentId>`,`Agent to show`)).action(async(e,t,n)=>{let{showAgent:r}=await import(`./agents-3dOJzTmM.js`);await r(e,n.optsWithGlobals())}),k(F(t.command(`create`).description(`Create a new agent`).requiredOption(`--name <name>`,`Agent name`).requiredOption(`--description <text>`,`Short description`).requiredOption(`--system-prompt <text>`,`System prompt`).requiredOption(`--model-id <modelId>`,`Model to run the agent on`))).action(async(e,t)=>{let{createAgent:n}=await import(`./agents-3dOJzTmM.js`);await n(t.optsWithGlobals())}),k(F(t.command(`update`).description(`Update an agent you own`).argument(`<agentId>`,`Agent to update`).option(`--name <name>`,`Agent name`).option(`--description <text>`,`Short description`).option(`--system-prompt <text>`,`System prompt`).option(`--model-id <modelId>`,`Model to run the agent on`))).action(async(e,t,n)=>{let{updateAgent:r}=await import(`./agents-3dOJzTmM.js`);await r(e,n.optsWithGlobals())}),t.command(`delete`).description(`Delete an agent you own`).argument(`<agentId>`,`Agent to delete`).action(async e=>{let{deleteAgent:t}=await import(`./agents-3dOJzTmM.js`);await t(e)}),k(t.command(`publish`).description(`Publish an agent to the workspace`).argument(`<agentId>`,`Agent to publish`)).action(async(e,t,n)=>{let{publishAgent:r}=await import(`./agents-3dOJzTmM.js`);await r(e,n.optsWithGlobals())}),k(N(t.command(`share`).description(`Show or manage sharing (user grants)`).argument(`<agentId>`,`Agent to share`))).action(async(e,t,n)=>{let{shareAgent:r}=await import(`./agents-3dOJzTmM.js`);await r(e,n.optsWithGlobals())})}function je(e){let t=e.command(`billing`).summary(`Show billing status and invoices`).helpGroup(P.workspace).addHelpText(`after`,`
|
|
17
17
|
Note: billing endpoints require an interactive login (OAuth); a workspace
|
|
18
|
-
PAT (ENTRYDESK_TOKEN) cannot read billing.`);k(t.command(`status`,{isDefault:!0}).description(`Plan, seats, and extra-usage balance`)).action(async(e,t)=>{let{showBillingStatus:n}=await import(`./billing-
|
|
18
|
+
PAT (ENTRYDESK_TOKEN) cannot read billing.`);k(t.command(`status`,{isDefault:!0}).description(`Plan, seats, and extra-usage balance`)).action(async(e,t)=>{let{showBillingStatus:n}=await import(`./billing-Cyk-IzGv.js`);await n(t.optsWithGlobals())}),k(j(t.command(`invoices`).description(`List finalized invoices`),20)).action(async(e,t)=>{let{listInvoices:n}=await import(`./billing-Cyk-IzGv.js`);await n(t.optsWithGlobals())})}function Me(e){if(!/^\d+(\.\d+)?$/u.test(e.trim()))throw new h(`must be a positive number`);return e}function Ne(e){let t=e.command(`budget`).summary(`View or manage the workspace budget`).helpGroup(P.workspace);k(t.command(`get`,{isDefault:!0}).description(`Show the current workspace budget`)).action(async(e,t)=>{let{showBudget:n}=await import(`./budget-znTQ0rkG.js`);await n(t.optsWithGlobals())}),k(t.command(`set`).description(`Set the workspace budget`).argument(`<amount>`,`Budget amount, e.g. 100.00`,Me)).action(async(e,t,n)=>{let{setBudget:r}=await import(`./budget-znTQ0rkG.js`);await r(e,n.optsWithGlobals())}),k(t.command(`clear`).description(`Remove the workspace budget`)).action(async(e,t)=>{let{clearBudget:n}=await import(`./budget-znTQ0rkG.js`);await n(t.optsWithGlobals())})}const I=()=>new xe(`<key>`,`Configuration key`).choices(re);function Pe(e){let n=e.command(`config`).summary(`Manage CLI configuration`).helpGroup(P.setup).addHelpText(`after`,`
|
|
19
19
|
Keys:
|
|
20
|
-
apiUrl API server URL (default: ${
|
|
20
|
+
apiUrl API server URL (default: discovered from hubUrl when hubUrl is set, otherwise ${ie})
|
|
21
21
|
hubUrl Hub server URL (default: ${t})
|
|
22
22
|
|
|
23
23
|
Examples:
|
|
24
24
|
entrydesk config set apiUrl http://localhost:3200
|
|
25
25
|
entrydesk config get apiUrl
|
|
26
|
-
entrydesk config unset apiUrl`
|
|
26
|
+
entrydesk config unset apiUrl`);k(n.command(`list`,{isDefault:!0}).description(`List all configuration`)).action(async(e,t)=>{let{listConfig:n}=await import(`./config-D-9dIy19.js`);n(t.optsWithGlobals())}),k(n.command(`get`).description(`Get a configuration value`).addArgument(I())).action(async(e,t,n)=>{let{getConfigValue:r}=await import(`./config-D-9dIy19.js`);r(e,n.optsWithGlobals())}),n.command(`set`).description(`Set a configuration value`).addArgument(I()).argument(`<value>`,`Value to store`).action(async(e,t)=>{let{setConfigValue:n}=await import(`./config-D-9dIy19.js`);n(e,t)}),n.command(`unset`).description(`Remove a configuration value`).addArgument(I()).action(async e=>{let{unsetConfigValue:t}=await import(`./config-D-9dIy19.js`);t(e)})}const L=le.exclude([`dcard-dual`]).options;function Fe(e){let t=e.command(`connectors`).summary(`List connectors and connect/disconnect them`).helpGroup(P.workspace);k(A(t.command(`list`,{isDefault:!0}).description(`List connected connectors`).option(`--all`,`Include connectors you haven't connected yet`).option(`--search <query>`,`Filter by name`,b(200)),100)).action(async(e,t)=>{let{listConnectors:n}=await import(`./connectors-B7smri5B.js`);await n(t.optsWithGlobals())}),k(t.command(`tools`).description(`List the tools a connector exposes`).argument(`<connectorId>`,`Connector to inspect`)).action(async(e,t,n)=>{let{listConnectorTools:r}=await import(`./connectors-B7smri5B.js`);await r(e,n.optsWithGlobals())}),k(t.command(`sync`).description(`Re-fetch a connector's tools from its MCP server now`).argument(`<connectorId>`,`Connector to sync`)).action(async(e,t,n)=>{let{syncConnectorTools:r}=await import(`./connectors-B7smri5B.js`);await r(e,n.optsWithGlobals())}),k(t.command(`connect`).description(`Connect a connector`).argument(`<connectorId>`,`Connector to connect`).addOption(new g(`--token <token>`,`Connect with a static token / API key`).conflicts([`username`,`password`,`oauth`])).addOption(new g(`--username <username>`,`Connect with credentials (prefer env vars; argv is visible in process listings)`).conflicts(`oauth`)).addOption(new g(`--password <password>`,`Password to pair with --username`).conflicts(`oauth`)).option(`--oauth`,`Print an OAuth URL to open in your browser`)).action(async(e,t,n)=>{let{connectConnector:r}=await import(`./connectors-B7smri5B.js`);await r(e,n.optsWithGlobals())}),k(t.command(`create`).description(`Create a custom connector pointing at a remote MCP server`).requiredOption(`--name <name>`,`Display name (letters, digits and single spaces)`,S).requiredOption(`--url <url>`,`MCP server URL`).requiredOption(`--description <text>`,`What the connector is for`,b(500)).addOption(new g(`--transport <transport>`,`MCP transport`).choices(c.options).default(`streamable_http`)).addOption(new g(`--tool-namespace <namespace>`,`Namespace for this connector's tools (default: the name, lowercased)`).argParser(C)).addOption(new g(`--tool-prefix <namespace>`).argParser(C).hideHelp()).addOption(new g(`--auth <type>`,`Authorization the server requires; omit for an open server`).choices(L)).option(`--provider <name>`,`OAuth provider name, as configured in the workspace (required for --auth oauth / google-iap)`).option(`--scope <scope...>`,`OAuth scope, repeatable (required for --auth oauth / google-iap)`)).action(async(e,t)=>{let{createConnector:n}=await import(`./connectors-B7smri5B.js`);await n(t.optsWithGlobals())}),k(t.command(`update`).description(`Update a custom connector (only the fields you pass)`).addHelpText(`after`,`
|
|
27
27
|
Note: the API replaces the whole connector, so this reads the current one
|
|
28
28
|
first; a PAT (ENTRYDESK_TOKEN) needs both connectors:read and
|
|
29
|
-
connectors:write.`).argument(`<connectorId>`,`Connector to update`).option(`--name <name>`,`Display name (letters, digits and single spaces)`,S).option(`--url <url>`,`MCP server URL`).option(`--description <text>`,`What the connector is for`,b(500)).addOption(new g(`--transport <transport>`,`MCP transport`).choices(
|
|
29
|
+
connectors:write.`).argument(`<connectorId>`,`Connector to update`).option(`--name <name>`,`Display name (letters, digits and single spaces)`,S).option(`--url <url>`,`MCP server URL`).option(`--description <text>`,`What the connector is for`,b(500)).addOption(new g(`--transport <transport>`,`MCP transport`).choices(c.options)).addOption(new g(`--tool-namespace <namespace>`,`Namespace for this connector's tools`).argParser(C)).addOption(new g(`--auth <type>`,`Replace the authorization the server requires`).choices(L)).option(`--no-auth`,`Remove the authorization, for an open server`).option(`--provider <name>`,`OAuth provider name, as configured in the workspace (required for --auth oauth / google-iap)`).option(`--scope <scope...>`,`OAuth scope, repeatable (required for --auth oauth / google-iap)`)).action(async(e,t,n)=>{let{updateConnector:r}=await import(`./connectors-B7smri5B.js`);await r(e,n.optsWithGlobals())}),k(t.command(`disconnect`).description(`Remove your connection to a connector`).argument(`<connectorId>`,`Connector to disconnect`).option(`-y, --yes`,`Skip the confirmation prompt`)).action(async(e,t,n)=>{let{disconnectConnector:r}=await import(`./connectors-B7smri5B.js`);await r(e,n.optsWithGlobals())})}const R=e=>new g(`--type <type>`,e).choices(fe);function Ie(e){let t=e.command(`marketplace`).summary(`Browse and install marketplace agents and skills`).helpGroup(P.build).addHelpText(`after`,`
|
|
30
30
|
Note: search/show are public; install requires login and CreateAgent/CreateSkill
|
|
31
|
-
permission in the current workspace.`);k(t.command(`search`,{isDefault:!0}).description(`List marketplace agents and skills`).argument(`[tag]`,`Filter by a tag (shorthand for --tag)`).addOption(R(`Only list this resource type`)).option(`--tag <tag>`,`Filter by a tag`).option(`--limit <number>`,`Max results (default: 30)`,v(1,100)).option(`--cursor <key>`,`Pagination cursor from a previous page`)).action(async(e,t,n)=>{let{searchMarketplace:r}=await import(`./marketplace-DQsEzT6T.js`);await r(e,n.optsWithGlobals())}),k(t.command(`show`).description(`Show an agent or skill's details`).argument(`<slug>`,`Marketplace slug`).addOption(R(`Resource type (auto-detected when omitted)`))).action(async(e,t,n)=>{let{showMarketplaceResource:r}=await import(`./marketplace-DQsEzT6T.js`);await r(e,n.optsWithGlobals())}),k(t.command(`install`).description(`Install an agent or skill into the current workspace`).argument(`<slug>`,`Marketplace slug`).addOption(R(`Resource type (auto-detected when omitted)`))).action(async(e,t,n)=>{let{installMarketplaceResource:r}=await import(`./marketplace-DQsEzT6T.js`);await r(e,n.optsWithGlobals())}),k(t.command(`roles`).description(`List role tags you can filter by`)).action(async(e,t)=>{let{showMarketplaceRoles:n}=await import(`./marketplace-DQsEzT6T.js`);await n(t.optsWithGlobals())})}function z(e){return e.option(`--description <text>`,`Meeting description`).option(`--location <text>`,`Meeting location`).option(`--start <iso>`,`Start time, ISO 8601`).option(`--end <iso>`,`End time, ISO 8601`).option(`--conference-link <url>`,`Conference link`).option(`--notes <text>`,`Meeting notes`)}function Ie(t){let n=t.command(`meeting`).summary(`Manage meetings, summaries, transcripts, and sharing`).helpGroup(P.build);k(j(n.command(`list`,{isDefault:!0}).description(`List meetings`).addOption(new g(`--filter <scope>`,`Filter meetings`).choices(ye).default(`all`)).option(`--search <text>`,`Search title and description`).addOption(new g(`--sort <field>`,`Sort order`).choices(he).default(`updated_at`)),20)).action(async(e,t)=>{let{listMeetings:n}=await import(`./meeting-C6H_GJB7.js`);await n(t.optsWithGlobals())}),k(n.command(`get`).description(`Show meeting details and its recordings`).argument(`<meetingId>`,`Meeting to show`)).action(async(e,t,n)=>{let{showMeeting:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())}),k(z(n.command(`create`).description(`Create a meeting manually`).requiredOption(`--title <text>`,`Meeting title`))).action(async(e,t)=>{let{createMeeting:n}=await import(`./meeting-C6H_GJB7.js`);await n(t.optsWithGlobals())}),k(z(n.command(`update`).description(`Update a meeting`).argument(`<meetingId>`,`Meeting to update`).option(`--title <text>`,`Meeting title`)).addOption(new g(`--status <status>`,`Meeting status`).choices(e.options)).addOption(new g(`--visibility <visibility>`,`Who can see it`).choices(p.options))).action(async(e,t,n)=>{let{updateMeeting:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())}),k(n.command(`delete`).description(`Delete a meeting (soft delete)`).argument(`<meetingId>`,`Meeting to delete`)).action(async(e,t,n)=>{let{deleteMeeting:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())}),k(n.command(`summary`).description(`Print the meeting summary (markdown) to stdout`).argument(`<meetingId>`,`Meeting to summarize`)).action(async(e,t,n)=>{let{showMeetingSummary:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())}),k(n.command(`transcript`).description(`Print a recording transcript to stdout`).argument(`<recordingId>`,`Recording to transcribe`).option(`--raw`,`Output the raw transcript with timestamps`)).action(async(e,t,n)=>{let{showMeetingTranscript:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())}),k(n.command(`previous`).description(`Show the previous meeting's brief in the same series`).argument(`<meetingId>`,`Meeting whose series to look back in`)).action(async(e,t,n)=>{let{showPreviousMeeting:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())}),k(M(n.command(`share`).description(`Show or manage sharing (visibility, user/team grants)`).argument(`<meetingId>`,`Meeting to share`).addOption(new g(`--visibility <visibility>`,`Change who can see the meeting (owner only)`).choices(p.options))).addOption(new g(`--add-team <teamId>`,`Grant a team access`).conflicts(`removeTeam`)).option(`--remove-team <teamId>`,`Revoke a team's access`).addOption(new g(`--role <role>`,`Role for --add-user/--add-team`).choices(c.options).default(c.enum.viewer))).action(async(e,t,n)=>{let{shareMeeting:r}=await import(`./meeting-C6H_GJB7.js`);await r(e,n.optsWithGlobals())})}function Le(e){let t=e.command(`notifications`).summary(`List, count, or mark notifications read`).helpGroup(P.build);k(j(t.command(`list`,{isDefault:!0}).description(`List notifications`).addOption(new g(`--tab <tab>`,`Filter by category`).choices(se).default(`all`)).option(`--event-type <type>`,`Filter by a single event type (e.g. task_complete)`),20)).action(async(e,t)=>{let{listNotifications:n}=await import(`./notifications-3UrKbGaT.js`);await n(t.optsWithGlobals())}),k(t.command(`unread`).description(`Show the unread notification count`)).action(async(e,t)=>{let{showUnreadCount:n}=await import(`./notifications-3UrKbGaT.js`);await n(t.optsWithGlobals())}),k(t.command(`read`).description(`Mark a notification as read`).argument(`<notificationId>`,`Notification to mark read`)).action(async(e,t,n)=>{let{markNotificationRead:r}=await import(`./notifications-3UrKbGaT.js`);await r(e,n.optsWithGlobals())}),k(t.command(`read-all`).description(`Mark every notification as read`)).action(async(e,t)=>{let{markAllNotificationsRead:n}=await import(`./notifications-3UrKbGaT.js`);await n(t.optsWithGlobals())})}function Re(e){let t=e.command(`profile`).summary(`Manage profiles`).helpGroup(P.setup);k(t.command(`list`,{isDefault:!0}).description(`List profiles`)).action(async(e,t)=>{let{listProfiles:n}=await import(`./profile-D4m5ZAG7.js`);n(t.optsWithGlobals())}),k(t.command(`current`).description(`Show the active profile`)).action(async(e,t)=>{let{showCurrentProfile:n}=await import(`./profile-D4m5ZAG7.js`);n(t.optsWithGlobals())}),k(t.command(`show`).description(`Show profile details`).argument(`[name]`,`Profile to show`)).action(async(e,t,n)=>{let{showProfile:r}=await import(`./profile-D4m5ZAG7.js`);await r(e,n.optsWithGlobals())}),k(t.command(`create`).description(`Create a profile`).argument(`[name]`,`Profile name (default: default)`)).action(async(e,t,n)=>{let{createProfile:r}=await import(`./profile-D4m5ZAG7.js`);r(e,n.optsWithGlobals())}),k(t.command(`use`).alias(`switch`).description(`Switch the active profile`).argument(`[name]`,`Profile to switch to`)).action(async(e,t,n)=>{let{useProfile:r}=await import(`./profile-D4m5ZAG7.js`);r(e,n.optsWithGlobals())}),k(t.command(`delete`).aliases([`remove`,`rm`]).description(`Delete a profile`).argument(`[name]`,`Profile to delete`)).action(async(e,t,n)=>{let{deleteProfile:r}=await import(`./profile-D4m5ZAG7.js`);await r(e,n.optsWithGlobals())}),k(t.command(`rename`).aliases([`move`,`mv`]).description(`Rename a profile`).argument(`<from>`,`Existing profile name`).argument(`<to>`,`New profile name`)).action(async(e,t,n,r)=>{let{renameProfile:i}=await import(`./profile-D4m5ZAG7.js`);await i(e,t,r.optsWithGlobals())}),k(t.command(`clone`).alias(`copy`).description(`Clone config defaults into a new profile (no credentials)`).argument(`<from>`,`Profile to clone`).argument(`<to>`,`New profile name`)).action(async(e,t,n,r)=>{let{cloneProfile:i}=await import(`./profile-D4m5ZAG7.js`);await i(e,t,r.optsWithGlobals())})}const B="User id (a UUID); `project members <project>` prints one beside each member";function ze(e,t){k(e.command(`create`).description(`Create a project. You become its owner; the id and Hub address are printed`).option(`--name <text>`,`Project name (required, up to 255 characters)`).option(`--description <text>`,`Project description (up to ${u} characters)`).option(`--instruction <text>`,`The standing brief every task in the project starts from (up to ${d} characters)`).option(`--instruction-file <path>`,"Read the instruction from a file, or `-` for stdin")).action(async(e,t)=>{let{createProject:n}=await import(`./project-governance-CxDZSThr.js`);await n(t.optsWithGlobals())}),k(e.command(`delete`).summary(`Delete a project you own`).description(`Delete a project you own. Its tasks leave the project and return to their owners' main lists; its sources, assets and their version history are deleted. Without --yes the effects are listed and you are asked to confirm; a non-interactive run without --yes is refused.`).argument(`<project>`,t).option(`-y, --yes`,`Skip the confirmation prompt`)).action(async(e,t,n)=>{let{deleteProject:r}=await import(`./project-governance-CxDZSThr.js`);await r(e,n.optsWithGlobals())}),k(e.command(`members`).description(`List the members of a project with their role and id`).argument(`<project>`,t)).action(async(e,t,n)=>{let{listProjectMembers:r}=await import(`./project-governance-CxDZSThr.js`);await r(e,n.optsWithGlobals())}),k(e.command(`member-add`).description(`Add a workspace member to a project you own; it takes effect at once`).argument(`<project>`,t).argument(`<userId>`,B)).action(async(e,t,n,r)=>{let{addProjectMember:i}=await import(`./project-governance-CxDZSThr.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`member-remove`).description(`Remove a member from a project you own, or pass your own id to leave it. The last owner cannot leave`).argument(`<project>`,t).argument(`<userId>`,B)).action(async(e,t,n,r)=>{let{removeProjectMember:i}=await import(`./project-governance-CxDZSThr.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`member-role`).description(`Set a member's role in a project you own. The last owner cannot be demoted`).argument(`<project>`,t).argument(`<userId>`,B).option(`--role <role>`,`New role: owner or member`)).action(async(e,t,n,r)=>{let{setProjectMemberRole:i}=await import(`./project-governance-CxDZSThr.js`);await i(e,t,r.optsWithGlobals())})}const V="Project id, or a 1-based index into a plain `project list` (a `--filter`, `--sort-by`, `--order` or `--all` listing prints no index). Projects are numbered in creation order, so a project created later takes the next number and an index only shifts when a project is deleted; pass an id when the reference has to outlive that",H=`Task id — ${ge}`;function Be(e){k(e.command(`tasks`).description("List the tasks you can see in a project — the same listing as `entrydesk tasks --project`, printed with ids").argument(`<project>`,V).option(`-q, --search <query>`,`Search within those tasks`).option(`--limit <number>`,`Max tasks to return`,v(1,50)).option(`--next-key <cursor>`,`Fetch the next page using this cursor`)).action(async(e,t,n)=>{let{listProjectTasks:r}=await import(`./project-tasks-t4HFgEoZ.js`);await r(e,n.optsWithGlobals())}),k(e.command(`task-add`).description(`Move a task you own into a project. A task whose assets the project does not hold yet is refused until you confirm sharing them with every member`).argument(`<project>`,V).argument(`<taskId>`,H).option(`--confirm-asset-sharing`,`Share the task's assets with the project members as part of the move`)).action(async(e,t,n,r)=>{let{addTaskToProject:i}=await import(`./project-tasks-t4HFgEoZ.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`task-remove`).description(`Move a task you own out of a project. Any assets it produced stay in the project`).argument(`<project>`,V).argument(`<taskId>`,H)).action(async(e,t,n,r)=>{let{removeTaskFromProject:i}=await import(`./project-tasks-t4HFgEoZ.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`task-share`).description(`Share a task you own inside its project: with one member by id, or with every member by setting its visibility. One flag per call, never a prompt`).argument(`<project>`,V).argument(`<taskId>`,H).option(`--add-user [userId]`,`Let one project member view the task`).option(`--remove-user [userId]`,`Take one member's access back`).option(`--visibility [level]`,"Who can see the task: `project` is every member, `self` is you plus anyone you named").addHelpText(`after`,`
|
|
31
|
+
permission in the current workspace.`);k(t.command(`search`,{isDefault:!0}).description(`List marketplace agents and skills`).argument(`[tag]`,`Filter by a tag (shorthand for --tag)`).addOption(R(`Only list this resource type`)).option(`--tag <tag>`,`Filter by a tag`).option(`--limit <number>`,`Max results (default: 30)`,v(1,100)).option(`--cursor <key>`,`Pagination cursor from a previous page`)).action(async(e,t,n)=>{let{searchMarketplace:r}=await import(`./marketplace-DNm78dKX.js`);await r(e,n.optsWithGlobals())}),k(t.command(`show`).description(`Show an agent or skill's details`).argument(`<slug>`,`Marketplace slug`).addOption(R(`Resource type (auto-detected when omitted)`))).action(async(e,t,n)=>{let{showMarketplaceResource:r}=await import(`./marketplace-DNm78dKX.js`);await r(e,n.optsWithGlobals())}),k(t.command(`install`).description(`Install an agent or skill into the current workspace`).argument(`<slug>`,`Marketplace slug`).addOption(R(`Resource type (auto-detected when omitted)`))).action(async(e,t,n)=>{let{installMarketplaceResource:r}=await import(`./marketplace-DNm78dKX.js`);await r(e,n.optsWithGlobals())}),k(t.command(`roles`).description(`List role tags you can filter by`)).action(async(e,t)=>{let{showMarketplaceRoles:n}=await import(`./marketplace-DNm78dKX.js`);await n(t.optsWithGlobals())})}function z(e){return e.option(`--description <text>`,`Meeting description`).option(`--location <text>`,`Meeting location`).option(`--start <iso>`,`Start time, ISO 8601`).option(`--end <iso>`,`End time, ISO 8601`).option(`--conference-link <url>`,`Conference link`).option(`--notes <text>`,`Meeting notes`)}function Le(e){let t=e.command(`meeting`).summary(`Manage meetings, summaries, transcripts, and sharing`).helpGroup(P.build);k(j(t.command(`list`,{isDefault:!0}).description(`List meetings`).addOption(new g(`--filter <scope>`,`Filter meetings`).choices(be).default(`all`)).option(`--search <text>`,`Search title and description`).addOption(new g(`--sort <field>`,`Sort order`).choices(ge).default(`updated_at`)),20)).action(async(e,t)=>{let{listMeetings:n}=await import(`./meeting-BdLr54zK.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show meeting details and its recordings`).argument(`<meetingId>`,`Meeting to show`)).action(async(e,t,n)=>{let{showMeeting:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())}),k(z(t.command(`create`).description(`Create a meeting manually`).requiredOption(`--title <text>`,`Meeting title`))).action(async(e,t)=>{let{createMeeting:n}=await import(`./meeting-BdLr54zK.js`);await n(t.optsWithGlobals())}),k(z(t.command(`update`).description(`Update a meeting`).argument(`<meetingId>`,`Meeting to update`).option(`--title <text>`,`Meeting title`)).addOption(new g(`--status <status>`,`Meeting status`).choices(ae.options)).addOption(new g(`--visibility <visibility>`,`Who can see it`).choices(a.options))).action(async(e,t,n)=>{let{updateMeeting:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())}),k(t.command(`delete`).description(`Delete a meeting (soft delete)`).argument(`<meetingId>`,`Meeting to delete`)).action(async(e,t,n)=>{let{deleteMeeting:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())}),k(t.command(`summary`).description(`Print the meeting summary (markdown) to stdout`).argument(`<meetingId>`,`Meeting to summarize`)).action(async(e,t,n)=>{let{showMeetingSummary:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())}),k(t.command(`transcript`).description(`Print a recording transcript to stdout`).argument(`<recordingId>`,`Recording to transcribe`).option(`--raw`,`Output the raw transcript with timestamps`)).action(async(e,t,n)=>{let{showMeetingTranscript:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())}),k(t.command(`previous`).description(`Show the previous meeting's brief in the same series`).argument(`<meetingId>`,`Meeting whose series to look back in`)).action(async(e,t,n)=>{let{showPreviousMeeting:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())}),k(M(t.command(`share`).description(`Show or manage sharing (visibility, user/team grants)`).argument(`<meetingId>`,`Meeting to share`).addOption(new g(`--visibility <visibility>`,`Change who can see the meeting (owner only)`).choices(a.options))).addOption(new g(`--add-team <teamId>`,`Grant a team access`).conflicts(`removeTeam`)).option(`--remove-team <teamId>`,`Revoke a team's access`).addOption(new g(`--role <role>`,`Role for --add-user/--add-team`).choices(s.options).default(s.enum.viewer))).action(async(e,t,n)=>{let{shareMeeting:r}=await import(`./meeting-BdLr54zK.js`);await r(e,n.optsWithGlobals())})}function Re(e){let t=e.command(`notifications`).summary(`List, count, or mark notifications read`).helpGroup(P.build);k(j(t.command(`list`,{isDefault:!0}).description(`List notifications`).addOption(new g(`--tab <tab>`,`Filter by category`).choices(ue).default(`all`)).option(`--event-type <type>`,`Filter by a single event type (e.g. task_complete)`),20)).action(async(e,t)=>{let{listNotifications:n}=await import(`./notifications-DIokyl4e.js`);await n(t.optsWithGlobals())}),k(t.command(`unread`).description(`Show the unread notification count`)).action(async(e,t)=>{let{showUnreadCount:n}=await import(`./notifications-DIokyl4e.js`);await n(t.optsWithGlobals())}),k(t.command(`read`).description(`Mark a notification as read`).argument(`<notificationId>`,`Notification to mark read`)).action(async(e,t,n)=>{let{markNotificationRead:r}=await import(`./notifications-DIokyl4e.js`);await r(e,n.optsWithGlobals())}),k(t.command(`read-all`).description(`Mark every notification as read`)).action(async(e,t)=>{let{markAllNotificationsRead:n}=await import(`./notifications-DIokyl4e.js`);await n(t.optsWithGlobals())})}function ze(e){let t=e.command(`profile`).summary(`Manage profiles`).helpGroup(P.setup);k(t.command(`list`,{isDefault:!0}).description(`List profiles`)).action(async(e,t)=>{let{listProfiles:n}=await import(`./profile-CWsA2P_O.js`);n(t.optsWithGlobals())}),k(t.command(`current`).description(`Show the active profile`)).action(async(e,t)=>{let{showCurrentProfile:n}=await import(`./profile-CWsA2P_O.js`);n(t.optsWithGlobals())}),k(t.command(`show`).description(`Show profile details`).argument(`[name]`,`Profile to show`)).action(async(e,t,n)=>{let{showProfile:r}=await import(`./profile-CWsA2P_O.js`);await r(e,n.optsWithGlobals())}),k(t.command(`create`).description(`Create a profile`).argument(`[name]`,`Profile name (default: default)`)).action(async(e,t,n)=>{let{createProfile:r}=await import(`./profile-CWsA2P_O.js`);r(e,n.optsWithGlobals())}),k(t.command(`use`).alias(`switch`).description(`Switch the active profile`).argument(`[name]`,`Profile to switch to`)).action(async(e,t,n)=>{let{useProfile:r}=await import(`./profile-CWsA2P_O.js`);r(e,n.optsWithGlobals())}),k(t.command(`delete`).aliases([`remove`,`rm`]).description(`Delete a profile`).argument(`[name]`,`Profile to delete`)).action(async(e,t,n)=>{let{deleteProfile:r}=await import(`./profile-CWsA2P_O.js`);await r(e,n.optsWithGlobals())}),k(t.command(`rename`).aliases([`move`,`mv`]).description(`Rename a profile`).argument(`<from>`,`Existing profile name`).argument(`<to>`,`New profile name`)).action(async(e,t,n,r)=>{let{renameProfile:i}=await import(`./profile-CWsA2P_O.js`);await i(e,t,r.optsWithGlobals())}),k(t.command(`clone`).alias(`copy`).description(`Clone config defaults into a new profile (no credentials)`).argument(`<from>`,`Profile to clone`).argument(`<to>`,`New profile name`)).action(async(e,t,n,r)=>{let{cloneProfile:i}=await import(`./profile-CWsA2P_O.js`);await i(e,t,r.optsWithGlobals())})}const B="User id (a UUID); `project members <project>` prints one beside each member";function Be(e,t){k(e.command(`create`).description(`Create a project. You become its owner; the id and Hub address are printed`).option(`--name <text>`,`Project name (required, up to 255 characters)`).option(`--description <text>`,`Project description (up to ${d} characters)`).option(`--instruction <text>`,`The standing brief every task in the project starts from (up to ${u} characters)`).option(`--instruction-file <path>`,"Read the instruction from a file, or `-` for stdin")).action(async(e,t)=>{let{createProject:n}=await import(`./project-governance-DRDjqvX8.js`);await n(t.optsWithGlobals())}),k(e.command(`delete`).summary(`Delete a project you own`).description(`Delete a project you own. Its tasks leave the project and return to their owners' main lists; its sources, assets and their version history are deleted. Without --yes the effects are listed and you are asked to confirm; a non-interactive run without --yes is refused.`).argument(`<project>`,t).option(`-y, --yes`,`Skip the confirmation prompt`)).action(async(e,t,n)=>{let{deleteProject:r}=await import(`./project-governance-DRDjqvX8.js`);await r(e,n.optsWithGlobals())}),k(e.command(`members`).description(`List the members of a project with their role and id`).argument(`<project>`,t)).action(async(e,t,n)=>{let{listProjectMembers:r}=await import(`./project-governance-DRDjqvX8.js`);await r(e,n.optsWithGlobals())}),k(e.command(`member-add`).description(`Add a workspace member to a project you own; it takes effect at once`).argument(`<project>`,t).argument(`<userId>`,B)).action(async(e,t,n,r)=>{let{addProjectMember:i}=await import(`./project-governance-DRDjqvX8.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`member-remove`).description(`Remove a member from a project you own, or pass your own id to leave it. The last owner cannot leave`).argument(`<project>`,t).argument(`<userId>`,B)).action(async(e,t,n,r)=>{let{removeProjectMember:i}=await import(`./project-governance-DRDjqvX8.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`member-role`).description(`Set a member's role in a project you own. The last owner cannot be demoted`).argument(`<project>`,t).argument(`<userId>`,B).option(`--role <role>`,`New role: owner or member`)).action(async(e,t,n,r)=>{let{setProjectMemberRole:i}=await import(`./project-governance-DRDjqvX8.js`);await i(e,t,r.optsWithGlobals())})}const V="Project id, or a 1-based index into a plain `project list` (a `--filter`, `--sort-by`, `--order` or `--all` listing prints no index). Projects are numbered in creation order, so a project created later takes the next number and an index only shifts when a project is deleted; pass an id when the reference has to outlive that",H=`Task id — ${_e}`;function Ve(e){k(e.command(`tasks`).description("List the tasks you can see in a project — the same listing as `entrydesk tasks --project`, printed with ids").argument(`<project>`,V).option(`-q, --search <query>`,`Search within those tasks`).option(`--limit <number>`,`Max tasks to return`,v(1,50)).option(`--next-key <cursor>`,`Fetch the next page using this cursor`)).action(async(e,t,n)=>{let{listProjectTasks:r}=await import(`./project-tasks-DnOrMxr3.js`);await r(e,n.optsWithGlobals())}),k(e.command(`task-add`).description(`Move a task you own into a project. A task whose assets the project does not hold yet is refused until you confirm sharing them with every member`).argument(`<project>`,V).argument(`<taskId>`,H).option(`--confirm-asset-sharing`,`Share the task's assets with the project members as part of the move`)).action(async(e,t,n,r)=>{let{addTaskToProject:i}=await import(`./project-tasks-DnOrMxr3.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`task-remove`).description(`Move a task you own out of a project. Any assets it produced stay in the project`).argument(`<project>`,V).argument(`<taskId>`,H)).action(async(e,t,n,r)=>{let{removeTaskFromProject:i}=await import(`./project-tasks-DnOrMxr3.js`);await i(e,t,r.optsWithGlobals())}),k(e.command(`task-share`).description(`Share a task you own inside its project: with one member by id, or with every member by setting its visibility. One flag per call, never a prompt`).argument(`<project>`,V).argument(`<taskId>`,H).option(`--add-user [userId]`,`Let one project member view the task`).option(`--remove-user [userId]`,`Take one member's access back`).option(`--visibility [level]`,"Who can see the task: `project` is every member, `self` is you plus anyone you named").addHelpText(`after`,`
|
|
32
32
|
--add-user, --remove-user and --visibility are mutually exclusive, and each
|
|
33
33
|
needs its value; with none of them the command prints this usage and exits 1.
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@ Examples:
|
|
|
36
36
|
entrydesk project task-share 1 <taskId> --add-user <userId>
|
|
37
37
|
entrydesk project task-share 1 <taskId> --remove-user <userId>
|
|
38
38
|
entrydesk project task-share 1 <taskId> --visibility project
|
|
39
|
-
entrydesk project task-share 1 <taskId> --visibility self`)).action(async(e,t,n,r)=>{let{shareProjectTask:i}=await import(`./project-tasks-
|
|
39
|
+
entrydesk project task-share 1 <taskId> --visibility self`)).action(async(e,t,n,r)=>{let{shareProjectTask:i}=await import(`./project-tasks-DnOrMxr3.js`);await i(e,t,r.optsWithGlobals())})}const U="Which kind of source, as `project sources` lists it: file or link",W="Id of the file or link, as `project sources` lists it";function He(e){let t=e.command(`project`).summary(`Read and edit a project you belong to`).description(`Read and edit a project you belong to.
|
|
40
40
|
|
|
41
41
|
A project holds sources (the files and links you put in it), the tasks that belong to it, and the assets those tasks produce. Its instruction is the standing brief every task in the project starts from.
|
|
42
42
|
|
|
@@ -63,13 +63,13 @@ Examples:
|
|
|
63
63
|
entrydesk project delete 1
|
|
64
64
|
entrydesk project tasks 1
|
|
65
65
|
entrydesk project task-add 1 <taskId>
|
|
66
|
-
entrydesk project task-share 1 <taskId> --add-user <userId>`);k(j(t.command(`list`,{isDefault:!0}).description("List the projects you belong to, oldest created first. Positions are shown only on a plain listing, since that is what a `<project>` index resolves against: a new project lands at the end, so existing numbers move only when a project is deleted").addOption(new g(`--filter <scope>`,`Which projects to list`).choices(
|
|
66
|
+
entrydesk project task-share 1 <taskId> --add-user <userId>`);k(j(t.command(`list`,{isDefault:!0}).description("List the projects you belong to, oldest created first. Positions are shown only on a plain listing, since that is what a `<project>` index resolves against: a new project lands at the end, so existing numbers move only when a project is deleted").addOption(new g(`--filter <scope>`,`Which projects to list`).choices(se.options)).addOption(new g(`--sort-by <field>`,`Order by creation time, or by your latest task activity as the Hub does`).choices(de.options).default(ve)).addOption(new g(`--order <direction>`,`Ascending or descending`).choices(ne).default(`asc`)),20)).action(async(e,t)=>{let{listProjects:n}=await import(`./project-c8F30d-Q.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show a project: members, counts, and its full instruction`).argument(`<project>`,V)).action(async(e,t,n)=>{let{showProject:r}=await import(`./project-c8F30d-Q.js`);await r(e,n.optsWithGlobals())}),k(t.command(`instruction`).description(`Print a project's instruction as plain text, ready to pipe`).argument(`<project>`,V)).action(async(e,t,n)=>{let{showProjectInstruction:r}=await import(`./project-c8F30d-Q.js`);await r(e,n.optsWithGlobals())}),k(t.command(`edit`).description(`Edit a project's name, description, or instruction`).argument(`<project>`,V).option(`--name <text>`,`New project name`,x(255)).option(`--description <text>`,`New project description`,b(d)).addOption(new g(`--instruction <text>`,`Replace the instruction with this text`).argParser(b(u)).conflicts([`instructionFile`,`clearInstruction`])).addOption(new g(`--instruction-file <path>`,"Read the instruction from a file, or `-` for stdin").conflicts(`clearInstruction`)).option(`--clear-instruction`,`Remove the instruction`)).action(async(e,t,n)=>{let{editProject:r}=await import(`./project-c8F30d-Q.js`);await r(e,n.optsWithGlobals())}),k(t.command(`note`).summary(`Report a work note into a project, with no AI reply`).description("Report a work note into a project: a task under your name, private until you share it, that does not trigger an AI reply. Reach for `entrydesk task --project <project>` instead when you want the AI to answer.").argument(`<project>`,V).option(`-m, --message <text>`,`Note content; wins over --file and stdin`).option(`-f, --file <path>`,"Read the note from a file, or `-` for stdin; wins over piped stdin").option(`--title <text>`,`Note title; defaults to the content's first line`,x(100))).action(async(e,t,n)=>{let{reportProjectNote:r}=await import(`./project-c8F30d-Q.js`);await r(e,n.optsWithGlobals())}),k(t.command(`sources`).description(`List the sources of a project — the files and links you put in it — with the retrieval description and, for links, the fetch status`).argument(`<project>`,V)).action(async(e,t,n)=>{let{listProjectSources:r}=await import(`./project-sources-DFn7Tn7u.js`);await r(e,n.optsWithGlobals())}),k(t.command(`sources-add`).description(`Add a source to a project: upload a local file, or add a link when the argument starts with http:// or https://`).argument(`<project>`,V).argument(`<path|url>`,`Path of a local file to upload, or an http(s) URL to add as a link`).option(`--description <text>`,`What this source is for, so the AI knows when to reach for it (up to ${l} characters)`).addHelpText(`after`,`
|
|
67
67
|
A link starts fetching its snapshot as soon as it is added; \`project sources\`
|
|
68
68
|
shows it as pending until the snapshot is ready.
|
|
69
69
|
|
|
70
70
|
Examples:
|
|
71
71
|
entrydesk project sources-add 1 ./brief.pdf
|
|
72
|
-
entrydesk project sources-add 1 https://example.com/spec --description "The API spec"`)).action(async(e,t,n,r)=>{let{addProjectSource:i}=await import(`./project-sources-write-
|
|
72
|
+
entrydesk project sources-add 1 https://example.com/spec --description "The API spec"`)).action(async(e,t,n,r)=>{let{addProjectSource:i}=await import(`./project-sources-write-Bz0lGCid.js`);await i(e,t,r.optsWithGlobals())}),k(t.command(`sources-edit`).description(`Edit a source's title or description — how the AI names it and what it is for, so it knows when to reach for it`).argument(`<project>`,V).argument(`<file|link>`,U).argument(`<id>`,W).option(`--title <text>`,`The new title (up to 200 characters); an empty string falls back to the file name or URL`).option(`--description <text>`,`The new description (up to ${l} characters); an empty string clears it`)).action(async(e,t,n,r,i)=>{let{editProjectSource:a}=await import(`./project-sources-write-Bz0lGCid.js`);await a(e,t,n,i.optsWithGlobals())}),k(t.command(`sources-refetch`).description(`Fetch a link's snapshot again; it shows as pending until the new snapshot is ready`).argument(`<project>`,V).argument(`<linkId>`,"Id of the link, as `project sources` lists it")).action(async(e,t,n,r)=>{let{refetchProjectSource:i}=await import(`./project-sources-write-Bz0lGCid.js`);await i(e,t,r.optsWithGlobals())}),k(t.command(`sources-rm`).description(`Remove a file or link from a project. Assets are removed in the Hub`).argument(`<project>`,V).argument(`<file|link>`,U).argument(`<id>`,W)).action(async(e,t,n,r,i)=>{let{removeProjectSource:a}=await import(`./project-sources-write-Bz0lGCid.js`);await a(e,t,n,i.optsWithGlobals())}),k(t.command(`context-search`).description(`Search a project's context — across the tasks you can see and its sources — and print a snippet of each match`).argument(`<project>`,V).argument(`<query>`,`Keywords to match`).option(`--type <type>`,`Search only one kind of source: task, file or link`).option(`--limit <number>`,`Max results (default: 10, up to 20)`)).action(async(e,t,n,r)=>{let{searchProjectContext:i}=await import(`./project-context-C0ozCzKH.js`);await i(e,t,r.optsWithGlobals())}),k(t.command(`context-read`).description(`Print one piece of a project's context — a task you can see, or one of its sources — as plain text, ready to pipe`).argument(`<project>`,V).argument(`<sourceType>`,`What to read: task, file or link`).argument(`<id>`,`Id of the task, file or link`).option(`--full`,`Read a task in full instead of its summary. A file or a link snapshot has one depth — the server serves its stored text one capped page at a time either way`).option(`--offset <number>`,`Continue a truncated read from the offset the previous one reported (on stderr, or as nextOffset under --json); implies --full for a task`).option(`--revision <id>`,`The revision the previous page reported alongside its offset; a file or link whose stored text was replaced since then fails instead of continuing at the old offset`).addHelpText(`after`,`
|
|
73
73
|
A long source comes back one capped page at a time: repeat the read with the
|
|
74
74
|
offset it reported until the output is no longer truncated. For a task the
|
|
75
75
|
offset counts newest messages to skip; for a file or a link snapshot it is a
|
|
@@ -84,7 +84,7 @@ explanation where the content should be.
|
|
|
84
84
|
Examples:
|
|
85
85
|
entrydesk project context-read 1 file <fileId> > brief.md
|
|
86
86
|
entrydesk project context-read 1 file <fileId> --offset 50000 --revision <rev> >> brief.md
|
|
87
|
-
entrydesk project context-read 1 task <taskId> --full`)).action(async(e,t,n,r,i)=>{let{readProjectContext:a}=await import(`./project-context-DnIuy1T0.js`);await a(e,t,n,i.optsWithGlobals())}),ze(t,V),Be(t)}function He(e){let t=e.command(`recordings`).summary(`List, import, retry, and manage recordings`).helpGroup(P.build).addHelpText(`after`,"\nNote: full transcripts live in `entrydesk meeting transcript <recordingId>`.");k(A(t.command(`list`,{isDefault:!0}).description(`List recordings`).option(`--search <query>`,`Filter by title/transcript`,b(200)),20)).action(async(e,t)=>{let{listRecordings:n}=await import(`./recordings-DeB1LqiS.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show a recording's metadata, summary, and status`).argument(`<recordingId>`,`Recording to show`)).action(async(e,t,n)=>{let{showRecording:r}=await import(`./recordings-DeB1LqiS.js`);await r(e,n.optsWithGlobals())}),k(t.command(`import`).description(`Import a recording from a media URL`).argument(`<url>`,`Media URL to import`).option(`--title <text>`,`Title for the imported recording`).option(`--model <modelId>`,`Model for transcription and summary`).option(`--language <code>`,`Preferred transcript language (e.g. zh-TW)`)).action(async(e,t,n)=>{let{importRecording:r}=await import(`./recordings-DeB1LqiS.js`);await r(e,n.optsWithGlobals())}),k(t.command(`preview`).description(`Preview a media URL's metadata before importing`).argument(`<url>`,`Media URL to preview`)).action(async(e,t,n)=>{let{previewRecording:r}=await import(`./recordings-DeB1LqiS.js`);await r(e,n.optsWithGlobals())}),k(t.command(`audio-url`).description(`Get a signed URL to stream or download the audio`).argument(`<recordingId>`,`Recording to link`)).action(async(e,t,n)=>{let{showRecordingAudioUrl:r}=await import(`./recordings-DeB1LqiS.js`);await r(e,n.optsWithGlobals())}),k(t.command(`retry`).description(`Retry processing of a failed recording`).argument(`<recordingId>`,`Recording to retry`)).action(async(e,t,n)=>{let{retryRecording:r}=await import(`./recordings-DeB1LqiS.js`);await r(e,n.optsWithGlobals())}),k(t.command(`delete`).description(`Delete a recording`).argument(`<recordingId>`,`Recording to delete`).option(`-y, --yes`,`Skip the confirmation prompt`)).action(async(e,t,n)=>{let{deleteRecording:r}=await import(`./recordings-DeB1LqiS.js`);await r(e,n.optsWithGlobals())})}const Ue=[...new Set(s.map(e=>e.toolApprovalMode))],We=[...new Set(s.map(e=>e.approvalHandling))];function G(e){return e.addOption(new g(`--tool-approval-mode <mode>`,`Which tools runs may use without asking: always_allow gates nothing, auto gates high-risk tools. Pass with --approval-handling`).choices(Ue)).addOption(new g(`--approval-handling <handling>`,`What a run does at a gated tool: ask pauses until approved in Hub, deny skips the call, bypass runs it. Pass with --tool-approval-mode`).choices(We)).option(`--allowed-tools <tools...>`,`Pre-authorize these tools for this schedule (comma or space separated)`,E).option(`--disallowed-tools <tools...>`,`Block these tools for this schedule. Wins over --allowed-tools`,E)}function K(e){return e.option(`--utc-offset <offset>`,`Timezone offset, e.g. +08:00`).option(`--holiday-calendars <ids>`,`Comma-separated connected calendar ids to skip on holiday`,w).addOption(new g(`--repeat-type <type>`,`Repeat unit`).choices(me)).option(`--every <n>`,`Repeat every N units`,v(1,1e3)).option(`--time <HH:MM>`,`Time of day (days, weeks, months)`,D).option(`--times <HH:MM,...>`,`Multiple daily trigger times (days only)`,Ee).option(`--days-of-week <0-6>`,`Comma-separated days, 0=Sunday`,T(0,6)).option(`--days-of-month <1-31>`,`Comma-separated days of the month`,T(1,31)).option(`--last-day-of-month`,`Include the last day of the month`).option(`--daily-windows <ranges>`,`Comma-separated HH:MM-HH:MM active-time windows (minutes, hours)`,De)}function Ge(e){let t=e.command(`schedules`).summary(`Create and manage scheduled tasks`).helpGroup(P.build);k(t.command(`list`,{isDefault:!0}).description(`List schedules`)).action(async(e,t)=>{let{listSchedules:n}=await import(`./schedules-COBaV-Be.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show schedule details`).argument(`<scheduleId>`,`Schedule to show`)).action(async(e,t,n)=>{let{showSchedule:r}=await import(`./schedules-COBaV-Be.js`);await r(e,n.optsWithGlobals())}),k(G(K(t.command(`create`).description(`Create a new schedule`).requiredOption(`--name <name>`,`Schedule name`).requiredOption(`--prompt <text>`,`Prompt to send to the agent`).requiredOption(`--agent-id <id>`,`Agent to run`).requiredOption(`--starts-at <datetime>`,`Start time, ISO 8601`)))).action(async(e,t)=>{let{createSchedule:n}=await import(`./schedules-COBaV-Be.js`);await n(t.optsWithGlobals())}),k(G(K(t.command(`edit`).description(`Update a schedule (only the fields you pass)`).argument(`<scheduleId>`,`Schedule to update`).option(`--name <name>`,`Schedule name`).option(`--prompt <text>`,`Prompt to send to the agent`).option(`--agent-id <id>`,`Agent to run`).option(`--agent-version <n>`,`Agent version number to use`,v(1,2**53-1)).option(`--starts-at <datetime>`,`Start time, ISO 8601`)))).action(async(e,t,n)=>{let{editSchedule:r}=await import(`./schedules-COBaV-Be.js`);await r(e,n.optsWithGlobals())}),k(t.command(`activate`).description(`Resume a paused schedule`).argument(`<scheduleId>`,`Schedule to activate`)).action(async(e,t,n)=>{let{setScheduleActive:r}=await import(`./schedules-COBaV-Be.js`);await r(e,!0,n.optsWithGlobals())}),k(t.command(`pause`).description(`Pause an active schedule`).argument(`<scheduleId>`,`Schedule to pause`)).action(async(e,t,n)=>{let{setScheduleActive:r}=await import(`./schedules-COBaV-Be.js`);await r(e,!1,n.optsWithGlobals())}),k(t.command(`run`).description(`Run a schedule now; prints the created taskId`).argument(`<scheduleId>`,`Schedule to run`)).action(async(e,t,n)=>{let{runScheduleNow:r}=await import(`./schedules-COBaV-Be.js`);await r(e,n.optsWithGlobals())}),k(j(t.command(`runs`).description(`List a schedule's run history`).argument(`<scheduleId>`,`Schedule whose runs to list`),20)).action(async(e,t,n)=>{let{listScheduleRuns:r}=await import(`./schedules-COBaV-Be.js`);await r(e,n.optsWithGlobals())}),t.command(`delete`).description(`Delete a schedule`).argument(`<scheduleId>`,`Schedule to delete`).action(async e=>{let{deleteSchedule:t}=await import(`./schedules-COBaV-Be.js`);await t(e)}),k(t.command(`calendars`).description(`List connected calendar accounts`)).action(async(e,t)=>{let{listCalendarAccounts:n}=await import(`./schedules-COBaV-Be.js`);await n(t.optsWithGlobals())})}function Ke(e){k(e.command(`login`).summary(`Log in to EntryDesk`).helpGroup(P.setup)).action(async(e,t)=>{let{runLogin:n}=await import(`./login-C0Zz6tHG.js`);await n(t.optsWithGlobals())})}function qe(e){e.command(`logout`).summary(`Log out and clear credentials`).helpGroup(P.setup).action(async()=>{let{runLogout:e}=await import(`./logout-DnFBlXMZ.js`);await e()})}function Je(e){k(e.command(`status`).summary(`Show who you are logged in as`).helpGroup(P.setup)).action(async(e,t)=>{let{runStatus:n}=await import(`./status-Oo8upbyy.js`);await n(t.optsWithGlobals())})}function Ye(e){k(e.command(`models`).summary(`List available models`).option(`--config`,`Show where this deployment resolves a task's model from, and the tier → model mapping`).helpGroup(P.workspace)).action(async(e,t)=>{let{runModels:n}=await import(`./models-DT78HZxx.js`);await n(t.optsWithGlobals())})}function Xe(e){e.command(`version`).summary(`Show the version number`).helpGroup(P.setup).action(()=>console.log(e.version()))}function Ze(e){k(e.command(`update`).summary(`Update the CLI to the latest version`).helpGroup(P.setup).option(`--check`,`Only check for a newer version, don't install`)).action(async(e,t)=>{let{runUpdate:n}=await import(`./update-Y9S-P4wG.js`);await n(t.optsWithGlobals())})}function Qe(e){e.command(`mcp-server`).summary(`Start the MCP server (stdio or HTTP)`).helpGroup(P.setup).option(`--http`,`Serve over HTTP instead of stdio`).option(`-p, --port <number>`,`Port to listen on`,v(1,65535)).action(async e=>{let{startMcpServer:t}=await import(`./mcp-DHXuIFWP.js`);await t({mode:e.http?`http`:`stdio`,port:e.port})})}function q(e){return e.option(`-g, --global`,`Act at user (global) scope instead of the project`)}function J(e){return e.option(`-a, --agent <agentId>`,`Restrict install to specific agents (repeatable; '*' for all)`,Se)}function $e(e){let t=e.command(`skills`).summary(`List, upload, version, toggle, and share skills`).helpGroup(P.build);k(q(t.command(`list`,{isDefault:!0}).description(`List available skills`).option(`--me, --mine`,`Only skills you created`).option(`--local`,`Only locally-tracked skills`).option(`--remote`,`Only workspace skills`).option(`--all`,`Both local and remote, merged`))).action(async(e,t)=>{let{listSkills:n}=await import(`./skills-OLZywcSs.js`);await n(t.optsWithGlobals())}),k(t.command(`upload`).description(`Upload a skill zip file or folder`).argument(`<path>`,`Zip file or folder to upload`).option(`--force`,`Overwrite an existing skill with the same name`)).action(async(e,t,n)=>{let{uploadSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(t.command(`toggle`).description(`Enable or disable a skill for yourself`).argument(`<skillId>`,`Skill to toggle`).addOption(new g(`--enable`,`Turn the skill on`).conflicts(`disable`)).option(`--disable`,`Turn the skill off`)).action(async(e,t,n)=>{let{toggleSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(t.command(`versions`).description(`List a skill's version history`).argument(`<skillId>`,`Skill to inspect`)).action(async(e,t,n)=>{let{listSkillVersions:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(N(t.command(`share`).description(`Show or manage sharing (user grants)`).argument(`<skillId>`,`Skill to share`))).action(async(e,t,n)=>{let{shareSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),t.command(`delete`).description(`Delete a skill you own`).argument(`<skillId>`,`Skill to delete`).action(async e=>{let{deleteSkill:t}=await import(`./skills-OLZywcSs.js`);await t(e)}),k(t.command(`download`).description(`Download and extract a skill to ./<skill-name>/`).argument(`<skillId>`,`Skill to download`)).action(async(e,t,n)=>{let{downloadSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(J(q(t.command(`add`).description(`Install a skill from an EntryDesk slug/id, a git URL, or a local path`).argument(`<source>`,`Skill source`)))).action(async(e,t,n)=>{let{addSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(J(q(t.command(`pull`).description(`Download the latest from the workspace`).argument(`[nameOrId]`,`Skill to pull (default: every tracked one)`)))).action(async(e,t,n)=>{let{pullSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`push`).description(`Upload local changes to the workspace`).argument(`[name]`,`Skill to push (default: every changed one)`).option(`--force`,`Overwrite the workspace copy`))).action(async(e,t,n)=>{let{pushSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`status`).description(`Show local vs workspace drift`))).action(async(e,t)=>{let{showSkillsStatus:n}=await import(`./skills-OLZywcSs.js`);await n(t.optsWithGlobals())}),k(q(t.command(`remove`).description(`Uninstall a skill locally`).argument(`<name>`,`Skill to remove`).option(`--remote`,`Also delete the skill from the workspace`))).action(async(e,t,n)=>{let{removeSkill:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`link`).description(`Bind this directory (or the user) to a workspace`).argument(`[workspaceId]`,`Workspace to bind to`))).action(async(e,t,n)=>{let{linkSkillsDirectory:r}=await import(`./skills-OLZywcSs.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`unlink`).description(`Remove the workspace binding`))).action(async(e,t)=>{let{runSkillsUnlink:n}=await import(`./commands-DRUlUd-I.js`);n(t.optsWithGlobals())})}function et(e){e.command(`task`,{isDefault:!0}).summary(`Send a message or run an interactive task`).description(`Send a message to a model or agent, or start an interactive session.`).helpGroup(P.chat).option(`-m, --message <text>`,`Message to send (or pipe via stdin)`).option(`--model <modelId>`,`Model to use (instead of an agent)`).option(`-a, --agent <agentId>`,`Agent to use (instead of --model)`).option(`-c, --continue <n>`,`Continue recent task #n`,v(1,20)).option(`-i, --interactive`,`Interactive mode (continuous chat)`).option(`--project <project>`,"Create the task in this project (a project id, or — with `projects:read` — a 1-based index into a plain `entrydesk project list`)").option(`--connectors <ids>`,`Limit to specific connectors (default: all connected)`,w).option(`--plain`,`Plain text output`).addOption(new g(`--output <mode>`,`Stream events as JSON`).choices(m)).option(`--full-output`,`Show full tool outputs`).option(`--file-system`,`Enable local file operations`).option(`--no-file-system`,`Disable local file operations`).addOption(new g(`--tool-approval-mode <mode>`,`Defaults to the mode /approval saved. Non-interactive runs deny every approval they are asked for`).choices(te.options)).option(`--allowed-tools <tools...>`,`Pre-authorize these tools, so they run without asking (comma or space separated)`,E).option(`--disallowed-tools <tools...>`,`Refuse these tools. Wins over --allowed-tools and --tool-approval-mode`,E).option(`--dangerously-auto-approve-tools`,`Deprecated alias for --tool-approval-mode always_allow`).addHelpText(`after`,`
|
|
87
|
+
entrydesk project context-read 1 task <taskId> --full`)).action(async(e,t,n,r,i)=>{let{readProjectContext:a}=await import(`./project-context-C0ozCzKH.js`);await a(e,t,n,i.optsWithGlobals())}),Be(t,V),Ve(t)}function Ue(e){let t=e.command(`recordings`).summary(`List, import, retry, and manage recordings`).helpGroup(P.build).addHelpText(`after`,"\nNote: full transcripts live in `entrydesk meeting transcript <recordingId>`.");k(A(t.command(`list`,{isDefault:!0}).description(`List recordings`).option(`--search <query>`,`Filter by title/transcript`,b(200)),20)).action(async(e,t)=>{let{listRecordings:n}=await import(`./recordings-BbeRVH0H.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show a recording's metadata, summary, and status`).argument(`<recordingId>`,`Recording to show`)).action(async(e,t,n)=>{let{showRecording:r}=await import(`./recordings-BbeRVH0H.js`);await r(e,n.optsWithGlobals())}),k(t.command(`import`).description(`Import a recording from a media URL`).argument(`<url>`,`Media URL to import`).option(`--title <text>`,`Title for the imported recording`).option(`--model <modelId>`,`Model for transcription and summary`).option(`--language <code>`,`Preferred transcript language (e.g. zh-TW)`)).action(async(e,t,n)=>{let{importRecording:r}=await import(`./recordings-BbeRVH0H.js`);await r(e,n.optsWithGlobals())}),k(t.command(`preview`).description(`Preview a media URL's metadata before importing`).argument(`<url>`,`Media URL to preview`)).action(async(e,t,n)=>{let{previewRecording:r}=await import(`./recordings-BbeRVH0H.js`);await r(e,n.optsWithGlobals())}),k(t.command(`audio-url`).description(`Get a signed URL to stream or download the audio`).argument(`<recordingId>`,`Recording to link`)).action(async(e,t,n)=>{let{showRecordingAudioUrl:r}=await import(`./recordings-BbeRVH0H.js`);await r(e,n.optsWithGlobals())}),k(t.command(`retry`).description(`Retry processing of a failed recording`).argument(`<recordingId>`,`Recording to retry`)).action(async(e,t,n)=>{let{retryRecording:r}=await import(`./recordings-BbeRVH0H.js`);await r(e,n.optsWithGlobals())}),k(t.command(`delete`).description(`Delete a recording`).argument(`<recordingId>`,`Recording to delete`).option(`-y, --yes`,`Skip the confirmation prompt`)).action(async(e,t,n)=>{let{deleteRecording:r}=await import(`./recordings-BbeRVH0H.js`);await r(e,n.optsWithGlobals())})}const We=[...new Set(o.map(e=>e.toolApprovalMode))],Ge=[...new Set(o.map(e=>e.approvalHandling))];function G(e){return e.addOption(new g(`--tool-approval-mode <mode>`,`Which tools runs may use without asking: always_allow gates nothing, auto gates high-risk tools. Pass with --approval-handling`).choices(We)).addOption(new g(`--approval-handling <handling>`,`What a run does at a gated tool: ask pauses until approved in Hub, deny skips the call, bypass runs it. Pass with --tool-approval-mode`).choices(Ge)).option(`--allowed-tools <tools...>`,`Pre-authorize these tools for this schedule (comma or space separated)`,E).option(`--disallowed-tools <tools...>`,`Block these tools for this schedule. Wins over --allowed-tools`,E)}function K(e){return e.option(`--utc-offset <offset>`,`Timezone offset, e.g. +08:00`).option(`--holiday-calendars <ids>`,`Comma-separated connected calendar ids to skip on holiday`,w).addOption(new g(`--repeat-type <type>`,`Repeat unit`).choices(he)).option(`--every <n>`,`Repeat every N units`,v(1,1e3)).option(`--time <HH:MM>`,`Time of day (days, weeks, months)`,D).option(`--times <HH:MM,...>`,`Multiple daily trigger times (days only)`,De).option(`--days-of-week <0-6>`,`Comma-separated days, 0=Sunday`,T(0,6)).option(`--days-of-month <1-31>`,`Comma-separated days of the month`,T(1,31)).option(`--last-day-of-month`,`Include the last day of the month`).option(`--daily-windows <ranges>`,`Comma-separated HH:MM-HH:MM active-time windows (minutes, hours)`,Oe)}function Ke(e){let t=e.command(`schedules`).summary(`Create and manage scheduled tasks`).helpGroup(P.build);k(t.command(`list`,{isDefault:!0}).description(`List schedules`)).action(async(e,t)=>{let{listSchedules:n}=await import(`./schedules-ec4cS2A0.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show schedule details`).argument(`<scheduleId>`,`Schedule to show`)).action(async(e,t,n)=>{let{showSchedule:r}=await import(`./schedules-ec4cS2A0.js`);await r(e,n.optsWithGlobals())}),k(G(K(t.command(`create`).description(`Create a new schedule`).requiredOption(`--name <name>`,`Schedule name`).requiredOption(`--prompt <text>`,`Prompt to send to the agent`).requiredOption(`--agent-id <id>`,`Agent to run`).requiredOption(`--starts-at <datetime>`,`Start time, ISO 8601`)))).action(async(e,t)=>{let{createSchedule:n}=await import(`./schedules-ec4cS2A0.js`);await n(t.optsWithGlobals())}),k(G(K(t.command(`edit`).description(`Update a schedule (only the fields you pass)`).argument(`<scheduleId>`,`Schedule to update`).option(`--name <name>`,`Schedule name`).option(`--prompt <text>`,`Prompt to send to the agent`).option(`--agent-id <id>`,`Agent to run`).option(`--agent-version <n>`,`Agent version number to use`,v(1,2**53-1)).option(`--starts-at <datetime>`,`Start time, ISO 8601`)))).action(async(e,t,n)=>{let{editSchedule:r}=await import(`./schedules-ec4cS2A0.js`);await r(e,n.optsWithGlobals())}),k(t.command(`activate`).description(`Resume a paused schedule`).argument(`<scheduleId>`,`Schedule to activate`)).action(async(e,t,n)=>{let{setScheduleActive:r}=await import(`./schedules-ec4cS2A0.js`);await r(e,!0,n.optsWithGlobals())}),k(t.command(`pause`).description(`Pause an active schedule`).argument(`<scheduleId>`,`Schedule to pause`)).action(async(e,t,n)=>{let{setScheduleActive:r}=await import(`./schedules-ec4cS2A0.js`);await r(e,!1,n.optsWithGlobals())}),k(t.command(`run`).description(`Run a schedule now; prints the created taskId`).argument(`<scheduleId>`,`Schedule to run`)).action(async(e,t,n)=>{let{runScheduleNow:r}=await import(`./schedules-ec4cS2A0.js`);await r(e,n.optsWithGlobals())}),k(j(t.command(`runs`).description(`List a schedule's run history`).argument(`<scheduleId>`,`Schedule whose runs to list`),20)).action(async(e,t,n)=>{let{listScheduleRuns:r}=await import(`./schedules-ec4cS2A0.js`);await r(e,n.optsWithGlobals())}),t.command(`delete`).description(`Delete a schedule`).argument(`<scheduleId>`,`Schedule to delete`).action(async e=>{let{deleteSchedule:t}=await import(`./schedules-ec4cS2A0.js`);await t(e)}),k(t.command(`calendars`).description(`List connected calendar accounts`)).action(async(e,t)=>{let{listCalendarAccounts:n}=await import(`./schedules-ec4cS2A0.js`);await n(t.optsWithGlobals())})}function qe(e){k(e.command(`login`).summary(`Log in to EntryDesk`).helpGroup(P.setup)).action(async(e,t)=>{let{runLogin:n}=await import(`./login-Ch3S9nh6.js`);await n(t.optsWithGlobals())})}function Je(e){e.command(`logout`).summary(`Log out and clear credentials`).helpGroup(P.setup).action(async()=>{let{runLogout:e}=await import(`./logout-BFFnjWjY.js`);await e()})}function Ye(e){k(e.command(`status`).summary(`Show who you are logged in as`).helpGroup(P.setup)).action(async(e,t)=>{let{runStatus:n}=await import(`./status-DpYhlJPA.js`);await n(t.optsWithGlobals())})}function Xe(e){k(e.command(`models`).summary(`List available models`).option(`--config`,`Show where this deployment resolves a task's model from, and the tier → model mapping`).helpGroup(P.workspace)).action(async(e,t)=>{let{runModels:n}=await import(`./models-6WioEQKB.js`);await n(t.optsWithGlobals())})}function Ze(e){e.command(`version`).summary(`Show the version number`).helpGroup(P.setup).action(()=>console.log(e.version()))}function Qe(e){k(e.command(`update`).summary(`Update the CLI to the latest version`).helpGroup(P.setup).option(`--check`,`Only check for a newer version, don't install`)).action(async(e,t)=>{let{runUpdate:n}=await import(`./update-BVBj3leV.js`);await n(t.optsWithGlobals())})}function $e(e){e.command(`mcp-server`).summary(`Start the MCP server (stdio or HTTP)`).helpGroup(P.setup).option(`--http`,`Serve over HTTP instead of stdio`).option(`-p, --port <number>`,`Port to listen on`,v(1,65535)).action(async e=>{let{startMcpServer:t}=await import(`./mcp-D2zejorr.js`);await t({mode:e.http?`http`:`stdio`,port:e.port})})}function q(e){return e.option(`-g, --global`,`Act at user (global) scope instead of the project`)}function J(e){return e.option(`-a, --agent <agentId>`,`Restrict install to specific agents (repeatable; '*' for all)`,Ce)}function et(e){let t=e.command(`skills`).summary(`List, upload, version, toggle, and share skills`).helpGroup(P.build);k(q(t.command(`list`,{isDefault:!0}).description(`List available skills`).option(`--me, --mine`,`Only skills you created`).option(`--local`,`Only locally-tracked skills`).option(`--remote`,`Only workspace skills`).option(`--all`,`Both local and remote, merged`))).action(async(e,t)=>{let{listSkills:n}=await import(`./skills-C0xCUb-M.js`);await n(t.optsWithGlobals())}),k(t.command(`upload`).description(`Upload a skill zip file or folder`).argument(`<path>`,`Zip file or folder to upload`).option(`--force`,`Overwrite an existing skill with the same name`)).action(async(e,t,n)=>{let{uploadSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(t.command(`toggle`).description(`Enable or disable a skill for yourself`).argument(`<skillId>`,`Skill to toggle`).addOption(new g(`--enable`,`Turn the skill on`).conflicts(`disable`)).option(`--disable`,`Turn the skill off`)).action(async(e,t,n)=>{let{toggleSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(t.command(`versions`).description(`List a skill's version history`).argument(`<skillId>`,`Skill to inspect`)).action(async(e,t,n)=>{let{listSkillVersions:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(N(t.command(`share`).description(`Show or manage sharing (user grants)`).argument(`<skillId>`,`Skill to share`))).action(async(e,t,n)=>{let{shareSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),t.command(`delete`).description(`Delete a skill you own`).argument(`<skillId>`,`Skill to delete`).action(async e=>{let{deleteSkill:t}=await import(`./skills-C0xCUb-M.js`);await t(e)}),k(t.command(`download`).description(`Download and extract a skill to ./<skill-name>/`).argument(`<skillId>`,`Skill to download`)).action(async(e,t,n)=>{let{downloadSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(J(q(t.command(`add`).description(`Install a skill from an EntryDesk slug/id, a git URL, or a local path`).argument(`<source>`,`Skill source`)))).action(async(e,t,n)=>{let{addSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(J(q(t.command(`pull`).description(`Download the latest from the workspace`).argument(`[nameOrId]`,`Skill to pull (default: every tracked one)`)))).action(async(e,t,n)=>{let{pullSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`push`).description(`Upload local changes to the workspace`).argument(`[name]`,`Skill to push (default: every changed one)`).option(`--force`,`Overwrite the workspace copy`))).action(async(e,t,n)=>{let{pushSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`status`).description(`Show local vs workspace drift`))).action(async(e,t)=>{let{showSkillsStatus:n}=await import(`./skills-C0xCUb-M.js`);await n(t.optsWithGlobals())}),k(q(t.command(`remove`).description(`Uninstall a skill locally`).argument(`<name>`,`Skill to remove`).option(`--remote`,`Also delete the skill from the workspace`))).action(async(e,t,n)=>{let{removeSkill:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`link`).description(`Bind this directory (or the user) to a workspace`).argument(`[workspaceId]`,`Workspace to bind to`))).action(async(e,t,n)=>{let{linkSkillsDirectory:r}=await import(`./skills-C0xCUb-M.js`);await r(e,n.optsWithGlobals())}),k(q(t.command(`unlink`).description(`Remove the workspace binding`))).action(async(e,t)=>{let{runSkillsUnlink:n}=await import(`./commands-D5BrzwFc.js`);n(t.optsWithGlobals())})}function tt(e){e.command(`task`,{isDefault:!0}).summary(`Send a message or run an interactive task`).description(`Send a message to a model or agent, or start an interactive session.`).helpGroup(P.chat).option(`-m, --message <text>`,`Message to send (or pipe via stdin)`).option(`--model <modelId>`,`Model to use (instead of an agent)`).option(`-a, --agent <agentId>`,`Agent to use (instead of --model)`).option(`-c, --continue <n>`,`Continue recent task #n`,v(1,20)).option(`-i, --interactive`,`Interactive mode (continuous chat)`).option(`--project <project>`,"Create the task in this project (a project id, or — with `projects:read` — a 1-based index into a plain `entrydesk project list`)").option(`--connectors <ids>`,`Limit to specific connectors (default: all connected)`,w).option(`--plain`,`Plain text output`).addOption(new g(`--output <mode>`,`Stream events as JSON`).choices(m)).option(`--full-output`,`Show full tool outputs`).option(`--file-system`,`Enable local file operations`).option(`--no-file-system`,`Disable local file operations`).addOption(new g(`--tool-approval-mode <mode>`,`Defaults to the mode /approval saved. Non-interactive runs deny every approval they are asked for`).choices(i.options)).option(`--allowed-tools <tools...>`,`Pre-authorize these tools, so they run without asking (comma or space separated)`,E).option(`--disallowed-tools <tools...>`,`Refuse these tools. Wins over --allowed-tools and --tool-approval-mode`,E).option(`--dangerously-auto-approve-tools`,`Deprecated alias for --tool-approval-mode always_allow`).addHelpText(`after`,`
|
|
88
88
|
Working inside a project:
|
|
89
89
|
--project files the new task in that project, so the turn starts from the
|
|
90
90
|
project instruction and its members can be given access. The AI answers as
|
|
@@ -117,7 +117,7 @@ Examples:
|
|
|
117
117
|
List available models: entrydesk models
|
|
118
118
|
List available agents: entrydesk agents
|
|
119
119
|
List recent tasks: entrydesk tasks
|
|
120
|
-
List a project's tasks: entrydesk tasks --project <project>`).action(async(e,t)=>{let[n]=t.parent?.args??[],r=n===t.name()||t.aliases().includes(n??``),{runTask:i}=await import(`./task-
|
|
120
|
+
List a project's tasks: entrydesk tasks --project <project>`).action(async(e,t)=>{let[n]=t.parent?.args??[],r=n===t.name()||t.aliases().includes(n??``),{runTask:i}=await import(`./task-DfLoMsmZ.js`);await i({...e,interactive:e.interactive??!r})})}function nt(e){k(e.command(`tasks`).summary(`List, search, or view tasks`).helpGroup(P.chat).argument(`[taskId]`,`Task id, or a 1-based index into recent tasks`).addOption(new g(`-q, --search <query>`,`Filter tasks by a search query`).conflicts(`share`)).option(`--limit <number>`,`Max tasks to return`,v(1,50)).option(`--next-key <cursor>`,`Fetch the next page using this cursor`).addOption(new g(`-s, --share <shareId>`,`View a shared task's messages (no login needed)`).conflicts(`project`)).option(`--project <project>`,"Limit the listing and `-q` to the tasks you can see in this project (a project id, or — with `projects:read` — a 1-based index into a plain `entrydesk project list`)").addOption(new g(`--output <mode>`,`Stream messages as JSON events`).choices(m)).option(`--full-output`,`Show full tool outputs when viewing a task`).addHelpText(`after`,`
|
|
121
121
|
Examples:
|
|
122
122
|
entrydesk tasks # List recent tasks
|
|
123
123
|
entrydesk tasks -q "deploy" --limit 20 # Search tasks
|
|
@@ -125,20 +125,20 @@ Examples:
|
|
|
125
125
|
entrydesk tasks <taskId> --full-output # …with full tool outputs
|
|
126
126
|
entrydesk tasks -s <shareId> # View a shared task
|
|
127
127
|
entrydesk tasks --project 2 # Tasks you can see in project 2
|
|
128
|
-
entrydesk tasks --project 2 -q "deploy" # …searched within it`)).action(async(e,t,n)=>{let{runTasks:r}=await import(`./tasks-
|
|
128
|
+
entrydesk tasks --project 2 -q "deploy" # …searched within it`)).action(async(e,t,n)=>{let{runTasks:r}=await import(`./tasks-CA2QZ8rX.js`);await r(e,n.optsWithGlobals())})}function rt(e){let t=e.command(`tool`).summary(`Discover, inspect, and call tools`).helpGroup(P.chat).addHelpText(`after`,`
|
|
129
129
|
Find a tool: entrydesk tool search "send a group chat message"
|
|
130
130
|
Inspect it: entrydesk tool get <name> --json
|
|
131
131
|
Run it: entrydesk tool call <name> --input-file input.json --json
|
|
132
132
|
|
|
133
133
|
The direct tool list is not a complete connector catalog. Search or get can
|
|
134
|
-
discover connector tools that are absent from list.`);k(t.command(`list`,{isDefault:!0}).description(`List directly exposed tools; use search to discover connector tools`).option(`-p, --prefix <name>`,`Filter the direct list by tool namespace prefix`)).action(async(e,t)=>{let{listTools:n}=await import(`./tool-
|
|
134
|
+
discover connector tools that are absent from list.`);k(t.command(`list`,{isDefault:!0}).description(`List directly exposed tools; use search to discover connector tools`).option(`-p, --prefix <name>`,`Filter the direct list by tool namespace prefix`)).action(async(e,t)=>{let{listTools:n}=await import(`./tool-B8CuZYYb.js`);await n(t.optsWithGlobals())}),k(t.command(`search`).description(`Find tools by an English query, including unlisted connector tools`).argument(`<query>`,`English description, e.g. "send a group chat message"`).option(`--namespace <names...>`,`Search exact connector namespaces from previous results`).addHelpText(`after`,`
|
|
135
135
|
Examples:
|
|
136
136
|
entrydesk tool search "send a group chat message" --json
|
|
137
137
|
entrydesk tool search "read a spreadsheet" --namespace google_drive --json
|
|
138
138
|
|
|
139
139
|
JSON output includes matched tools, schemas, connection status, and provider
|
|
140
140
|
errors. A partial search prints its results and exits with status 1. Use get
|
|
141
|
-
for a complete schema, then call with --input-file or stdin.`)).action(async(e,t,n)=>{let{searchTools:r}=await import(`./tool-
|
|
141
|
+
for a complete schema, then call with --input-file or stdin.`)).action(async(e,t,n)=>{let{searchTools:r}=await import(`./tool-B8CuZYYb.js`);await r(e,n.optsWithGlobals())}),k(t.command(`get`).description(`Get a tool schema by exact name, including unlisted connector tools`).argument(`<name>`,`Tool name`)).action(async(e,t,n)=>{let{getTool:r}=await import(`./tool-B8CuZYYb.js`);await r(e,n.optsWithGlobals())}),k(t.command(`call`).description(`Call a tool with JSON input`).argument(`<name>`,`Tool name`).option(`-i, --input <json>`,`JSON input for the tool call`).option(`-f, --input-file <path>`,`Read the JSON input from a file`).addHelpText(`after`,`
|
|
142
142
|
Input priority:
|
|
143
143
|
1. --input (direct JSON string)
|
|
144
144
|
2. --input-file (read from file)
|
|
@@ -151,9 +151,9 @@ appear in tool list before it can be called.
|
|
|
151
151
|
Examples:
|
|
152
152
|
entrydesk tool call agent__search_agents --input '{"limit": 5}'
|
|
153
153
|
entrydesk tool call agent__search_agents --input-file input.json
|
|
154
|
-
echo '{"limit": 5}' | entrydesk tool call agent__search_agents`)).action(async(e,t,n)=>{let{runToolCall:r}=await import(`./tool-
|
|
154
|
+
echo '{"limit": 5}' | entrydesk tool call agent__search_agents`)).action(async(e,t,n)=>{let{runToolCall:r}=await import(`./tool-B8CuZYYb.js`);await r(e,n.optsWithGlobals())})}function it(e){let t=e.command(`usage`).summary(`Show balance, spend rankings, per-user breakdown, or CSV export`).helpGroup(P.workspace);k(t.command(`summary`,{isDefault:!0}).description(`Per-user monthly cost/operations summary`).option(`--limit <number>`,`Limit rows (default: all)`,v(1,100)).addOption(new g(`--sort-by <field>`,`Sort the summary`).choices(me).default(`cost`))).action(async(e,t)=>{let{showUsageSummary:n}=await import(`./usage-CIhTZm98.js`);await n(t.optsWithGlobals())}),k(t.command(`balance`).description(`Workspace USD balance, spend, and limits`)).action(async(e,t)=>{let{showUsageBalance:n}=await import(`./usage-CIhTZm98.js`);await n(t.optsWithGlobals())}),k(t.command(`me`).description(`Your own usage and availability`)).action(async(e,t)=>{let{showOwnUsage:n}=await import(`./usage-CIhTZm98.js`);await n(t.optsWithGlobals())}),k(t.command(`consumptions`).description(`Per-user extra-usage breakdown`).option(`--limit <number>`,`Max rows (default: 20)`,v(1,100)).option(`--offset <number>`,`Pagination offset`,_).option(`--period-start <iso>`,`Period start`)).action(async(e,t)=>{let{listUsageConsumptions:n}=await import(`./usage-CIhTZm98.js`);await n(t.optsWithGlobals())}),k(t.command(`rank`).description(`Rank workspace spend by user, agent, schedule, or model`).addOption(new g(`--by <field>`,`Dimension to rank by`).choices(ye).default(`user`)).option(`--days <number>`,`Rolling window in days (default: all time)`,v(1,365)).option(`--model <substring>`,`Only count calls whose model matches this substring`).option(`--limit <number>`,`Max rows (default: 30)`,v(1,100))).action(async(e,t)=>{let{rankUsage:n}=await import(`./usage-audit-BUcbqdAc.js`);await n(t.optsWithGlobals())}),k(t.command(`drill`).argument(`<email>`,`Workspace member to drill into`).description(`Break one member's spend down by agent, day, and schedule`).option(`--days <number>`,`Lookback in days (default: 30)`,v(1,60),30).option(`--min-cost <number>`,`Only list buckets above this spend (default: 0)`,y(0))).action(async(e,t,n)=>{let{drillUsage:r}=await import(`./usage-audit-BUcbqdAc.js`);await r(e,n.optsWithGlobals())}),k(t.command(`waste`).description(`Find schedules that keep spending while nobody reads the output`).option(`--days <number>`,`Lookback in days (default: 30)`,v(7,60),30).option(`--min-cost <number>`,`Only flag schedules above this spend`,y(0)).option(`--limit <number>`,`Max rows`,v(1,50))).action(async(e,t)=>{let{findUsageWaste:n}=await import(`./usage-audit-BUcbqdAc.js`);await n(t.optsWithGlobals())}),t.command(`export`).description(`Export per-user usage as CSV`).option(`--period-start <iso>`,`Period start`).option(`-o, --output <file>`,`Write the CSV to a file (default: stdout)`).action(async e=>{let{exportUsage:t}=await import(`./usage-CIhTZm98.js`);await t(e)})}function at(e){let t=e.command(`workflow`).summary(`Create, run, and manage workflows`).helpGroup(P.build).addHelpText(`after`,`
|
|
155
155
|
Examples:
|
|
156
156
|
entrydesk workflow list --search report
|
|
157
157
|
entrydesk workflow create --name "Nightly report" --file ./report.js
|
|
158
158
|
entrydesk workflow run <workflowId> --args '{"date":"2026-06-20"}' --wait
|
|
159
|
-
entrydesk workflow run-get <workflowId> <runId>`);k(j(t.command(`list`,{isDefault:!0}).description(`List workflows`).option(`--search <text>`,`Search by name`),20)).action(async(e,t)=>{let{listWorkflows:n}=await import(`./workflow-
|
|
159
|
+
entrydesk workflow run-get <workflowId> <runId>`);k(j(t.command(`list`,{isDefault:!0}).description(`List workflows`).option(`--search <text>`,`Search by name`),20)).action(async(e,t)=>{let{listWorkflows:n}=await import(`./workflow-DJSq8hY5.js`);await n(t.optsWithGlobals())}),k(t.command(`get`).description(`Show workflow details`).argument(`<workflowId>`,`Workflow to show`).option(`--show-source`,`Print the full script source`)).action(async(e,t,n)=>{let{showWorkflow:r}=await import(`./workflow-DJSq8hY5.js`);await r(e,n.optsWithGlobals())}),k(t.command(`create`).description(`Create a workflow from a local script file`).requiredOption(`--name <text>`,`Workflow name`).requiredOption(`--file <path>`,`Script source file (.js)`).option(`--description <text>`,`Workflow description`)).action(async(e,t)=>{let{createWorkflow:n}=await import(`./workflow-DJSq8hY5.js`);await n(t.optsWithGlobals())}),k(t.command(`update`).description(`Update name, description, script, or active state`).argument(`<workflowId>`,`Workflow to update`).option(`--name <text>`,`Workflow name`).option(`--description <text>`,`Workflow description`).option(`--file <path>`,`Script source file (.js)`).addOption(new g(`--activate`,`Enable the workflow`).conflicts(`deactivate`)).option(`--deactivate`,`Disable the workflow`)).action(async(e,t,n)=>{let{updateWorkflow:r}=await import(`./workflow-DJSq8hY5.js`);await r(e,n.optsWithGlobals())}),k(t.command(`run`).description(`Trigger a run`).argument(`<workflowId>`,`Workflow to run`).addOption(new g(`--args <json>`,`Inline JSON passed to the workflow's args global`).conflicts(`argsFile`)).option(`--args-file <path>`,`Read the JSON args from a file`).option(`--wait`,`Poll the run until it finishes, then print the result`)).action(async(e,t,n)=>{let{triggerWorkflowRun:r}=await import(`./workflow-DJSq8hY5.js`);await r(e,n.optsWithGlobals())}),k(j(t.command(`runs`).description(`List runs of a workflow`).argument(`<workflowId>`,`Workflow whose runs to list`),20)).action(async(e,t,n)=>{let{listWorkflowRuns:r}=await import(`./workflow-DJSq8hY5.js`);await r(e,n.optsWithGlobals())}),k(t.command(`run-get`).description(`Show a run's status, nodes, and logs`).argument(`<workflowId>`,`Workflow the run belongs to`).argument(`<runId>`,`Run to show`)).action(async(e,t,n,r)=>{let{showWorkflowRun:i}=await import(`./workflow-DJSq8hY5.js`);await i(e,t,r.optsWithGlobals())}),k(N(t.command(`share`).description(`Show or manage sharing (user grants)`).argument(`<workflowId>`,`Workflow to share`))).action(async(e,t,n)=>{let{shareWorkflow:r}=await import(`./workflow-DJSq8hY5.js`);await r(e,n.optsWithGlobals())})}function Y(e){let t=e.command(`workspaces`).summary(`List or switch workspaces`).helpGroup(P.workspace);k(t.command(`list`,{isDefault:!0}).description(`List all workspaces`)).action(async(e,t)=>{let{listWorkspaces:n}=await import(`./workspaces-BM_3Miqs.js`);await n(t.optsWithGlobals())}),k(t.command(`switch`).alias(`use`).description(`Switch to a workspace`).argument(`<workspaceId>`,`Workspace to switch to`)).action(async(e,t,n)=>{let{switchWorkspace:r}=await import(`./workspaces-BM_3Miqs.js`);await r(e,n.optsWithGlobals())})}function X(e){return e.commands.length>0}function Z(e,t){return e.options.some(e=>e.long===t)}function Q(e,t){return e.name()===t||e.aliases().includes(t)}function ot(e){X(e)&&!Z(e,`--json`)&&e.addOption(new g(`--json`).hideHelp()),Z(e,`--profile`)||e.addOption(new g(O).hideHelp())}function st(e){e.hook(`preSubcommand`,(e,t)=>{let[n]=e.args;n===void 0||n.startsWith(`-`)||Q(t,n)||t.registeredArguments.length>0||e.commands.some(e=>Q(e,n))||e.error(`error: unknown command '${n}'`,{code:`commander.unknownCommand`})})}function $(e,t){t||ot(e),X(e)&&st(e);for(let t of e.commands)t.name()!==`help`&&$(t,!1)}function ct(e){let t=e.optsWithGlobals().profile;return typeof t==`string`?t:void 0}function lt(e){let t=e;for(;t.parent?.parent;)t=t.parent;return t.name()}function ut(){let e=ke();return e.hook(`preAction`,(e,t)=>{if(lt(t)===`profile`)return;let n=ct(t)??p.getCurrentProfileName();p.ensureProfileExists(n),p.setOverrideProfile(n)}),tt(e),nt(e),rt(e),Ae(e),qe(e),Je(e),Ye(e),Y(e),Xe(e),Fe(e),Ie(e),He(e),at(e),Le(e),et(e),Ke(e),Ue(e),Re(e),it(e),Ne(e),je(e),Pe(e),ze(e),Ze(e),Qe(e),$e(e),$(e,!0),e}try{await ut().parseAsync(process.argv)}catch(e){ce(e)}export{};
|
|
@@ -7,4 +7,4 @@ if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
|
|
|
7
7
|
);
|
|
8
8
|
process.exit(1);
|
|
9
9
|
}
|
|
10
|
-
import{
|
|
10
|
+
import{gt as e,w as t}from"./profile-storage-CuiJZpFD.js";import{o as n}from"./resolve-BoqGhxVK.js";import{t as r}from"./stdin-B18x8pUF.js";import{readFileSync as i}from"node:fs";async function a(e,a){if(e===`-`)return r();try{return i(e,`utf8`)}catch{throw new n(`${a}_file_unreadable`,`Cannot read ${a} file: ${t(e)}`)}}async function o(t){let r=t.instructionFile===void 0?t.instruction:await a(t.instructionFile,`instruction`);if(r!==void 0&&r.length>1e4)throw new n(`project_field_too_long`,`Instruction is too long: the maximum is ${e} characters.`);return r}export{o as n,a as t};
|