@entrydesk/cli 2.1.0-beta.2 → 2.1.0-beta.4
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 +69 -12
- package/dist/{add-DXYghmJz.js → add-4VqDcbIj.js} +9 -1
- package/dist/agents-CCOqroYN.js +10 -0
- package/dist/{billing-Bkk1BhAw.js → billing-BV5kdyQb.js} +9 -1
- package/dist/{budget-dazpYOON.js → budget-CnxbNkne.js} +9 -1
- package/dist/build-task-request-config-CjKDSNjv.js +10 -0
- package/dist/commands-DRUlUd-I.js +10 -0
- package/dist/{commands-DUKXJUfr.js → commands-gyHmiEsC.js} +9 -1
- package/dist/{config-CSJx1Xlt.js → config-CJf4r7wp.js} +9 -1
- package/dist/confirm-Ct432t3K.js +10 -0
- package/dist/connectors-C_Re7e0l.js +11 -0
- package/dist/{file-upload-BmP4AJY0.js → file-upload-D2s_clGk.js} +8 -0
- package/dist/{format-C3tQC6LL.js → format-DCvznP70.js} +8 -0
- package/dist/{hash-Ddmw8YE4.js → hash-CnSb1n2t.js} +8 -0
- package/dist/index.js +50 -15
- package/dist/{installer-iaoPJQn3.js → installer-CKB3jBE-.js} +8 -0
- package/dist/instruction-DYgn39xF.js +10 -0
- package/dist/isRecord-BNZWvqVS.js +10 -0
- package/dist/{login-ACaFCfsh.js → login-C0Zz6tHG.js} +9 -1
- package/dist/logout-DnFBlXMZ.js +10 -0
- package/dist/{marketplace-S_4fkbWt.js → marketplace-DQsEzT6T.js} +9 -1
- package/dist/{mcp-DOUHU2_Z.js → mcp-DHXuIFWP.js} +9 -1
- package/dist/{mcp-client-LcmqajIh.js → mcp-client-EK-Fh8gM.js} +9 -1
- package/dist/{meeting-BG76tnT9.js → meeting-C6H_GJB7.js} +9 -1
- package/dist/message-utils-Cq_Fel5P.js +15 -0
- package/dist/{models-CkepW_-c.js → models-DT78HZxx.js} +9 -1
- package/dist/{notifications-BAMcYXhl.js → notifications-3UrKbGaT.js} +9 -1
- package/dist/options-Dpxg1wT1.js +10 -0
- package/dist/paginate-Brd-j5V8.js +10 -0
- package/dist/{paths-DQh1PdjS.js → paths-mBL9tt9p.js} +9 -1
- package/dist/{profile-BzXbLYDw.js → profile-D4m5ZAG7.js} +9 -1
- package/dist/profile-storage-CPg61h-2.js +68 -0
- package/dist/{project-B9uLW5nn.js → project-C5_rCWCh.js} +9 -1
- package/dist/project-context-DnIuy1T0.js +10 -0
- package/dist/{project-governance-CwVlxGE2.js → project-governance-CxDZSThr.js} +9 -1
- package/dist/{project-sources-BzMkopCj.js → project-sources-D17oXXhL.js} +9 -1
- package/dist/project-sources-write-C-W8gjLg.js +10 -0
- package/dist/{project-tasks-CnXLm061.js → project-tasks-t4HFgEoZ.js} +9 -1
- package/dist/{push-DWIgzvqe.js → push-CJZLFEdk.js} +9 -1
- package/dist/{recordings-_HnTtukO.js → recordings-DeB1LqiS.js} +9 -1
- package/dist/remote-D3JMUBbh.js +10 -0
- package/dist/{remove-Cpen9pWn.js → remove-ChV-BE95.js} +9 -1
- package/dist/resolve-Czx_OkYk.js +14 -0
- package/dist/resource-grants-zAoqe73P.js +10 -0
- package/dist/{rolldown-runtime-CIdiawuB.js → rolldown-runtime-CiM6yMNq.js} +8 -0
- package/dist/{schedules-DACWrdY_.js → schedules-COBaV-Be.js} +10 -2
- package/dist/skills-OLZywcSs.js +10 -0
- package/dist/{status-BKd81bGK.js → status-CpfDbB9S.js} +9 -1
- package/dist/{status-ErhWpQxW.js → status-Oo8upbyy.js} +9 -1
- package/dist/stdin-B18x8pUF.js +10 -0
- package/dist/task-C8PttINZ.js +108 -0
- package/dist/tasks-CAmfAGsn.js +22 -0
- package/dist/tasks-dv0gJ38_.js +10 -0
- package/dist/tool-kEevHrsQ.js +17 -0
- package/dist/{update-D09UponU.js → update-Y9S-P4wG.js} +9 -1
- package/dist/{usage-Dibnsgtg.js → usage-CHIhyA8S.js} +9 -1
- package/dist/{usage-audit-Be431Kj1.js → usage-audit-C1xGe42N.js} +9 -1
- package/dist/version-Dgsb7T5N.js +10 -0
- package/dist/workflow-DWmgcRJ_.js +14 -0
- package/dist/{workspaces-rVOwf5zp.js → workspaces-3PFiXy1I.js} +9 -1
- package/package.json +11 -7
- package/dist/agents-Drg2ZD85.js +0 -2
- package/dist/build-task-request-config-BDlX-M_P.js +0 -2
- package/dist/commands-FVFeS1MV.js +0 -2
- package/dist/confirm-BrJZbaxf.js +0 -2
- package/dist/connectors-CHcopt49.js +0 -3
- package/dist/instruction-BXKEUplM.js +0 -2
- package/dist/logout-BX4YsOqw.js +0 -2
- package/dist/options-CgmngSTC.js +0 -2
- package/dist/paginate-DUu8qbek.js +0 -2
- package/dist/profile-storage-DlaupNlV.js +0 -60
- package/dist/project-context-VlX5GZxr.js +0 -2
- package/dist/project-sources-write-D3WzWqet.js +0 -2
- package/dist/remote-nEFOyIM2.js +0 -2
- package/dist/resolve-7OXPmNrX.js +0 -6
- package/dist/resource-grants-D-ImlByb.js +0 -2
- package/dist/skills-BenhDHKq.js +0 -2
- package/dist/stdin-DzzLUF6W.js +0 -2
- package/dist/task-CvQD8Y4d.js +0 -104
- package/dist/tasks-C4dAgHmR.js +0 -2
- package/dist/tasks-CnncSIan.js +0 -14
- package/dist/terminal-text-D04u1hg1.js +0 -2
- package/dist/tool-CpSoLUlR.js +0 -5
- package/dist/version-BTqAbDeB.js +0 -2
- package/dist/workflow-Dx41WM43.js +0 -6
package/dist/index.js
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
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{B as e,Ct as t,D as n,Dt as r,Et as i,G as a,H as ee,Ht as te,I as ne,K as o,Nt as s,R as c,U as re,Ut as ie,V as ae,W as oe,Wt as se,_t as l,ft as u,ht as ce,j as le,mt as ue,o as de,pt as d,t as f,z as p}from"./profile-storage-CPg61h-2.js";import{t as fe}from"./version-Dgsb7T5N.js";import{a as m,c as pe,i as me,n as he,o as ge,r as _e,s as ve,t as ye}from"./options-Dpxg1wT1.js";import{Argument as be,Command as xe,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=a(e);if(t)throw new h(ee[t]);return e}function C(e){let t=re(e);if(t)throw new h(ae[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 Se(e,t=[]){return[...t,e]}const Ce=/[()*]/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(Ce.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 we=new Map([[`web`,i.WEB_SEARCH],[`image`,i.CREATION],[`image-gen`,i.CREATION],[`image_generation`,i.CREATION]]);function Te(e){return w(e).map(e=>{let t=e.replaceAll(`-`,`_`),n=we.get(e)??r.find(e=>e===t);if(!n)throw new h(`"${e}" is not one of: ${r.join(`, `)}`);return n})}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 Ee(e){return w(e).map(D)}function De(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(t.options).default(t.enum.viewer))}const P={chat:`Chat & Tasks:`,build:`Build:`,workspace:`Workspace:`,setup:`Setup:`};function Oe(){return new xe().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 ${fe()}`,`-v, --version`,`Show the version number`).showHelpAfterError("(run `entrydesk --help` to see the command list)").configureHelp({showGlobalOptions:!0}).addHelpText(`after`,`
|
|
3
11
|
Examples:
|
|
4
12
|
entrydesk task -m "Summarize my open tasks" --model <model>
|
|
5
13
|
entrydesk meeting transcript <recordingId> | entrydesk task -m "List action items"
|
|
6
14
|
entrydesk agents list --mine --json
|
|
7
15
|
|
|
8
|
-
Docs: https://entrydesk.com/docs/cli`)}function
|
|
16
|
+
Docs: https://entrydesk.com/docs/cli`)}function F(e){return e.option(`--connector-ids <ids>`,`Comma-separated connector ids`,w).option(`--capabilities <list>`,`Comma-separated capabilities (${r.join(`, `)})`,Te).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 ke(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-CCOqroYN.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-CCOqroYN.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-CCOqroYN.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-CCOqroYN.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-CCOqroYN.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-CCOqroYN.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-CCOqroYN.js`);await r(e,n.optsWithGlobals())})}function Ae(e){let t=e.command(`billing`).summary(`Show billing status and invoices`).helpGroup(P.workspace).addHelpText(`after`,`
|
|
9
17
|
Note: billing endpoints require an interactive login (OAuth); a workspace
|
|
10
|
-
PAT (ENTRYDESK_TOKEN) cannot read 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-BV5kdyQb.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-BV5kdyQb.js`);await n(t.optsWithGlobals())})}function je(e){if(!/^\d+(\.\d+)?$/u.test(e.trim()))throw new h(`must be a positive number`);return e}function Me(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-CnxbNkne.js`);await n(t.optsWithGlobals())}),k(t.command(`set`).description(`Set the workspace budget`).argument(`<amount>`,`Budget amount, e.g. 100.00`,je)).action(async(e,t,n)=>{let{setBudget:r}=await import(`./budget-CnxbNkne.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-CnxbNkne.js`);await n(t.optsWithGlobals())})}const I=()=>new be(`<key>`,`Configuration key`).choices(le);function Ne(e){let t=e.command(`config`).summary(`Manage CLI configuration`).helpGroup(P.setup).addHelpText(`after`,()=>{let{apiUrl:e,hubUrl:t}=n();return`
|
|
11
19
|
Keys:
|
|
12
20
|
apiUrl API server URL (default: ${e})
|
|
13
|
-
hubUrl Hub server URL (default: ${
|
|
21
|
+
hubUrl Hub server URL (default: ${t})
|
|
14
22
|
|
|
15
23
|
Examples:
|
|
16
24
|
entrydesk config set apiUrl http://localhost:3200
|
|
17
25
|
entrydesk config get apiUrl
|
|
18
|
-
entrydesk config unset apiUrl`});
|
|
26
|
+
entrydesk config unset apiUrl`});k(t.command(`list`,{isDefault:!0}).description(`List all configuration`)).action(async(e,t)=>{let{listConfig:n}=await import(`./config-CJf4r7wp.js`);n(t.optsWithGlobals())}),k(t.command(`get`).description(`Get a configuration value`).addArgument(I())).action(async(e,t,n)=>{let{getConfigValue:r}=await import(`./config-CJf4r7wp.js`);r(e,n.optsWithGlobals())}),t.command(`set`).description(`Set a configuration value`).addArgument(I()).argument(`<value>`,`Value to store`).action(async(e,t)=>{let{setConfigValue:n}=await import(`./config-CJf4r7wp.js`);n(e,t)}),t.command(`unset`).description(`Remove a configuration value`).addArgument(I()).action(async e=>{let{unsetConfigValue:t}=await import(`./config-CJf4r7wp.js`);t(e)})}const L=oe.exclude([`dcard-dual`]).options;function Pe(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-C_Re7e0l.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-C_Re7e0l.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-C_Re7e0l.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-C_Re7e0l.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(o.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-C_Re7e0l.js`);await n(t.optsWithGlobals())}),k(t.command(`update`).description(`Update a custom connector (only the fields you pass)`).addHelpText(`after`,`
|
|
27
|
+
Note: the API replaces the whole connector, so this reads the current one
|
|
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(o.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-C_Re7e0l.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-C_Re7e0l.js`);await r(e,n.optsWithGlobals())})}const R=e=>new g(`--type <type>`,e).choices(ne);function Fe(e){let t=e.command(`marketplace`).summary(`Browse and install marketplace agents and skills`).helpGroup(P.build).addHelpText(`after`,`
|
|
19
30
|
Note: search/show are public; install requires login and CreateAgent/CreateSkill
|
|
20
|
-
permission in the current workspace.`);A(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)`,b(1,100)).option(`--cursor <key>`,`Pagination cursor from a previous page`)).action(async(e,t,n)=>{let{searchMarketplace:r}=await import(`./marketplace-S_4fkbWt.js`);await r(e,n.optsWithGlobals())}),A(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-S_4fkbWt.js`);await r(e,n.optsWithGlobals())}),A(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-S_4fkbWt.js`);await r(e,n.optsWithGlobals())}),A(t.command(`roles`).description(`List role tags you can filter by`)).action(async(e,t)=>{let{showMarketplaceRoles:n}=await import(`./marketplace-S_4fkbWt.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 Fe(t){let n=t.command(`meeting`).summary(`Manage meetings, summaries, transcripts, and sharing`).helpGroup(F.build);A(M(n.command(`list`,{isDefault:!0}).description(`List meetings`).addOption(new v(`--filter <scope>`,`Filter meetings`).choices(_e).default(`all`)).option(`--search <text>`,`Search title and description`).addOption(new v(`--sort <field>`,`Sort order`).choices(pe).default(`updated_at`)),20)).action(async(e,t)=>{let{listMeetings:n}=await import(`./meeting-BG76tnT9.js`);await n(t.optsWithGlobals())}),A(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-BG76tnT9.js`);await r(e,n.optsWithGlobals())}),A(z(n.command(`create`).description(`Create a meeting manually`).requiredOption(`--title <text>`,`Meeting title`))).action(async(e,t)=>{let{createMeeting:n}=await import(`./meeting-BG76tnT9.js`);await n(t.optsWithGlobals())}),A(z(n.command(`update`).description(`Update a meeting`).argument(`<meetingId>`,`Meeting to update`).option(`--title <text>`,`Meeting title`)).addOption(new v(`--status <status>`,`Meeting status`).choices(e.options)).addOption(new v(`--visibility <visibility>`,`Who can see it`).choices(h.options))).action(async(e,t,n)=>{let{updateMeeting:r}=await import(`./meeting-BG76tnT9.js`);await r(e,n.optsWithGlobals())}),A(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-BG76tnT9.js`);await r(e,n.optsWithGlobals())}),A(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-BG76tnT9.js`);await r(e,n.optsWithGlobals())}),A(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-BG76tnT9.js`);await r(e,n.optsWithGlobals())}),A(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-BG76tnT9.js`);await r(e,n.optsWithGlobals())}),A(N(n.command(`share`).description(`Show or manage sharing (visibility, user/team grants)`).argument(`<meetingId>`,`Meeting to share`).addOption(new v(`--visibility <visibility>`,`Change who can see the meeting (owner only)`).choices(h.options))).addOption(new v(`--add-team <teamId>`,`Grant a team access`).conflicts(`removeTeam`)).option(`--remove-team <teamId>`,`Revoke a team's access`).addOption(new v(`--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-BG76tnT9.js`);await r(e,n.optsWithGlobals())})}function B(e){let t=e.command(`notifications`).summary(`List, count, or mark notifications read`).helpGroup(F.build);A(M(t.command(`list`,{isDefault:!0}).description(`List notifications`).addOption(new v(`--tab <tab>`,`Filter by category`).choices(te).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-BAMcYXhl.js`);await n(t.optsWithGlobals())}),A(t.command(`unread`).description(`Show the unread notification count`)).action(async(e,t)=>{let{showUnreadCount:n}=await import(`./notifications-BAMcYXhl.js`);await n(t.optsWithGlobals())}),A(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-BAMcYXhl.js`);await r(e,n.optsWithGlobals())}),A(t.command(`read-all`).description(`Mark every notification as read`)).action(async(e,t)=>{let{markAllNotificationsRead:n}=await import(`./notifications-BAMcYXhl.js`);await n(t.optsWithGlobals())})}function Ie(e){let t=e.command(`profile`).summary(`Manage profiles`).helpGroup(F.setup);A(t.command(`list`,{isDefault:!0}).description(`List profiles`)).action(async(e,t)=>{let{listProfiles:n}=await import(`./profile-BzXbLYDw.js`);n(t.optsWithGlobals())}),A(t.command(`current`).description(`Show the active profile`)).action(async(e,t)=>{let{showCurrentProfile:n}=await import(`./profile-BzXbLYDw.js`);n(t.optsWithGlobals())}),A(t.command(`show`).description(`Show profile details`).argument(`[name]`,`Profile to show`)).action(async(e,t,n)=>{let{showProfile:r}=await import(`./profile-BzXbLYDw.js`);await r(e,n.optsWithGlobals())}),A(t.command(`create`).description(`Create a profile`).argument(`[name]`,`Profile name (default: default)`)).action(async(e,t,n)=>{let{createProfile:r}=await import(`./profile-BzXbLYDw.js`);r(e,n.optsWithGlobals())}),A(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-BzXbLYDw.js`);r(e,n.optsWithGlobals())}),A(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-BzXbLYDw.js`);await r(e,n.optsWithGlobals())}),A(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-BzXbLYDw.js`);await i(e,t,r.optsWithGlobals())}),A(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-BzXbLYDw.js`);await i(e,t,r.optsWithGlobals())})}const V="User id (a UUID); `project members <project>` prints one beside each member";function Le(e,t){A(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 ${m} characters)`).option(`--instruction <text>`,`The standing brief every task in the project starts from (up to ${l} 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-CwVlxGE2.js`);await n(t.optsWithGlobals())}),A(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-CwVlxGE2.js`);await r(e,n.optsWithGlobals())}),A(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-CwVlxGE2.js`);await r(e,n.optsWithGlobals())}),A(e.command(`member-add`).description(`Add a workspace member to a project you own; it takes effect at once`).argument(`<project>`,t).argument(`<userId>`,V)).action(async(e,t,n,r)=>{let{addProjectMember:i}=await import(`./project-governance-CwVlxGE2.js`);await i(e,t,r.optsWithGlobals())}),A(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>`,V)).action(async(e,t,n,r)=>{let{removeProjectMember:i}=await import(`./project-governance-CwVlxGE2.js`);await i(e,t,r.optsWithGlobals())}),A(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>`,V).option(`--role <role>`,`New role: owner or member`)).action(async(e,t,n,r)=>{let{setProjectMemberRole:i}=await import(`./project-governance-CwVlxGE2.js`);await i(e,t,r.optsWithGlobals())})}const H="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",U=`Task id — ${me}`;function Re(e){A(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>`,H).option(`-q, --search <query>`,`Search within those tasks`).option(`--limit <number>`,`Max tasks to return`,b(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-CnXLm061.js`);await r(e,n.optsWithGlobals())}),A(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>`,H).argument(`<taskId>`,U).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-CnXLm061.js`);await i(e,t,r.optsWithGlobals())}),A(e.command(`task-remove`).description(`Move a task you own out of a project. Any assets it produced stay in the project`).argument(`<project>`,H).argument(`<taskId>`,U)).action(async(e,t,n,r)=>{let{removeTaskFromProject:i}=await import(`./project-tasks-CnXLm061.js`);await i(e,t,r.optsWithGlobals())}),A(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>`,H).argument(`<taskId>`,U).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-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`,`
|
|
21
32
|
--add-user, --remove-user and --visibility are mutually exclusive, and each
|
|
22
33
|
needs its value; with none of them the command prints this usage and exits 1.
|
|
23
34
|
|
|
@@ -25,11 +36,11 @@ Examples:
|
|
|
25
36
|
entrydesk project task-share 1 <taskId> --add-user <userId>
|
|
26
37
|
entrydesk project task-share 1 <taskId> --remove-user <userId>
|
|
27
38
|
entrydesk project task-share 1 <taskId> --visibility project
|
|
28
|
-
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-t4HFgEoZ.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 Ve(e){let t=e.command(`project`).summary(`Read and edit a project you belong to`).description(`Read and edit a project you belong to.
|
|
29
40
|
|
|
30
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.
|
|
31
42
|
|
|
32
|
-
These commands read and edit the project itself; none of them talks to the AI.`).helpGroup(
|
|
43
|
+
These commands read and edit the project itself; none of them talks to the AI.`).helpGroup(P.chat).addHelpText(`after`,`
|
|
33
44
|
Examples:
|
|
34
45
|
entrydesk project # List projects you belong to, oldest first
|
|
35
46
|
entrydesk project list --filter mine
|
|
@@ -52,13 +63,19 @@ Examples:
|
|
|
52
63
|
entrydesk project delete 1
|
|
53
64
|
entrydesk project tasks 1
|
|
54
65
|
entrydesk project task-add 1 <taskId>
|
|
55
|
-
entrydesk project task-share 1 <taskId> --add-user <userId>`);
|
|
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(ue.options)).addOption(new g(`--sort-by <field>`,`Order by creation time, or by your latest task activity as the Hub does`).choices(ce.options).default(_e)).addOption(new g(`--order <direction>`,`Ascending or descending`).choices(ie).default(`asc`)),20)).action(async(e,t)=>{let{listProjects:n}=await import(`./project-C5_rCWCh.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-C5_rCWCh.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-C5_rCWCh.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(u)).addOption(new g(`--instruction <text>`,`Replace the instruction with this text`).argParser(b(d)).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-C5_rCWCh.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-C5_rCWCh.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-D17oXXhL.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`,`
|
|
56
67
|
A link starts fetching its snapshot as soon as it is added; \`project sources\`
|
|
57
68
|
shows it as pending until the snapshot is ready.
|
|
58
69
|
|
|
59
70
|
Examples:
|
|
60
71
|
entrydesk project sources-add 1 ./brief.pdf
|
|
61
|
-
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-C-W8gjLg.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-C-W8gjLg.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-C-W8gjLg.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-C-W8gjLg.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-DnIuy1T0.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
|
+
A long source comes back one capped page at a time: repeat the read with the
|
|
74
|
+
offset it reported until the output is no longer truncated. For a task the
|
|
75
|
+
offset counts newest messages to skip; for a file or a link snapshot it is a
|
|
76
|
+
position in the stored text, reported together with a revision — only ever
|
|
77
|
+
pass back what the server reported, and pass back both.
|
|
78
|
+
|
|
62
79
|
Only text reaches stdout. A file with no text to extract, and a link whose
|
|
63
80
|
snapshot is still being fetched or failed, print nothing there — the reason
|
|
64
81
|
goes to stderr and the exit code is non-zero, so a pipe never carries an
|
|
@@ -66,7 +83,8 @@ explanation where the content should be.
|
|
|
66
83
|
|
|
67
84
|
Examples:
|
|
68
85
|
entrydesk project context-read 1 file <fileId> > brief.md
|
|
69
|
-
entrydesk project context-read 1 task <taskId> --full`)).action(async(e,t,n,r,i)=>{let{readProjectContext:a}=await import(`./project-context-VlX5GZxr.js`);await a(e,t,n,i.optsWithGlobals())}),Le(t,H),Re(t)}function Be(e){let t=e.command(`recordings`).summary(`List, import, retry, and manage recordings`).helpGroup(F.build).addHelpText(`after`,"\nNote: full transcripts live in `entrydesk meeting transcript <recordingId>`.");A(j(t.command(`list`,{isDefault:!0}).description(`List recordings`).option(`--search <query>`,`Filter by title/transcript`,S(200)),20)).action(async(e,t)=>{let{listRecordings:n}=await import(`./recordings-_HnTtukO.js`);await n(t.optsWithGlobals())}),A(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-_HnTtukO.js`);await r(e,n.optsWithGlobals())}),A(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-_HnTtukO.js`);await r(e,n.optsWithGlobals())}),A(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-_HnTtukO.js`);await r(e,n.optsWithGlobals())}),A(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-_HnTtukO.js`);await r(e,n.optsWithGlobals())}),A(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-_HnTtukO.js`);await r(e,n.optsWithGlobals())}),A(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-_HnTtukO.js`);await r(e,n.optsWithGlobals())})}const Ve=[...new Set(f.map(e=>e.toolApprovalMode))],He=[...new Set(f.map(e=>e.approvalHandling))];function K(e){return e.addOption(new v(`--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(Ve)).addOption(new v(`--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(He)).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 q(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 v(`--repeat-type <type>`,`Repeat unit`).choices(fe)).option(`--every <n>`,`Repeat every N units`,b(1,1e3)).option(`--time <HH:MM>`,`Time of day (days, weeks, months)`,D).option(`--times <HH:MM,...>`,`Multiple daily trigger times (days only)`,O).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)`,Ee)}function Ue(e){let t=e.command(`schedules`).summary(`Create and manage scheduled tasks`).helpGroup(F.build);A(t.command(`list`,{isDefault:!0}).description(`List schedules`)).action(async(e,t)=>{let{listSchedules:n}=await import(`./schedules-DACWrdY_.js`);await n(t.optsWithGlobals())}),A(t.command(`get`).description(`Show schedule details`).argument(`<scheduleId>`,`Schedule to show`)).action(async(e,t,n)=>{let{showSchedule:r}=await import(`./schedules-DACWrdY_.js`);await r(e,n.optsWithGlobals())}),A(K(q(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-DACWrdY_.js`);await n(t.optsWithGlobals())}),A(K(q(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`,b(1,2**53-1)).option(`--starts-at <datetime>`,`Start time, ISO 8601`)))).action(async(e,t,n)=>{let{editSchedule:r}=await import(`./schedules-DACWrdY_.js`);await r(e,n.optsWithGlobals())}),A(t.command(`activate`).description(`Resume a paused schedule`).argument(`<scheduleId>`,`Schedule to activate`)).action(async(e,t,n)=>{let{setScheduleActive:r}=await import(`./schedules-DACWrdY_.js`);await r(e,!0,n.optsWithGlobals())}),A(t.command(`pause`).description(`Pause an active schedule`).argument(`<scheduleId>`,`Schedule to pause`)).action(async(e,t,n)=>{let{setScheduleActive:r}=await import(`./schedules-DACWrdY_.js`);await r(e,!1,n.optsWithGlobals())}),A(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-DACWrdY_.js`);await r(e,n.optsWithGlobals())}),A(M(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-DACWrdY_.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-DACWrdY_.js`);await t(e)}),A(t.command(`calendars`).description(`List connected calendar accounts`)).action(async(e,t)=>{let{listCalendarAccounts:n}=await import(`./schedules-DACWrdY_.js`);await n(t.optsWithGlobals())})}function We(e){A(e.command(`login`).summary(`Log in to EntryDesk`).helpGroup(F.setup)).action(async(e,t)=>{let{runLogin:n}=await import(`./login-ACaFCfsh.js`);await n(t.optsWithGlobals())})}function Ge(e){e.command(`logout`).summary(`Log out and clear credentials`).helpGroup(F.setup).action(async()=>{let{runLogout:e}=await import(`./logout-BX4YsOqw.js`);await e()})}function Ke(e){A(e.command(`status`).summary(`Show who you are logged in as`).helpGroup(F.setup)).action(async(e,t)=>{let{runStatus:n}=await import(`./status-ErhWpQxW.js`);await n(t.optsWithGlobals())})}function qe(e){A(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(F.workspace)).action(async(e,t)=>{let{runModels:n}=await import(`./models-CkepW_-c.js`);await n(t.optsWithGlobals())})}function Je(e){e.command(`version`).summary(`Show the version number`).helpGroup(F.setup).action(()=>console.log(e.version()))}function Ye(e){A(e.command(`update`).summary(`Update the CLI to the latest version`).helpGroup(F.setup).option(`--check`,`Only check for a newer version, don't install`)).action(async(e,t)=>{let{runUpdate:n}=await import(`./update-D09UponU.js`);await n(t.optsWithGlobals())})}function Xe(e){e.command(`mcp-server`).summary(`Start the MCP server (stdio or HTTP)`).helpGroup(F.setup).option(`--http`,`Serve over HTTP instead of stdio`).option(`-p, --port <number>`,`Port to listen on`,b(1,65535)).action(async e=>{let{startMcpServer:t}=await import(`./mcp-DOUHU2_Z.js`);await t({mode:e.http?`http`:`stdio`,port:e.port})})}function J(e){return e.option(`-g, --global`,`Act at user (global) scope instead of the project`)}function Y(e){return e.option(`-a, --agent <agentId>`,`Restrict install to specific agents (repeatable; '*' for all)`,Se)}function Ze(e){let t=e.command(`skills`).summary(`List, upload, version, toggle, and share skills`).helpGroup(F.build);A(J(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-BenhDHKq.js`);await n(t.optsWithGlobals())}),A(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(t.command(`toggle`).description(`Enable or disable a skill for yourself`).argument(`<skillId>`,`Skill to toggle`).addOption(new v(`--enable`,`Turn the skill on`).conflicts(`disable`)).option(`--disable`,`Turn the skill off`)).action(async(e,t,n)=>{let{toggleSkill:r}=await import(`./skills-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(P(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-BenhDHKq.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-BenhDHKq.js`);await t(e)}),A(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(Y(J(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(Y(J(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(J(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(J(t.command(`status`).description(`Show local vs workspace drift`))).action(async(e,t)=>{let{showSkillsStatus:n}=await import(`./skills-BenhDHKq.js`);await n(t.optsWithGlobals())}),A(J(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(J(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-BenhDHKq.js`);await r(e,n.optsWithGlobals())}),A(J(t.command(`unlink`).description(`Remove the workspace binding`))).action(async(e,t)=>{let{runSkillsUnlink:n}=await import(`./commands-FVFeS1MV.js`);n(t.optsWithGlobals())})}function Qe(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(F.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`,b(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 v(`--output <mode>`,`Stream events as JSON`).choices(g)).option(`--full-output`,`Show full tool outputs`).option(`--file-system`,`Enable local file operations`).option(`--no-file-system`,`Disable local file operations`).addOption(new v(`--tool-approval-mode <mode>`,`Defaults to the mode /approval saved. Non-interactive runs deny every approval they are asked for`).choices(ce.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`,`
|
|
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`,`
|
|
70
88
|
Working inside a project:
|
|
71
89
|
--project files the new task in that project, so the turn starts from the
|
|
72
90
|
project instruction and its members can be given access. The AI answers as
|
|
@@ -99,7 +117,7 @@ Examples:
|
|
|
99
117
|
List available models: entrydesk models
|
|
100
118
|
List available agents: entrydesk agents
|
|
101
119
|
List recent tasks: entrydesk tasks
|
|
102
|
-
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-C8PttINZ.js`);await i({...e,interactive:e.interactive??!r})})}function tt(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`,`
|
|
103
121
|
Examples:
|
|
104
122
|
entrydesk tasks # List recent tasks
|
|
105
123
|
entrydesk tasks -q "deploy" --limit 20 # Search tasks
|
|
@@ -107,18 +125,35 @@ Examples:
|
|
|
107
125
|
entrydesk tasks <taskId> --full-output # …with full tool outputs
|
|
108
126
|
entrydesk tasks -s <shareId> # View a shared task
|
|
109
127
|
entrydesk tasks --project 2 # Tasks you can see in project 2
|
|
110
|
-
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-dv0gJ38_.js`);await r(e,n.optsWithGlobals())})}function nt(e){let t=e.command(`tool`).summary(`Discover, inspect, and call tools`).helpGroup(P.chat).addHelpText(`after`,`
|
|
129
|
+
Find a tool: entrydesk tool search "send a group chat message"
|
|
130
|
+
Inspect it: entrydesk tool get <name> --json
|
|
131
|
+
Run it: entrydesk tool call <name> --input-file input.json --json
|
|
132
|
+
|
|
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-kEevHrsQ.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
|
+
Examples:
|
|
136
|
+
entrydesk tool search "send a group chat message" --json
|
|
137
|
+
entrydesk tool search "read a spreadsheet" --namespace google_drive --json
|
|
138
|
+
|
|
139
|
+
JSON output includes matched tools, schemas, connection status, and provider
|
|
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-kEevHrsQ.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-kEevHrsQ.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`,`
|
|
111
142
|
Input priority:
|
|
112
143
|
1. --input (direct JSON string)
|
|
113
144
|
2. --input-file (read from file)
|
|
114
145
|
3. stdin (piped input)
|
|
115
146
|
|
|
147
|
+
Find tools with entrydesk tool search "<English query>" and inspect their
|
|
148
|
+
input schemas with entrydesk tool get <name> --json. A tool does not need to
|
|
149
|
+
appear in tool list before it can be called.
|
|
150
|
+
|
|
116
151
|
Examples:
|
|
117
152
|
entrydesk tool call agent__search_agents --input '{"limit": 5}'
|
|
118
153
|
entrydesk tool call agent__search_agents --input-file input.json
|
|
119
|
-
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-kEevHrsQ.js`);await r(e,n.optsWithGlobals())})}function rt(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(pe).default(`cost`))).action(async(e,t)=>{let{showUsageSummary:n}=await import(`./usage-CHIhyA8S.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-CHIhyA8S.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-CHIhyA8S.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-CHIhyA8S.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(ve).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-C1xGe42N.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-C1xGe42N.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-C1xGe42N.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-CHIhyA8S.js`);await t(e)})}function it(e){let t=e.command(`workflow`).summary(`Create, run, and manage workflows`).helpGroup(P.build).addHelpText(`after`,`
|
|
120
155
|
Examples:
|
|
121
156
|
entrydesk workflow list --search report
|
|
122
157
|
entrydesk workflow create --name "Nightly report" --file ./report.js
|
|
123
158
|
entrydesk workflow run <workflowId> --args '{"date":"2026-06-20"}' --wait
|
|
124
|
-
entrydesk workflow run-get <workflowId> <runId>`);
|
|
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-DWmgcRJ_.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-DWmgcRJ_.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-DWmgcRJ_.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-DWmgcRJ_.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-DWmgcRJ_.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-DWmgcRJ_.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-DWmgcRJ_.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-DWmgcRJ_.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-3PFiXy1I.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-3PFiXy1I.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 at(e){X(e)&&!Z(e,`--json`)&&e.addOption(new g(`--json`).hideHelp()),Z(e,`--profile`)||e.addOption(new g(O).hideHelp())}function ot(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||at(e),X(e)&&ot(e);for(let t of e.commands)t.name()!==`help`&&$(t,!1)}function st(e){let t=e.optsWithGlobals().profile;return typeof t==`string`?t:void 0}function ct(e){let t=e;for(;t.parent?.parent;)t=t.parent;return t.name()}function lt(){let e=Oe();return e.hook(`preAction`,(e,t)=>{if(ct(t)===`profile`)return;let n=st(t)??f.getCurrentProfileName();f.ensureProfileExists(n),f.setOverrideProfile(n)}),et(e),tt(e),nt(e),ke(e),Ke(e),qe(e),Je(e),Y(e),Ye(e),Pe(e),Fe(e),Ve(e),it(e),Ie(e),$e(e),Ge(e),He(e),Le(e),rt(e),Me(e),Ae(e),Ne(e),Re(e),Xe(e),Ze(e),Qe(e),$(e,!0),e}try{await lt().parseAsync(process.argv)}catch(e){de(e)}export{};
|
|
@@ -1,2 +1,10 @@
|
|
|
1
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
|
+
}
|
|
2
10
|
import e from"node:fs";import t from"node:path";const n=[{id:`claude-code`,displayName:`Claude Code`,skillsSubdir:t.join(`.claude`,`skills`),rootMarker:`.claude`},{id:`codex`,displayName:`Codex`,skillsSubdir:t.join(`.codex`,`skills`),rootMarker:`.codex`},{id:`cursor`,displayName:`Cursor`,skillsSubdir:t.join(`.cursor`,`skills`),rootMarker:`.cursor`},{id:`universal`,displayName:`Universal (.agents)`,skillsSubdir:t.join(`.agents`,`skills`),rootMarker:`.agents`}];function r(e,n){return t.join(n,e.skillsSubdir)}function i(r){let i=n.filter(n=>n.id===`universal`||e.existsSync(t.join(r,n.rootMarker)));return i.length>0?i:n.filter(e=>e.id===`universal`)}function a(t){let n;try{n=e.lstatSync(t)}catch{return}n.isSymbolicLink()?e.unlinkSync(t):n.isDirectory()?e.rmSync(t,{recursive:!0,force:!0}):e.rmSync(t,{force:!0})}function o(n,r,i,o=`symlink`){let s=t.basename(t.dirname(r))||r,c=t.join(r,i);if(e.mkdirSync(r,{recursive:!0}),a(c),o===`symlink`)try{let i=t.relative(r,n);return e.symlinkSync(i,c,process.platform===`win32`?`junction`:`dir`),{agentId:s,linkPath:c,mode:`symlink`,ok:!0}}catch{}try{return e.cpSync(n,c,{recursive:!0}),{agentId:s,linkPath:c,mode:`copy`,ok:!0}}catch(e){return{agentId:s,linkPath:c,mode:`copy`,ok:!1,error:e instanceof Error?e.message:String(e)}}}function s(n,r){let i=t.join(n,r);try{e.lstatSync(i)}catch{return!1}return a(i),!0}function c(n,r){let i;try{i=e.lstatSync(n)}catch{return!1}return i.isSymbolicLink()?t.resolve(t.dirname(n),e.readlinkSync(n))===t.resolve(r):!1}function l(e,t){return t&&t.length>0?t.includes(`*`)?[...n]:n.filter(e=>t.includes(e.id)):i(e)}function u(e,t,n,i=`symlink`,a){return l(n,a).map(a=>o(e,r(a,n),t,i))}export{s as a,c as i,r as n,u as r,n 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{T as e,pt as t}from"./profile-storage-CPg61h-2.js";import{o as n}from"./resolve-Czx_OkYk.js";import{t as r}from"./stdin-B18x8pUF.js";import{readFileSync as i}from"node:fs";async function a(t,a){if(t===`-`)return r();try{return i(t,`utf8`)}catch{throw new n(`${a}_file_unreadable`,`Cannot read ${a} file: ${e(t)}`)}}async function o(e){let r=e.instructionFile===void 0?e.instruction:await a(e.instructionFile,`instruction`);if(r!==void 0&&r.length>1e4)throw new n(`project_field_too_long`,`Instruction is too long: the maximum is ${t} characters.`);return r}export{o as n,a 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
|
+
function e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}export{e as t};
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
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{C as e,E as t,_ as n,b as r,h as i,k as a,m as o,y as s}from"./profile-storage-CPg61h-2.js";async function c(c){let l=n();if(l){c.json?console.log(JSON.stringify({alreadyAuthenticated:!0,authSource:`sandbox-env`,workspaceId:l.workspaceId})):(console.log(`Already authenticated via ${i}.`),console.log(`No login required — environment credentials are active.`));return}s()&&console.error(`Warning: ENTRYDESK_TOKEN is set — workspace commands will keep using it instead of the credentials saved by this login. Unset ENTRYDESK_TOKEN if you want this login to take effect.`),process.env.DEBUG&&(console.log(`[DEBUG] Hub URL: ${a()}`),console.log(`[DEBUG] API URL: ${t()}`));let u=await o({onDeviceCodeReceived:(e,t)=>{c.json||(console.log(``),console.log(`To finish logging in:`),console.log(``),console.log(` 1. Visit: ${t}`),console.log(` 2. Enter code: ${e}`),console.log(``))},onBrowserOpening:()=>{c.json||console.log(`Opening browser…`)},onWaitingForAuthorization:()=>{c.json||console.log(`Waiting for authorization…`)},onAuthorized:()=>{c.json||console.log(`Authorization successful.`)},onWarning:e=>{console.error(`Warning: ${e}`)}}),{workspaces:d}=await new r().getWorkspaces(u.accessToken),f=d[0];await e.saveAll({accessToken:u.accessToken,refreshToken:u.refreshToken,email:u.email,workspaceId:f?.id}),c.json?console.log(JSON.stringify({email:u.email,workspaceId:f?.id,workspaceName:f?.name,server:t()})):(console.log(`Logged in as ${u.email}`),f&&console.log(`Workspace: ${f.name}`),console.log(`Server: ${t()}`))}export{c as runLogin};
|
|
@@ -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{C as e,b as t,p as n}from"./profile-storage-CPg61h-2.js";async function r(){let r=await e.getAll();if(!r){console.log(`Not logged in.`);return}try{r.refreshToken&&await new t().revokeOAuthToken({token:r.refreshToken,clientId:n})}catch{}await e.clear(),console.log(`Logged out.`)}export{r as runLogout};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
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,b as t,u as n}from"./profile-storage-CPg61h-2.js";import{isHTTPError as r}from"ky";function i(e){return r(e)&&e.response.status===404}var a=class extends Error{slug;constructor(e){super(`"${e}" matches both an agent and a skill`),this.slug=e,this.name=`AmbiguousResourceError`}},o=class extends Error{slug;constructor(e){super(`Marketplace resource not found: ${e}`),this.slug=e,this.name=`ResourceNotFoundError`}};async function s(e){try{return await e}catch(e){if(i(e))return null;throw e}}async function c(e,t,n){if(n===`agent`)return{type:n,view:await e.getMarketplaceAgent(t)};if(n===`skill`)return{type:n,view:await e.getMarketplaceSkill(t)};let[r,i]=await Promise.all([s(e.getMarketplaceAgent(t)),s(e.getMarketplaceSkill(t))]);if(r&&i)throw new a(t);if(r)return{type:`agent`,view:r};if(i)return{type:`skill`,view:i};throw new o(t)}async function l(e,t){try{return await t()}catch(t){throw t instanceof a&&(console.error(`"${t.slug}" matches both an agent and a skill. Re-run with --type agent|skill.`),process.exit(1)),(t instanceof o||i(t))&&(console.error(`Marketplace resource not found: ${e}`),process.exit(1)),t}}async function u(e,n){let r=await new t().searchMarketplace({type:n.type,tag:e??n.tag,limit:n.limit,cursor:n.cursor});if(n.json){console.log(JSON.stringify(r));return}if(r.items.length===0){console.log(`No marketplace resources found.`);return}console.log(`Marketplace (${r.items.length}):\n`);for(let e of r.items)console.log(` ${e.name} [${e.type}]`),console.log(` Slug: ${e.slug}`),e.description&&console.log(` ${e.description}`),e.tags.length>0&&console.log(` Tags: ${e.tags.map(e=>e.label).join(`, `)}`),console.log(``);r.nextCursor&&console.log(`More results: --cursor ${r.nextCursor}`)}async function d(e,n){let{type:r,view:i}=await l(e,()=>c(new t,e,n.type));if(n.json){console.log(JSON.stringify(i));return}if(console.log(`${i.name} [${r}]`),console.log(`Slug: ${i.slug}`),i.description&&console.log(`\n${i.description}`),i.tags.length>0&&console.log(`\nTags: ${i.tags.map(e=>e.label).join(`, `)}`),r===`agent`){if(i.starterPrompts.length>0){console.log(`
|
|
3
11
|
Starter prompts:`);for(let e of i.starterPrompts)console.log(` - ${e}`)}if(i.connectors.length>0){console.log(`
|
|
4
12
|
Connectors:`);for(let e of i.connectors)console.log(` - ${e.name} (${e.provider})`)}}console.log(`\nInstall with: entrydesk marketplace install ${i.slug} --type ${r}`)}async function f(r,i){let a=new t,{accessToken:o,workspaceId:s}=await n(),{type:u}=i.type?{type:i.type}:await l(r,()=>c(a,r)),d=await l(r,()=>a.installMarketplaceResource(o,s,u,r,e.getToolApprovalMode()??void 0));if(i.json){console.log(JSON.stringify(d));return}console.log(`Installed ${u} "${r}" into the workspace.`),console.log(` ${u} ID: ${d.resourceId}`),d.taskId&&(console.log(` Setup task: ${d.taskId}`),console.log(` Continue setup: entrydesk tasks ${d.taskId}`))}async function p(e){let{items:n}=await new t().listMarketplaceRoles();if(e.json){console.log(JSON.stringify(n));return}if(n.length===0){console.log(`No marketplace roles found.`);return}console.log(`Marketplace roles (${n.length}):\n`);for(let e of n)console.log(` ${e.tag} ${e.name}`),e.tagline&&console.log(` ${e.tagline}`)}export{f as installMarketplaceResource,u as searchMarketplace,d as showMarketplaceResource,p as showMarketplaceRoles};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
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{C as e,D as t,d as n,f as r,u as i}from"./profile-storage-CPg61h-2.js";import{r as a,t as o}from"./mcp-client-EK-Fh8gM.js";import s from"node:http";import{stderr as c}from"node:process";import{NodeStreamableHTTPServerTransport as l}from"@modelcontextprotocol/node";import{Server as u}from"@modelcontextprotocol/server";import{StdioServerTransport as d}from"@modelcontextprotocol/server/stdio";function f(e){c.write(`${e}\n`)}function p(e,t,n){return o({apiUrl:e,accessToken:t,workspaceId:n,name:`entrydesk-cli-proxy`})}function m(e){let t=new u({name:`entrydesk-cli`,version:`1.0.0`},{capabilities:{tools:{}}});return t.setRequestHandler(`tools/list`,async(t,n)=>({tools:(await(await e()).listTools({},a({signal:n.mcpReq.signal}))).tools})),t.setRequestHandler(`tools/call`,async(t,n)=>{let{name:r,arguments:i}=t.params,{progressToken:o}=n.mcpReq._meta??{},s=await(await e()).callTool({name:r,arguments:i},a({signal:n.mcpReq.signal,onProgress:o===void 0?void 0:e=>{n.mcpReq.notify({method:`notifications/progress`,params:{...e,progressToken:o}}).catch(()=>{})}})),c=Array.isArray(s.content)?[...s.content]:[];return s.structuredContent&&c.push({type:`text`,text:JSON.stringify(s.structuredContent,null,2)}),{content:c,structuredContent:s.structuredContent,isError:s.isError}}),t}async function h(e,t,n){let r=s.createServer(async(t,n)=>{if(t.method===`OPTIONS`){n.setHeader(`Access-Control-Allow-Origin`,`*`),n.setHeader(`Access-Control-Allow-Methods`,`GET, POST, DELETE, OPTIONS`),n.setHeader(`Access-Control-Allow-Headers`,`Content-Type, Accept`),n.writeHead(204),n.end();return}if(t.url!==`/mcp`){n.writeHead(404,{"Content-Type":`application/json`}),n.end(JSON.stringify({error:`Not found`}));return}let r=m(e),i=new l({sessionIdGenerator:void 0});if(n.setHeader(`Access-Control-Allow-Origin`,`*`),n.on(`close`,()=>{i.close(),r.close()}),await r.connect(i),t.method===`POST`){let e=``;t.on(`data`,t=>{e+=t.toString()}),t.on(`end`,async()=>{try{let r=JSON.parse(e);await i.handleRequest(t,n,r)}catch{n.writeHead(400,{"Content-Type":`application/json`}),n.end(JSON.stringify({error:`Invalid JSON`}))}})}else await i.handleRequest(t,n)});r.listen(n,()=>{f(`EntryDesk MCP server running at http://localhost:${n}/mcp`),f(`Press Ctrl+C to stop`)}),process.on(`SIGINT`,async()=>{f(`
|
|
3
11
|
Shutting down…`),r.close(),await t(),process.exit(0)}),process.on(`SIGTERM`,async()=>{r.close(),await t(),process.exit(0)})}async function g(e,t){let n=m(e),r=new d;r.onclose=async()=>{await t()},await n.connect(r)}const _={mode:`stdio`};async function v(a=_){process.on(`unhandledRejection`,e=>{console.error(`[entrydesk-mcp] Unhandled rejection:`,e)}),process.on(`uncaughtException`,e=>{console.error(`[entrydesk-mcp] Uncaught exception:`,e)});try{f(`[entrydesk-mcp] Starting MCP server…`);let o,s;try{let e=await i();o=e.accessToken,s=e.workspaceId}catch(e){let t=e instanceof Error?e.message:`Authentication failed`;console.error(t),process.exit(1)}let{apiUrl:c,mcp:l}=t();f(`[entrydesk-mcp] Connecting to ${c}…`),f(`[entrydesk-mcp] Workspace: ${s}`);let u=await p(c,o,s);f(`[entrydesk-mcp] Connected to EntryDesk API`);let d=null,m=async()=>n(o)?d||(d=(async()=>{f(`[entrydesk-mcp] Token expiring soon, refreshing…`);let t=await e.getAll();if(!t?.accessToken)throw Error("Not logged in. Run `entrydesk login` again.");let n=await r(t);if(n!==o){o=n;try{await u.close()}catch{}u=await p(c,o,s),f(`[entrydesk-mcp] Token refreshed, reconnected`)}return u})().finally(()=>{d=null}),d):u,_=async()=>{try{await u.close()}catch{}};a.mode===`http`?await h(m,_,a.port??l.httpPort):(f(`[entrydesk-mcp] Starting stdio server…`),await g(m,_),f(`[entrydesk-mcp] Stdio server started`))}catch(e){console.error(`[entrydesk-mcp] Fatal error:`,e),process.exit(1)}}export{v as startMcpServer};
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
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{A as e,D as t,S as n,u as r}from"./profile-storage-CPg61h-2.js";import{Client as i,StreamableHTTPClientTransport as a}from"@modelcontextprotocol/client";const o=()=>{};function s(t={}){let{requestTimeout:n,requestMaxTotalTimeout:r}=e();return{timeout:n,maxTotalTimeout:r,resetTimeoutOnProgress:!0,onprogress:t.onProgress??o,signal:t.signal}}async function c(e={}){let o=e.apiUrl,s=e.accessToken,c=e.workspaceId;if(!s||!c){let e=await r();s||=e.accessToken,c||=e.workspaceId}o||=t().apiUrl;let l=new i({name:e.name??`entrydesk-cli`,version:`1.0.0`},{versionNegotiation:{mode:`auto`}}),u=new a(new URL(`${o}/v1/workspaces/${c}/mcp`),{requestInit:{headers:{Authorization:`Bearer ${s}`,...n()}}});return await l.connect(u),l}async function l(){return c()}export{l as n,s as r,c as t};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
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{L as e,b as t,u as n}from"./profile-storage-CPg61h-2.js";import{n as r}from"./format-DCvznP70.js";import{t as i}from"./paginate-Brd-j5V8.js";function a(e){return!e||e<=0?``:`${Math.round(e/60)}m`}function o(e){console.log(`Meetings (${e.length}):\n`);for(let t of e){let e=[`(${t.status??`unknown`})`],n=r(t.startTime??t.sortTime);n&&e.push(n),t.hasRecordings&&e.push(`🎙️`),e.push(t.isOwner?`owner`:t.myRole),console.log(` ${t.title}`),console.log(` ${e.join(` · `)}`),t.processingStatus&&console.log(` processing: ${t.processingStatus}`),console.log(` ID: ${t.id}`),console.log(``)}}function s(e){if(console.log(`${e.title}\n`),console.log(` ID: ${e.id}`),console.log(` Status: ${e.status}`),console.log(` Visibility: ${e.visibility}`),console.log(` Source: ${e.source}`),e.myRole&&console.log(` My role: ${e.isOwner?`owner`:e.myRole}`),e.startTime&&console.log(` Start: ${r(e.startTime)}`),e.endTime&&console.log(` End: ${r(e.endTime)}`),e.location&&console.log(` Location: ${e.location}`),e.conferenceLink&&console.log(` Conference: ${e.conferenceLink}`),e.participants&&e.participants.length>0){console.log(` Participants (${e.participants.length}):`);for(let t of e.participants){let e=t.displayName??t.email;console.log(` - ${e}${t.role?` (${t.role})`:``}`)}}e.summary&&console.log(`\n Summary:\n${e.summary}`);let t=e.recordings??[];if(console.log(`\n Recordings (${t.length}):`),t.length===0){console.log(` (none)`);return}for(let e of t){let t=[];e.processingStatus&&t.push(e.processingStatus);let n=a(e.duration);n&&t.push(n),e.hasTranscript&&t.push(`transcript✓`),e.hasSummary&&t.push(`summary✓`),console.log(` - ${e.title}`),t.length>0&&console.log(` ${t.join(` · `)}`),console.log(` ID: ${e.id}`)}}function c(e){if(console.log(`Visibility: ${e.visibility}\n`),console.log(`User grants (${e.userGrants.length}):`),e.userGrants.length===0)console.log(` (none)`);else for(let t of e.userGrants)console.log(` - ${t.userName} <${t.userEmail}> · ${t.role}`),console.log(` ID: ${t.userId}`);if(console.log(`\nTeam grants (${e.teamGrants.length}):`),e.teamGrants.length===0)console.log(` (none)`);else for(let t of e.teamGrants)console.log(` - ${t.teamName} (${t.memberCount} members) · ${t.role}`),console.log(` ID: ${t.teamId}`)}async function l(e){let{accessToken:r,workspaceId:a}=await n(),s=new t,c={search:e.search,filter:e.filter,sortBy:e.sort};if(e.all){let t=await i(async t=>{let n=await s.getMeetings(r,a,{limit:e.limit??20,nextKey:t,...c});return{items:n.meetings,nextKey:n.nextKey}});if(e.json){console.log(JSON.stringify({meetings:t}));return}if(t.length===0){console.log(`No meetings found in this workspace.`);return}o(t);return}let{meetings:l,nextKey:u}=await s.getMeetings(r,a,{limit:e.limit,nextKey:e.nextKey,...c});if(e.json){console.log(JSON.stringify({meetings:l,nextKey:u}));return}if(l.length===0){console.log(`No meetings found in this workspace.`);return}o(l),u&&console.log(`Next page: --next-key ${u}`)}async function u(e,r){let{accessToken:i,workspaceId:a}=await n(),o=await new t().getMeeting(i,a,e);if(r.json){console.log(JSON.stringify(o));return}s(o)}async function d(e){let{accessToken:r,workspaceId:i}=await n(),a={title:e.title};e.description!==void 0&&(a.description=e.description),e.location!==void 0&&(a.location=e.location),e.start!==void 0&&(a.startTime=e.start),e.end!==void 0&&(a.endTime=e.end),e.conferenceLink!==void 0&&(a.conferenceLink=e.conferenceLink),e.notes!==void 0&&(a.notes=e.notes);let o=await new t().createMeeting(r,i,a);if(e.json){console.log(JSON.stringify(o));return}console.log(`Created meeting: ${o.title}`),console.log(` ID: ${o.id}`)}async function f(e,r){let i={};r.title!==void 0&&(i.title=r.title),r.description!==void 0&&(i.description=r.description),r.location!==void 0&&(i.location=r.location),r.start!==void 0&&(i.startTime=r.start),r.end!==void 0&&(i.endTime=r.end),r.conferenceLink!==void 0&&(i.conferenceLink=r.conferenceLink),r.notes!==void 0&&(i.notes=r.notes),r.status!==void 0&&(i.status=r.status),r.visibility!==void 0&&(i.visibility=r.visibility),Object.keys(i).length===0&&(console.error(`No fields provided to update.`),process.exit(1));let{accessToken:a,workspaceId:o}=await n(),s=await new t().updateMeeting(a,o,e,i);if(r.json){console.log(JSON.stringify(s));return}console.log(`Updated meeting: ${e}`)}async function p(e,r){let{accessToken:i,workspaceId:a}=await n();if(await new t().deleteMeeting(i,a,e),r.json){console.log(JSON.stringify({id:e,deleted:!0}));return}console.log(`Deleted meeting: ${e}`)}async function m(r,i){let{accessToken:a,workspaceId:o}=await n(),s=e(await new t().getMeeting(a,o,r));if(i.json){console.log(JSON.stringify({summary:s??null}));return}s||(console.error(`This meeting has no summary yet.`),process.exit(1)),console.log(s)}async function h(e,r){let{accessToken:i,workspaceId:a}=await n(),o=await new t().getRecording(i,a,e),s=r.raw?o.transcriptWithTimestamps:o.transcript;if(r.json){console.log(JSON.stringify({transcript:s,processingStatus:o.processingStatus}));return}s||(console.error(o.processingStatus&&o.processingStatus!==`completed`?`Transcript not ready (processing status: ${o.processingStatus}).`:`This recording has no transcript.`),process.exit(1)),console.log(s)}async function g(e,i){let{accessToken:a,workspaceId:o}=await n(),{previous:s}=await new t().getMeetingPreviousBrief(a,o,e);if(i.json){console.log(JSON.stringify({previous:s}));return}if(!s){console.log(`No previous meeting found in this series.`);return}if(console.log(`Previous: ${s.title}`),s.startTime&&console.log(` ${r(s.startTime)}`),s.summary&&console.log(`\nSummary:\n${s.summary}`),s.actionItems.length>0){console.log(`
|
|
3
11
|
Action items:`);for(let e of s.actionItems){let t=e.completed?`[x]`:`[ ]`,n=e.assignee?` (@${e.assignee})`:``;console.log(` ${t} ${e.description}${n}`)}}}async function _(e,r){let{accessToken:i,workspaceId:a}=await n(),o=new t;if(r.addUser){let t=await o.upsertMeetingUserGrant(i,a,e,r.addUser,r.role);if(r.json){console.log(JSON.stringify(t));return}console.log(`Granted ${r.role} to user ${r.addUser}`);return}if(r.removeUser){if(await o.removeMeetingUserGrant(i,a,e,r.removeUser),r.json){console.log(JSON.stringify({userId:r.removeUser,removed:!0}));return}console.log(`Revoked access for user ${r.removeUser}`);return}if(r.addTeam){let t=await o.upsertMeetingTeamGrant(i,a,e,r.addTeam,r.role);if(r.json){console.log(JSON.stringify(t));return}console.log(`Granted ${r.role} to team ${r.addTeam}`);return}if(r.removeTeam){if(await o.removeMeetingTeamGrant(i,a,e,r.removeTeam),r.json){console.log(JSON.stringify({teamId:r.removeTeam,removed:!0}));return}console.log(`Revoked access for team ${r.removeTeam}`);return}if(r.visibility){let t=await o.updateMeeting(i,a,e,{visibility:r.visibility});if(r.json){console.log(JSON.stringify({visibility:t.visibility}));return}console.log(`Set visibility to ${t.visibility}`);return}let s=await o.getMeetingShares(i,a,e);if(r.json){console.log(JSON.stringify(s));return}c(s)}export{d as createMeeting,p as deleteMeeting,l as listMeetings,_ as shareMeeting,u as showMeeting,m as showMeetingSummary,h as showMeetingTranscript,g as showPreviousMeeting,f as updateMeeting};
|