@entrydesk/cli 2.1.0 → 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.
- package/README.md +97 -29
- package/dist/add-A1EZKhMH.js +10 -0
- package/dist/agents-CZzVru0_.js +10 -0
- package/dist/billing-DHV0Wfwm.js +10 -0
- package/dist/budget-Dvl1Q6_g.js +10 -0
- package/dist/{build-task-request-config-C62XneUL.js → build-task-request-config-B_mlDg_c.js} +1 -1
- package/dist/{commands-D5BrzwFc.js → commands-ghS7KAQr.js} +1 -1
- package/dist/commands-qNH4DlB_.js +10 -0
- package/dist/config-B3pbK-VP.js +11 -0
- package/dist/connectors-Dqa8qg7s.js +11 -0
- package/dist/file-upload-CgLvxPGL.js +24 -0
- package/dist/format-BaXJBAlk.js +10 -0
- package/dist/index.js +40 -25
- package/dist/{instruction-BzftVNfK.js → instruction-DaoJgFgE.js} +1 -1
- package/dist/login-CVUzJp76.js +10 -0
- package/dist/{logout-BFFnjWjY.js → logout-B6Bb4w2Y.js} +1 -1
- package/dist/marketplace-C-7CArF7.js +12 -0
- package/dist/{mcp-D2zejorr.js → mcp-BnFLUTG-.js} +2 -2
- package/dist/mcp-client-CPFC6TCy.js +10 -0
- package/dist/meeting-B5-UQSO3.js +11 -0
- package/dist/message-utils-DRHsMlj2.js +15 -0
- package/dist/models-pzt8nNX7.js +11 -0
- package/dist/notifications-Bo7oPqK5.js +10 -0
- package/dist/{paginate-C9ixtica.js → paginate-DetNe5nU.js} +1 -1
- package/dist/{paths-CZAS8cbS.js → paths-CLGwOhp4.js} +1 -1
- package/dist/profile-Cth2_rzi.js +10 -0
- package/dist/profile-storage-BVSyHoBn.js +68 -0
- package/dist/project-CPKxduou.js +10 -0
- package/dist/{project-context-C0ozCzKH.js → project-context-D8YawkvR.js} +1 -1
- package/dist/project-governance-EFbI_Qan.js +10 -0
- package/dist/{project-sources-DFn7Tn7u.js → project-sources-CFgB4loh.js} +1 -1
- package/dist/project-sources-write-DUx1voCZ.js +10 -0
- package/dist/project-tasks-Bk8-wOyn.js +10 -0
- package/dist/{push-mojEdys2.js → push-4Y4mjxO7.js} +1 -1
- package/dist/recordings-DtgXMjp2.js +11 -0
- package/dist/remove-DUFnCuRT.js +10 -0
- package/dist/resolve-yAqzT64X.js +14 -0
- package/dist/{resource-grants-CtIINiDN.js → resource-grants-DMj0dy5m.js} +1 -1
- package/dist/schedules-6T2-994t.js +29 -0
- package/dist/skills-C56S2Z62.js +10 -0
- package/dist/status-BBvz4l0p.js +10 -0
- package/dist/status-DHllWQ7c.js +10 -0
- package/dist/task-Hcgf0oDf.js +110 -0
- package/dist/{tasks-CA2QZ8rX.js → tasks-CLlI3fiV.js} +1 -1
- package/dist/tasks-D2CtxbpJ.js +22 -0
- package/dist/team-aQszguLF.js +11 -0
- package/dist/terminal-text-cBPBiP3x.js +10 -0
- package/dist/tool-CASBzR_z.js +17 -0
- package/dist/update-CSh9DfHK.js +10 -0
- package/dist/usage-BLPq7c6l.js +11 -0
- package/dist/usage-audit-BYvZgTJp.js +12 -0
- package/dist/{version-C1OwBsCd.js → version-jPJWKUcc.js} +1 -1
- package/dist/webhook-BxPA95wd.js +11 -0
- package/dist/workflow-DJkPvmuA.js +14 -0
- package/dist/workspaces-CDotU443.js +11 -0
- package/package.json +5 -5
- package/dist/add-D4yZrlJH.js +0 -10
- package/dist/agents-3dOJzTmM.js +0 -10
- package/dist/billing-Cyk-IzGv.js +0 -10
- package/dist/budget-znTQ0rkG.js +0 -10
- package/dist/commands--5Ein-MI.js +0 -10
- package/dist/config-D-9dIy19.js +0 -11
- package/dist/connectors-B7smri5B.js +0 -11
- package/dist/file-upload-D2s_clGk.js +0 -24
- package/dist/format-DCvznP70.js +0 -10
- package/dist/isRecord-BNZWvqVS.js +0 -10
- package/dist/login-Ch3S9nh6.js +0 -10
- package/dist/marketplace-DNm78dKX.js +0 -12
- package/dist/mcp-client-ltOwvE7T.js +0 -10
- package/dist/meeting-BdLr54zK.js +0 -11
- package/dist/message-utils-DiNLK_84.js +0 -15
- package/dist/models-6WioEQKB.js +0 -11
- package/dist/notifications-DIokyl4e.js +0 -10
- package/dist/profile-CWsA2P_O.js +0 -10
- package/dist/profile-storage-CuiJZpFD.js +0 -68
- package/dist/project-c8F30d-Q.js +0 -10
- package/dist/project-governance-DRDjqvX8.js +0 -10
- package/dist/project-sources-write-Bz0lGCid.js +0 -10
- package/dist/project-tasks-DnOrMxr3.js +0 -10
- package/dist/recordings-BbeRVH0H.js +0 -11
- package/dist/remove-BLF3muSH.js +0 -10
- package/dist/resolve-BoqGhxVK.js +0 -14
- package/dist/schedules-ec4cS2A0.js +0 -29
- package/dist/skills-C0xCUb-M.js +0 -10
- package/dist/status-Bfh5hjTq.js +0 -10
- package/dist/status-DpYhlJPA.js +0 -10
- package/dist/task-DfLoMsmZ.js +0 -108
- package/dist/tasks-Bl8A2HW6.js +0 -22
- package/dist/tool-B8CuZYYb.js +0 -17
- package/dist/update-BVBj3leV.js +0 -10
- package/dist/usage-CIhTZm98.js +0 -11
- package/dist/usage-audit-BUcbqdAc.js +0 -12
- package/dist/workflow-DJSq8hY5.js +0 -14
- package/dist/workspaces-BM_3Miqs.js +0 -11
|
@@ -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-CuiJZpFD.js";import{n}from"./format-DCvznP70.js";import{t as r}from"./paginate-C9ixtica.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};
|
package/dist/profile-CWsA2P_O.js
DELETED
|
@@ -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{F as e,S as t,r as n,t as r}from"./profile-storage-CuiJZpFD.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=e.getAll(o),c=await t.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(e,n){let a=i(e,n),o=r.deleteProfile(a);if(await t.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(e,n,i){let a=r.renameProfile(e,n);if(await t.moveProfileCredentials(e,n),i.json){console.log(JSON.stringify({renamed:e,name:n,currentProfile:a.currentProfile}));return}console.log(`Profile renamed: ${e} -> ${n}`),console.log(`Current profile: ${a.currentProfile}`)}async function f(n,i,a){let o=e.getAll(n);if(r.createProfile(i),e.setAll(o,i),await t.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};
|