@entrydesk/cli 2.1.0-beta.4 → 2.2.0-beta

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 (97) hide show
  1. package/README.md +113 -30
  2. package/dist/add-A1EZKhMH.js +10 -0
  3. package/dist/agents-CZzVru0_.js +10 -0
  4. package/dist/billing-DHV0Wfwm.js +10 -0
  5. package/dist/budget-Dvl1Q6_g.js +10 -0
  6. package/dist/build-task-request-config-B_mlDg_c.js +10 -0
  7. package/dist/{commands-DRUlUd-I.js → commands-ghS7KAQr.js} +1 -1
  8. package/dist/commands-qNH4DlB_.js +10 -0
  9. package/dist/config-B3pbK-VP.js +11 -0
  10. package/dist/connectors-Dqa8qg7s.js +11 -0
  11. package/dist/file-upload-CgLvxPGL.js +24 -0
  12. package/dist/format-BaXJBAlk.js +10 -0
  13. package/dist/index.js +40 -25
  14. package/dist/{instruction-DYgn39xF.js → instruction-DaoJgFgE.js} +1 -1
  15. package/dist/login-CVUzJp76.js +10 -0
  16. package/dist/{logout-DnFBlXMZ.js → logout-B6Bb4w2Y.js} +1 -1
  17. package/dist/marketplace-C-7CArF7.js +12 -0
  18. package/dist/mcp-BnFLUTG-.js +11 -0
  19. package/dist/mcp-client-CPFC6TCy.js +10 -0
  20. package/dist/meeting-B5-UQSO3.js +11 -0
  21. package/dist/message-utils-DRHsMlj2.js +15 -0
  22. package/dist/models-pzt8nNX7.js +11 -0
  23. package/dist/notifications-Bo7oPqK5.js +10 -0
  24. package/dist/{paginate-Brd-j5V8.js → paginate-DetNe5nU.js} +1 -1
  25. package/dist/{paths-mBL9tt9p.js → paths-CLGwOhp4.js} +1 -1
  26. package/dist/profile-Cth2_rzi.js +10 -0
  27. package/dist/profile-storage-BVSyHoBn.js +68 -0
  28. package/dist/project-CPKxduou.js +10 -0
  29. package/dist/project-context-D8YawkvR.js +10 -0
  30. package/dist/project-governance-EFbI_Qan.js +10 -0
  31. package/dist/{project-sources-D17oXXhL.js → project-sources-CFgB4loh.js} +1 -1
  32. package/dist/project-sources-write-DUx1voCZ.js +10 -0
  33. package/dist/project-tasks-Bk8-wOyn.js +10 -0
  34. package/dist/{push-CJZLFEdk.js → push-4Y4mjxO7.js} +1 -1
  35. package/dist/recordings-DtgXMjp2.js +11 -0
  36. package/dist/remove-DUFnCuRT.js +10 -0
  37. package/dist/resolve-yAqzT64X.js +14 -0
  38. package/dist/{resource-grants-zAoqe73P.js → resource-grants-DMj0dy5m.js} +1 -1
  39. package/dist/schedules-6T2-994t.js +29 -0
  40. package/dist/skills-C56S2Z62.js +10 -0
  41. package/dist/status-BBvz4l0p.js +10 -0
  42. package/dist/status-DHllWQ7c.js +10 -0
  43. package/dist/task-Hcgf0oDf.js +110 -0
  44. package/dist/{tasks-dv0gJ38_.js → tasks-CLlI3fiV.js} +1 -1
  45. package/dist/tasks-D2CtxbpJ.js +22 -0
  46. package/dist/team-aQszguLF.js +11 -0
  47. package/dist/terminal-text-cBPBiP3x.js +10 -0
  48. package/dist/tool-CASBzR_z.js +17 -0
  49. package/dist/update-CSh9DfHK.js +10 -0
  50. package/dist/usage-BLPq7c6l.js +11 -0
  51. package/dist/usage-audit-BYvZgTJp.js +12 -0
  52. package/dist/{version-Dgsb7T5N.js → version-jPJWKUcc.js} +1 -1
  53. package/dist/webhook-BxPA95wd.js +11 -0
  54. package/dist/workflow-DJkPvmuA.js +14 -0
  55. package/dist/workspaces-CDotU443.js +11 -0
  56. package/package.json +8 -7
  57. package/dist/add-4VqDcbIj.js +0 -10
  58. package/dist/agents-CCOqroYN.js +0 -10
  59. package/dist/billing-BV5kdyQb.js +0 -10
  60. package/dist/budget-CnxbNkne.js +0 -10
  61. package/dist/build-task-request-config-CjKDSNjv.js +0 -10
  62. package/dist/commands-gyHmiEsC.js +0 -10
  63. package/dist/config-CJf4r7wp.js +0 -11
  64. package/dist/connectors-C_Re7e0l.js +0 -11
  65. package/dist/file-upload-D2s_clGk.js +0 -24
  66. package/dist/format-DCvznP70.js +0 -10
  67. package/dist/isRecord-BNZWvqVS.js +0 -10
  68. package/dist/login-C0Zz6tHG.js +0 -10
  69. package/dist/marketplace-DQsEzT6T.js +0 -12
  70. package/dist/mcp-DHXuIFWP.js +0 -11
  71. package/dist/mcp-client-EK-Fh8gM.js +0 -10
  72. package/dist/meeting-C6H_GJB7.js +0 -11
  73. package/dist/message-utils-Cq_Fel5P.js +0 -15
  74. package/dist/models-DT78HZxx.js +0 -11
  75. package/dist/notifications-3UrKbGaT.js +0 -10
  76. package/dist/profile-D4m5ZAG7.js +0 -10
  77. package/dist/profile-storage-CPg61h-2.js +0 -68
  78. package/dist/project-C5_rCWCh.js +0 -10
  79. package/dist/project-context-DnIuy1T0.js +0 -10
  80. package/dist/project-governance-CxDZSThr.js +0 -10
  81. package/dist/project-sources-write-C-W8gjLg.js +0 -10
  82. package/dist/project-tasks-t4HFgEoZ.js +0 -10
  83. package/dist/recordings-DeB1LqiS.js +0 -11
  84. package/dist/remove-ChV-BE95.js +0 -10
  85. package/dist/resolve-Czx_OkYk.js +0 -14
  86. package/dist/schedules-COBaV-Be.js +0 -29
  87. package/dist/skills-OLZywcSs.js +0 -10
  88. package/dist/status-CpfDbB9S.js +0 -10
  89. package/dist/status-Oo8upbyy.js +0 -10
  90. package/dist/task-C8PttINZ.js +0 -108
  91. package/dist/tasks-CAmfAGsn.js +0 -22
  92. package/dist/tool-kEevHrsQ.js +0 -17
  93. package/dist/update-Y9S-P4wG.js +0 -10
  94. package/dist/usage-CHIhyA8S.js +0 -11
  95. package/dist/usage-audit-C1xGe42N.js +0 -12
  96. package/dist/workflow-DWmgcRJ_.js +0 -14
  97. package/dist/workspaces-3PFiXy1I.js +0 -11
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env node
2
- var __entrydeskNodeFloor = 24;
3
- if (parseInt(process.versions.node, 10) < __entrydeskNodeFloor) {
4
- process.stderr.write(
5
- 'entrydesk: Node.js ' + __entrydeskNodeFloor + ' or newer is required, but this is Node ' + process.versions.node + '.\n' +
6
- 'Upgrade Node (https://nodejs.org/en/download), then reinstall @entrydesk/cli.\n'
7
- );
8
- process.exit(1);
9
- }
10
- import{Lt as e,zt as t}from"./profile-storage-CPg61h-2.js";import{t as n}from"./isRecord-BNZWvqVS.js";function r(e,t){return e.replace(/\u001B\][^\u001B\u0007]*(?:\u0007|\u001B\\)/gu,``).replace(/\u001B\[[0-?]*[ -/]*[@-~]/gu,``).replace(t,``)}function i(e){return r(e,/[\u0000-\u001F\u007F-\u009F]/gu)}function a(e){return r(e,/[\u0000-\u0008\u000B-\u001F\u007F-\u009F]/gu)}const o=`\x1B[2m`,s=`\x1B[0m`,c=`\x1B[36m`,l=`\x1B[32m`,u=`\x1B[38;2;59;91;204m`,d=`\x1B[38;2;126;200;248m`,f=`\x1B[38;2;244;196;78m`,p={preauthorized:`Auto-approved · preauthorized for this task`,low_risk:`Auto-approved · assessed low risk`};function m(e){if(!n(e))return;let r=t({approved:e.approved===!0,isAutomatic:e.isAutomatic===!0,reason:typeof e.reason==`string`?e.reason:void 0});return r?p[r.kind]:void 0}function h(t){if(t.state===`output-denied`||t.state===`approval-responded`&&t.approval?.approved===!1)return t.approval?.reason||e.BY_USER}function g(e,t){if(!e)return`(no result)`;if(typeof e!=`object`){let n=String(e);return t||n.length<=200?n:n.slice(0,200)+`…`}let n=e;if(`structuredContent`in n&&n.structuredContent){let e=n.structuredContent;if(e.stdout&&typeof e.stdout==`string`){let n=e.stdout.trim();return t||n.length<=200?n:n.slice(0,200)+`…`}}if(`content`in n&&Array.isArray(n.content)){let e=n.content.filter(e=>e.type===`text`&&e.text).map(e=>e.text).join(`
11
- `);return e?t||e.length<=200?e:e.slice(0,200)+`…`:`(result)`}if(n.type===`text`&&typeof n.content==`string`){let e=n.content;return t||e.length<=200?e:e.slice(0,200)+`…`}let r=JSON.stringify(e,null,t?2:void 0);return t||r.length<=200?r:r.slice(0,200)+`…`}function _(e,t){return a(g(e,t))}function v(e,t=!1){let n=[];for(let r of e)if(r.type===`text`&&r.text)n.push(a(r.text));else if(r.type===`reasoning`&&r.text)t?n.push(`${o}[Thinking]\n${a(r.text)}${s}`):n.push(`${o}[Thinking…]${s}`);else if(r.type===`tool-call`&&r.toolName){let e=[`${c}┌─ Tool: ${i(r.toolName)}${s}`];if(r.args){let n=JSON.stringify(r.args,null,t?2:void 0),a=t||n.length<=100?n:n.slice(0,100)+`…`;e.push(`${o}│ Input: ${i(a)}${s}`)}r.result===void 0?e.push(`${c}└─${s}`):(e.push(`${l}│ Output: ${_(r.result,t)}${s}`),e.push(`${c}└─ completed${s}`)),n.push(e.join(`
12
- `))}else if(r.type.startsWith(`tool-`)&&r.type!==`tool-call`){let e=[`${c}┌─ Tool: ${i(r.title||r.type.slice(5).replaceAll(`__`,` `))}${s}`];if(r.input){let n=JSON.stringify(r.input,null,t?2:void 0),a=t||n.length<=100?n:n.slice(0,100)+`…`;e.push(`${o}│ Input: ${i(a)}${s}`)}let a=h(r);if(r.output!==void 0&&r.state===`output-available`){e.push(`${l}│ Output: ${_(r.output,t)}${s}`);let n=m(r.approval);n&&e.push(`${o}│ ${n}${s}`),e.push(`${c}└─ completed${s}`)}else a===void 0?r.state===`error`?e.push(`${c}└─ failed${s}`):e.push(`${c}└─${s}`):(e.push(`${o}│ ${i(a)}${s}`),e.push(`${c}└─ rejected${s}`));n.push(e.join(`
13
- `))}return n.join(`
14
-
15
- `).trim()}export{o as a,f as c,u as i,i as l,m as n,d as o,c as r,s,v as t,a as u};
@@ -1,11 +0,0 @@
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{b as e,u as t}from"./profile-storage-CPg61h-2.js";function n(e){return e===`saas`?{resolvesFrom:`model tiers`,note:`A task picks a tier (lite / pro / max) and the platform-default tier row decides the concrete model — but not always: a workspace with additional models enabled, or one on a subscription-pool model, can pin a concrete model id that resolves from its own rows and bypasses the tier mapping entirely.`}:{resolvesFrom:`this workspace's own rows`,note:`A task picks either a tier slug or a concrete model id. Tier rows are read per workspace and never fall back to the platform defaults, so changing a platform tier does not reach this workspace.`}}async function r(e){try{return await e()}catch(e){return{error:e instanceof Error?e.message:String(e)}}}function i(e){return` ${e.tier.padEnd(14)} → ${e.model?.id??`(no row)`}`}function a(e){if(`notExposed`in e){console.log(` Tier mappings: not exposed on SaaS — the public tier API strips the backing model id.`);return}if(`error`in e){console.log(` Tier mappings: unavailable (${e.error})`);return}if(e.tiers.length===0){console.log(` Tier mappings: none`);return}console.log(` Tier mappings (${e.tiers.length}):`);for(let t of e.tiers)console.log(i(t))}async function o(i){let{accessToken:o,workspaceId:s}=await t(),c=new e,{deploymentMode:l}=await c.getRuntimeConfig(),{resolvesFrom:u,note:d}=n(l),f=l===`saas`?Promise.resolve({notExposed:!0}):r(()=>c.getModelTierMappings(o,s)),[p,m]=await Promise.all([f,r(()=>c.getModels(o,s))]);if(i.json){console.log(JSON.stringify({deploymentMode:l,resolvesFrom:u,mappings:p,concrete:m}));return}console.log(`Model configuration
11
- `),console.log(` Deployment mode: ${l}`),console.log(` Selection resolves from: ${u}`),console.log(` ${d}\n`),a(p),console.log(`error`in m?` Concrete models: unavailable (${m.error})`:` Concrete models available: ${m.models.length}`)}async function s(n){if(n.config){await o(n);return}let{accessToken:r,workspaceId:i}=await t(),{models:a}=await new e().listSelectableModels(r,i);if(n.json){console.log(JSON.stringify(a));return}if(a.length===0){console.log(`No models available in this workspace.`);return}console.log(`Available models (${a.length}):\n`);for(let e of a)console.log(` ${e.name}`),e.description&&console.log(` ${e.description.slice(0,80)}`),console.log(` ID: ${e.id}`),console.log(``)}export{s as runModels};
@@ -1,10 +0,0 @@
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{b as e,u as t}from"./profile-storage-CPg61h-2.js";import{n}from"./format-DCvznP70.js";import{t as r}from"./paginate-Brd-j5V8.js";function i(e,t){let n=e.replace(/\s+/g,` `).trim();return n.length>t?`${n.slice(0,t)}…`:n}function a(e){console.log(`Notifications (${e.length}):\n`);for(let t of e){let e=t.readAt?` `:`●`;console.log(` ${e} [${t.category}] ${t.rendered.title}`),t.rendered.body&&console.log(` ${i(t.rendered.body,100)}`);let r=n(t.createdAt);console.log(` ${r} · ${t.eventType} · ID: ${t.id}`),console.log(``)}}async function o(n){let{accessToken:i,workspaceId:o}=await t(),s=new e,c={tab:n.tab,eventType:n.eventType};if(n.all){let e=await r(async e=>{let t=await s.getNotifications(i,o,{...c,limit:n.limit??20,cursor:e});return{items:t.items,nextKey:t.nextKey}});if(n.json){console.log(JSON.stringify({items:e}));return}if(e.length===0){console.log(`No notifications.`);return}a(e);return}let{items:l,nextKey:u}=await s.getNotifications(i,o,{...c,limit:n.limit,cursor:n.nextKey});if(n.json){console.log(JSON.stringify({items:l,nextKey:u}));return}if(l.length===0){console.log(`No notifications.`);return}a(l),u&&console.log(`Next page: --next-key ${u}`)}async function s(n){let{accessToken:r,workspaceId:i}=await t(),{count:a,capped:o}=await new e().getNotificationUnreadCount(r,i);if(n.json){console.log(JSON.stringify({count:a,capped:o??!1}));return}console.log(`${o?`${a}+`:a} unread`)}async function c(n,r){let{accessToken:i,workspaceId:a}=await t();if(await new e().markNotificationRead(i,a,n),r.json){console.log(JSON.stringify({id:n,read:!0}));return}console.log(`Marked notification read: ${n}`)}async function l(n){let{accessToken:r,workspaceId:i}=await t();if(await new e().markAllNotificationsRead(r,i),n.json){console.log(JSON.stringify({readAll:!0}));return}console.log(`Marked all notifications read.`)}export{o as listNotifications,l as markAllNotificationsRead,c as markNotificationRead,s as showUnreadCount};
@@ -1,10 +0,0 @@
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,M as t,r as n,t as r}from"./profile-storage-CPg61h-2.js";function i(e,t){let i=e??t.profile;if(i)return i;if(r.getProfileCount()===1)return r.getProfileNames()[0];throw new n(`Profile name is required when multiple profiles exist.`)}function a(e){let t=r.getCurrentProfileName(),n=r.getProfileNames();if(e.json){console.log(JSON.stringify({currentProfile:t,profiles:n.map(e=>({name:e,isCurrent:e===t}))}));return}console.log(`Profiles (${n.length}):`);for(let e of n)console.log(` ${e}${e===t?` (current)`:``}`)}function o(e){let t=r.getCurrentProfileName();if(e.json){console.log(JSON.stringify({name:t,isCurrent:!0}));return}console.log(`Current profile: ${t}`)}async function s(n,a){let o=i(n,a),s=t.getAll(o),c=await e.getAll(o),l=!!c?.accessToken,u=o===r.getCurrentProfileName();if(a.json){console.log(JSON.stringify({name:o,isCurrent:u,config:s,auth:l?{loggedIn:!0,email:c?.email??null,workspaceId:c?.workspaceId??null}:{loggedIn:!1}}));return}console.log(`Profile: ${o}${u?` (current)`:``}`),console.log(` API URL: ${s.apiUrl??`default`}`),console.log(` Hub URL: ${s.hubUrl??`default`}`),console.log(` Model: ${s.model?.default??`unset`}`);let d=s.connectors?.defaults&&s.connectors.defaults.length>0?s.connectors.defaults.join(`, `):`unset`;console.log(` Connectors: ${d}`),console.log(l?` Logged in as: ${c?.email??`unknown`}`:` Not logged in`),l&&c?.workspaceId&&console.log(` Workspace ID: ${c.workspaceId}`)}function c(e,t){let n=e??t.profile??r.DEFAULT_PROFILE;if(r.createProfile(n),t.json){console.log(JSON.stringify({name:n,created:!0}));return}console.log(`Profile created: ${n}`)}function l(e,t){let n=i(e,t);if(r.setCurrentProfile(n),t.json){console.log(JSON.stringify({name:n,current:!0}));return}console.log(`Switched to profile: ${n}`)}async function u(t,n){let a=i(t,n),o=r.deleteProfile(a);if(await e.deleteProfileCredentials(a),n.json){console.log(JSON.stringify({deleted:a,currentProfile:o.currentProfile}));return}console.log(`Profile deleted: ${a}`),console.log(`Current profile: ${o.currentProfile}`)}async function d(t,n,i){let a=r.renameProfile(t,n);if(await e.moveProfileCredentials(t,n),i.json){console.log(JSON.stringify({renamed:t,name:n,currentProfile:a.currentProfile}));return}console.log(`Profile renamed: ${t} -> ${n}`),console.log(`Current profile: ${a.currentProfile}`)}async function f(n,i,a){let o=t.getAll(n);if(r.createProfile(i),t.setAll(o,i),await e.clear(i),a.json){console.log(JSON.stringify({source:n,name:i,cloned:!0}));return}console.log(`Profile cloned: ${n} -> ${i}`)}export{f as cloneProfile,c as createProfile,u as deleteProfile,a as listProfiles,d as renameProfile,o as showCurrentProfile,s as showProfile,l as useProfile};