@entrydesk/cli 1.23.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/agents-DFOYNMYK.js +43 -0
  2. package/dist/{billing-QKAGGKLE.js → billing-SAYH5EB7.js} +1 -1
  3. package/dist/{budget-VDIBB2G7.js → budget-VMRIKUAD.js} +1 -1
  4. package/dist/chunk-AJ4WRMUZ.js +97 -0
  5. package/dist/{chunk-YKH2UWFC.js → chunk-UWTX2MZZ.js} +2 -2
  6. package/dist/{config-ZZEWQRKI.js → config-DD5WRAEN.js} +1 -1
  7. package/dist/{config-EHPADRGK.js → config-TFD5BJJO.js} +1 -1
  8. package/dist/{config-help-MDC62DDX.js → config-help-DS2LTR5S.js} +1 -1
  9. package/dist/{connectors-NKSDT2HG.js → connectors-FHYWNO5W.js} +1 -1
  10. package/dist/index.js +1 -1
  11. package/dist/{login-O77HDVW3.js → login-CJAEUMVX.js} +1 -1
  12. package/dist/{logout-A7CYWGTM.js → logout-FQMPTUEL.js} +1 -1
  13. package/dist/{marketplace-CAXL5PH4.js → marketplace-LIW2SN7A.js} +5 -5
  14. package/dist/{mcp-D7GHEFAP.js → mcp-FW5USUH2.js} +3 -3
  15. package/dist/{meeting-QNPGY54E.js → meeting-5BTYIWGD.js} +1 -1
  16. package/dist/{models-BQT6MNN3.js → models-Y2Q2FX4V.js} +1 -1
  17. package/dist/{notifications-ZE4MQURK.js → notifications-4U7KBVDF.js} +1 -1
  18. package/dist/{profile-PQUC4VYR.js → profile-HEUIWMVW.js} +1 -1
  19. package/dist/{recordings-EIAQWZ6J.js → recordings-LKICUUCK.js} +1 -1
  20. package/dist/{schedules-LWXLUKOS.js → schedules-QZUI6HKS.js} +1 -1
  21. package/dist/skills-B5E2GJFV.js +30 -0
  22. package/dist/{status-XMD5WLMC.js → status-VF7DKVXN.js} +1 -1
  23. package/dist/{task-6B73YL3H.js → task-NMVJ4NDH.js} +50 -50
  24. package/dist/{tasks-7T7RUCWK.js → tasks-PDRHMFWK.js} +13 -13
  25. package/dist/tool-SF3NK5EN.js +35 -0
  26. package/dist/{usage-4F4AGUYD.js → usage-PVIH4OC6.js} +1 -1
  27. package/dist/{version-NNRXNHNM.js → version-4TEIO7G3.js} +1 -1
  28. package/dist/{workflow-LUR7AL3C.js → workflow-FXSMA7T3.js} +11 -11
  29. package/dist/{workspaces-65YARQ7K.js → workspaces-3KKM3FBA.js} +1 -1
  30. package/package.json +5 -5
  31. package/dist/agents-JCLIHY4P.js +0 -43
  32. package/dist/chunk-2QLV6WQA.js +0 -97
  33. package/dist/skills-INLQDLRZ.js +0 -30
  34. package/dist/tool-J25QCBER.js +0 -35
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env node
2
+ import{c as u}from"./chunk-AJ4WRMUZ.js";import{h as f,q as h,s as y}from"./chunk-UWTX2MZZ.js";import"./chunk-KURQCTT3.js";function m(){console.log(`
3
+ Usage: entrydesk agents [list|show|create|update|delete|publish|share] [options]
4
+
5
+ Commands:
6
+ list List available agents (default; --mine for your own)
7
+ show <agentId> Show one agent's full details
8
+ create Create a new agent
9
+ update <agentId> Update an agent you own
10
+ delete <agentId> Delete an agent you own
11
+ publish <agentId> Publish an agent to the workspace
12
+ share <agentId> Show or manage sharing (user grants)
13
+
14
+ Create/Update Options:
15
+ --name <name>
16
+ --description <text>
17
+ --system-prompt <text>
18
+ --model-id <modelId>
19
+ --connector-ids id1,id2
20
+ --capabilities sandbox,web_search,image_generation,chart
21
+ --conversation-starters s1,s2,s3
22
+ --tools prefix__tool1,prefix__tool2
23
+ --icon-id <iconId>
24
+
25
+ List Options:
26
+ --mine List agents you own/edit (with publish state)
27
+ --limit <number> Max agents per page; also page size for --all (default: 100)
28
+ --next-key <cursor> Fetch next page using cursor
29
+ --all Fetch all agents (auto-paginate)
30
+
31
+ Share Options:
32
+ --add-user <userId> Grant a user access (use with --role)
33
+ --remove-user <userId> Revoke a user's access
34
+ --role owner|editor|viewer Role for --add-user (default: viewer)
35
+
36
+ Flags:
37
+ --json Output JSON
38
+ `)}function I(e){if(!e)return[];let o=new Map([["sandbox","sandbox"],["web","web_search"],["web-search","web_search"],["web_search","web_search"],["image","image_generation"],["image-gen","image_generation"],["image_generation","image_generation"],["chart","chart"]]);return e.map(t=>o.get(t)??t)}function w(e){console.log(`Available Agents (${e.length}):
39
+ `);for(let o of e){if(console.log(` ${o.name} (${o.visibility})`),o.description){let t=o.description.length>80?`${o.description.slice(0,80)}...`:o.description;console.log(` ${t}`)}console.log(` ID: ${o.id}`),console.log("")}}function A(e){console.log(`My Agents (${e.length}):
40
+ `);for(let o of e){let t=[];o.latestVersionNumber!=null&&t.push(`v${o.latestVersionNumber}`),o.hasUnpublishedChanges&&t.push("unpublished changes");let s=t.length>0?` (${t.join(" \xB7 ")})`:"";if(console.log(` ${o.name}${s}`),o.description){let a=o.description.length>80?`${o.description.slice(0,80)}...`:o.description;console.log(` ${a}`)}console.log(` ${o.myRole??"no-role"} \xB7 ID: ${o.id}`),console.log("")}}function b(e){console.log(`${e.name}
41
+ `),console.log(` ID: ${e.id}`),e.visibility&&console.log(` Visibility: ${e.visibility}`),e.model&&console.log(` Model: ${e.model.name}`),e.author&&console.log(` Author: ${e.author.name}${e.author.isMe?" (you)":""}`),e.description&&console.log(` Description: ${e.description}`),e.capabilities&&e.capabilities.length>0&&console.log(` Capabilities: ${e.capabilities.join(", ")}`),e.connectors&&e.connectors.length>0&&console.log(` Connectors: ${e.connectors.map(o=>o.name).join(", ")}`),e.tools&&e.tools.length>0&&console.log(` Tools: ${e.tools.length}`),e.conversationStarters&&e.conversationStarters.length>0&&console.log(` Starters: ${e.conversationStarters.length}`),e.systemPrompt&&console.log(`
42
+ System Prompt:
43
+ ${e.systemPrompt}`)}function $(e){let o=u(e);if(console.log(`User grants (${o.length}):`),o.length===0){console.log(" (none)");return}for(let t of o)console.log(` - ${t.user.name} <${t.user.email}> \xB7 ${t.role}`),console.log(` ID: ${t.userId}`)}function x(e){return(!e.name||!e.description||!e.systemPrompt||!e.modelId)&&(console.error("Missing required fields for agent create/update."),m(),process.exit(1)),{name:e.name,description:e.description,systemPrompt:e.systemPrompt,modelId:e.modelId,connectorIds:e.connectorIds??[],capabilities:I(e.capabilities),conversationStarters:e.conversationStarters??[],tools:e.tools,iconId:e.iconId}}async function P(e){try{if(e.help){m();return}let o=await h(),{accessToken:t,workspaceId:s}=o,a=e.action||"list",r=new f;if(a==="show"){if(!e.agentId)throw new Error("Missing agentId for show command");let i=await r.getAgent(t,s,e.agentId);if(e.json){console.log(JSON.stringify(i));return}b(i);return}if(a==="publish"){if(!e.agentId)throw new Error("Missing agentId for publish command");if(await r.publishAgent(t,s,e.agentId),e.json){console.log(JSON.stringify({id:e.agentId,published:!0}));return}console.log(`Published agent to the workspace: ${e.agentId}`);return}if(a==="share"){if(!e.agentId)throw new Error("Missing agentId for share command");let i=e.agentId,n=e.role??"viewer";if(e.addUser){let c=await r.upsertAgentGrant(t,s,i,e.addUser,n);if(e.json){console.log(JSON.stringify(c));return}console.log(`Granted ${n} to user ${e.addUser}`);return}if(e.removeUser){if(await r.removeAgentGrant(t,s,i,e.removeUser),e.json){console.log(JSON.stringify({userId:e.removeUser,removed:!0}));return}console.log(`Revoked access for user ${e.removeUser}`);return}let l=await r.getAgentGrants(t,s,i);if(e.json){console.log(JSON.stringify(l));return}$(l);return}if(a==="create"){let i=x(e),n=await r.createAgent(t,s,i);if(e.json){console.log(JSON.stringify(n));return}console.log(`Created agent: ${n.name}`),console.log(` ID: ${n.id}`);return}if(a==="update"){let i=e.agentId;if(!i)throw new Error("Missing agentId for update command");let n=await r.getAgent(t,s,i),l={name:e.name??n.name,description:e.description??n.description,systemPrompt:e.systemPrompt??n.systemPrompt??"",modelId:e.modelId??n.model?.id??"",connectorIds:e.connectorIds??n.connectors?.map(c=>c.id)??[],capabilities:e.capabilities?I(e.capabilities):n.capabilities??[],conversationStarters:e.conversationStarters??n.conversationStarters??[],tools:e.tools??n.tools??[],iconId:e.iconId??n.iconId};await r.updateAgent(t,s,i,l),console.log(`Updated agent: ${i}`);return}if(a==="delete"){let i=e.agentId;if(!i)throw new Error("Missing agentId for delete command");await r.deleteAgent(t,s,i),console.log(`Deleted agent: ${i}`);return}if(a!=="list"&&(console.error(`Unknown agents command: ${a}`),m(),process.exit(1)),e.all&&e.nextKey&&(console.error("Cannot use --all and --next-key together."),process.exit(1)),e.mine){let i=[],n=e.all?void 0:e.nextKey,l=100;for(let c=0;;c++){c>=l&&(console.error(`Reached maximum page limit (${l}). Use --limit and --next-key for manual pagination.`),process.exit(1));let d=await r.getMyAgents(t,s,{limit:e.limit,nextKey:n});if(i.push(...d.agents),n=d.nextKey,!e.all||!n)break}if(e.json){console.log(JSON.stringify({agents:i,nextKey:n}));return}if(i.length===0){console.log("You have no agents in this workspace.");return}A(i),!e.all&&n&&console.log(`Next page: --next-key ${n}`);return}if(e.all){let n=[],l;for(let c=0;;c++){c>=100&&(console.error("Reached maximum page limit (100). Use --limit and --next-key for manual pagination."),process.exit(1));let d=await r.getAgents(t,s,{limit:e.limit??100,nextKey:l});if(n.push(...d.agents),l=d.nextKey,!l)break}if(e.json){console.log(JSON.stringify({agents:n}));return}if(n.length===0){console.log("No agents found in this workspace.");return}w(n);return}let{agents:g,nextKey:p}=await r.getAgents(t,s,{limit:e.limit,nextKey:e.nextKey});if(e.json){console.log(JSON.stringify({agents:g,nextKey:p}));return}if(g.length===0){console.log("No agents found in this workspace.");return}w(g),p&&console.log(`Next page: --next-key ${p}`)}catch(o){y(o)}}export{P as runAgents};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{h as u,i as p,r as m,t as d}from"./chunk-YKH2UWFC.js";import"./chunk-KURQCTT3.js";function f(){console.log(`
2
+ import{h as u,i as p,q as m,s as d}from"./chunk-UWTX2MZZ.js";import"./chunk-KURQCTT3.js";function f(){console.log(`
3
3
  Usage: entrydesk billing [status|invoices] [options]
4
4
 
5
5
  Commands:
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{h as c,r as a,t as d}from"./chunk-YKH2UWFC.js";import"./chunk-KURQCTT3.js";function p(){console.log(`
2
+ import{h as c,q as a,s as d}from"./chunk-UWTX2MZZ.js";import"./chunk-KURQCTT3.js";function p(){console.log(`
3
3
  Usage: entrydesk budget [get|set|clear] [options]
4
4
 
5
5
  Commands: