@entrydesk/cli 2.0.0-beta.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-B1NhONLo.js → add-CDlJBikf.js} +1 -1
- package/dist/{agents-CmqbjcOy.js → agents-vivPBsWo.js} +1 -1
- package/dist/billing-BietwbvI.js +2 -0
- package/dist/{budget-5BgMv02k.js → budget-DcULs51p.js} +1 -1
- package/dist/{build-task-request-config-BvfeDz3u.js → build-task-request-config-Bbffa_rv.js} +1 -1
- package/dist/commands-BCLJEd6x.js +2 -0
- package/dist/{commands-DCchuLQ9.js → commands-CpuinJar.js} +1 -1
- package/dist/{config-B9tUjrKe.js → config-CI3k8CUK.js} +1 -1
- package/dist/{connectors-Du0gwdNw.js → connectors-CbkKDKQQ.js} +2 -2
- package/dist/{custom-connector-D5nYtPdy.js → custom-connector-CxGNx65S.js} +1 -1
- package/dist/format-BNEUX5Xv.js +2 -0
- package/dist/index.js +9 -9
- package/dist/{login-DDHPKjnl.js → login-y8SlHgZ4.js} +1 -1
- package/dist/{logout-BfBH5eJn.js → logout-CGGEe0it.js} +1 -1
- package/dist/{marketplace-uKCzG2ZZ.js → marketplace-CaIuJP0T.js} +1 -1
- package/dist/{mcp-DINA1zRb.js → mcp-Yz1qXxIb.js} +1 -1
- package/dist/{mcp-client-CmjAqUI6.js → mcp-client-DdryEToX.js} +1 -1
- package/dist/{meeting-DyRLAlio.js → meeting-CWv3iUU6.js} +1 -1
- package/dist/{models-MjAV8n3p.js → models-DFEIoTPH.js} +1 -1
- package/dist/{notifications-ChqOyq50.js → notifications-CBLIBZtc.js} +1 -1
- package/dist/{paths-B_0RLzm4.js → paths-Cqjaa_lJ.js} +1 -1
- package/dist/{profile-BvYUZvxC.js → profile-1uJ5EHdo.js} +1 -1
- package/dist/profile-storage-DYUIMuP0.js +72 -0
- package/dist/{push-Dv7v6CZ8.js → push-BBY3QXxO.js} +1 -1
- package/dist/recordings-C0Ij3tfP.js +3 -0
- package/dist/{remove-C846BKtl.js → remove-D-UQJ0IM.js} +1 -1
- package/dist/{schedules-gNv67oB_.js → schedules-CFjtG3p4.js} +2 -2
- package/dist/{skills-fZI01pai.js → skills-16msznfK.js} +1 -1
- package/dist/{status-DmJ-xYvm.js → status-D6ebFbsw.js} +1 -1
- package/dist/{status-gxTm4vOE.js → status-kRSNf0Ap.js} +1 -1
- package/dist/{task-Cu8s2pLl.js → task-DKK82ixE.js} +22 -22
- package/dist/{tasks-iSFyXmqr.js → tasks-DX7CQir8.js} +1 -1
- package/dist/{tool-Cok2kze5.js → tool-3NEPlGNR.js} +1 -1
- package/dist/{update-DvJ7nqZt.js → update-DhNwkiwD.js} +1 -1
- package/dist/usage-050zvE6Q.js +3 -0
- package/dist/usage-audit-e6kpW0LZ.js +4 -0
- package/dist/version-orM51hu_.js +2 -0
- package/dist/{workflow-BZblFLYG.js → workflow-DHTrGTRn.js} +1 -1
- package/dist/{workspaces-DE3ileKk.js → workspaces-BQiFZ5pV.js} +1 -1
- package/package.json +1 -1
- package/dist/billing-1jI7tuUm.js +0 -2
- package/dist/commands-B0bUDitb.js +0 -2
- package/dist/profile-storage-CsigYr0Q.js +0 -72
- package/dist/recordings-k6uAy1-Z.js +0 -3
- package/dist/usage-BwizU9L8.js +0 -3
- package/dist/version-Db_lMuAl.js +0 -2
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{b as e,l as t}from"./profile-storage-CsigYr0Q.js";import{t as n}from"./confirm-BrJZbaxf.js";function r(e){if(e==null)return`—`;let t=Math.round(e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=String(r).padStart(2,`0`),o=String(i).padStart(2,`0`);return n>0?`${n}:${a}:${o}`:`${r}:${o}`}async function i(n){let{accessToken:i,workspaceId:a}=await t(),{recordings:o,nextKey:s}=await new e().listRecordings(i,a,{limit:n.limit,nextKey:n.nextKey,search:n.search});if(n.json){console.log(JSON.stringify({recordings:o,nextKey:s}));return}if(o.length===0){console.log("No recordings yet. Import one with `entrydesk recordings import <url>`.");return}console.log(`Recordings (${o.length}):\n`);for(let e of o){let t=e.processingStatus??`ready`;console.log(` ${e.title}`),console.log(` ID: ${e.id}`),console.log(` ${r(e.duration)} · ${t}${e.source?` · ${e.source}`:``}`),console.log(``)}s&&console.log(`More results: --next-key ${s}`)}async function a(n,i){let{accessToken:a,workspaceId:o}=await t(),s=await new e().getRecording(a,o,n);if(i.json){console.log(JSON.stringify(s));return}if(console.log(s.title),console.log(`ID: ${s.id}`),console.log(`Status: ${s.processingStatus??`ready`}`),console.log(`Duration: ${r(s.duration)}`),s.recordedAt&&console.log(`Recorded: ${s.recordedAt}`),s.summary&&console.log(`\nSummary:\n${s.summary}`),s.actionItems&&s.actionItems.length>0){console.log(`
|
|
3
|
-
Action items:`);for(let e of s.actionItems)console.log(` - ${e.description}`)}s.transcript&&console.log(`\nTranscript available — view with: entrydesk meeting transcript ${s.id}`)}async function o(n,r){let{accessToken:i,workspaceId:a}=await t(),o=await new e().importRecordingMedia(i,a,{url:n,title:r.title,modelId:r.model,preferredLanguage:r.language});if(r.json){console.log(JSON.stringify(o));return}console.log(`Importing ${o.source} recording.`),console.log(` Recording ID: ${o.recordingId}`),console.log(` ${o.message}`),console.log(` Check status: entrydesk recordings get ${o.recordingId}`)}async function s(n,i){let{accessToken:a,workspaceId:o}=await t(),s=await new e().previewRecordingMedia(a,o,n);if(i.json){console.log(JSON.stringify(s));return}console.log(`${s.title} [${s.type}]`),s.channelName&&console.log(`Channel: ${s.channelName}`),s.duration!=null&&console.log(`Duration: ${r(s.duration)}`),s.contentType&&console.log(`Type: ${s.contentType}`)}async function c(n,r){let{accessToken:i,workspaceId:a}=await t(),o=await new e().getRecordingAudioUrl(i,a,n);if(r.json){console.log(JSON.stringify(o));return}console.log(`Stream: ${o.url}`),console.log(`Download: ${o.downloadUrl}`)}async function l(n,r){let{accessToken:i,workspaceId:a}=await t(),o=await new e().retryRecording(i,a,n);if(r.json){console.log(JSON.stringify(o));return}console.log(o.message)}async function u(r,i){let{accessToken:a,workspaceId:o}=await t();if(!i.yes&&(process.stdin.isTTY||(console.error(`Deleting recording ${r} needs confirmation. Re-run with --yes.`),process.exit(1)),!await n(`Delete recording ${r}? This can't be undone from the CLI.`))){console.log(`Aborted.`);return}if(await new e().deleteRecording(a,o,r),i.json){console.log(JSON.stringify({id:r,deleted:!0}));return}console.log(`Deleted recording ${r}.`)}export{u as deleteRecording,o as importRecording,i as listRecordings,s as previewRecording,l as retryRecording,a as showRecording,c as showRecordingAudioUrl};
|
package/dist/usage-BwizU9L8.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{b as e,l as t}from"./profile-storage-CsigYr0Q.js";import{writeFileSync as n}from"node:fs";function r(e){return`$${e.toFixed(2)}`}function i(e){console.log(`Extra-usage balance: ${r(e.balanceUsd)}`);let t=e.currentSpentUsedPercent==null?``:` (${e.currentSpentUsedPercent}% of limit)`;console.log(`Spent this period: ${r(e.currentSpentUsd)}${t}`),e.monthlyExtraUsageLimitUsd!=null&&console.log(`Workspace limit: ${r(e.monthlyExtraUsageLimitUsd)} / month`),e.memberMonthlyExtraUsageLimitUsd!=null&&console.log(`Per-member limit: ${r(e.memberMonthlyExtraUsageLimitUsd)} / month`),e.nextExpiry&&console.log(`Next expiry: ${r(e.nextExpiry.amountUsd)} at ${new Date(e.nextExpiry.expiresAt).toLocaleString()}`),console.log(`Period: ${new Date(e.period.startAt).toLocaleDateString()} – ${new Date(e.period.endAt).toLocaleDateString()}`)}function a(e){console.log(`Seat type: ${e.seatType}`),e.hourly&&console.log(`Hourly used: ${e.hourly.usedPercent}%`),console.log(`Weekly used: ${e.weekly.usedPercent}%`),console.log(`Extra spent: ${r(e.extraUsage.spentUsd)}`),console.log(`Available: ${e.availability.allowed?`yes`:`no (${e.availability.reason??`unknown`})`}`),e.trial&&console.log(`Trial: ${e.trial.remainingDays} days remaining`)}function o(e){console.log(`Consumptions (${e.items.length} of ${e.total}):\n`);for(let t of e.items)console.log(` ${t.user.name} (${t.user.email})`),console.log(` Seat: ${t.seatType} · Extra usage: ${r(t.extraUsage)}`),console.log(` User ID: ${t.user.id}`),console.log(``)}async function s(n){let{accessToken:r,workspaceId:a}=await t(),o=await new e().getUsageOverview(r,a);if(n.json){console.log(JSON.stringify(o));return}i(o)}async function c(n){let{accessToken:r,workspaceId:i}=await t(),o=await new e().getUsageMe(r,i);if(n.json){console.log(JSON.stringify(o));return}a(o)}async function l(n){let{accessToken:r,workspaceId:i}=await t(),a=await new e().getUsageConsumptions(r,i,{limit:n.limit,offset:n.offset,periodStart:n.periodStart});if(n.json){console.log(JSON.stringify(a));return}if(a.items.length===0){console.log(`No consumptions for this period.`);return}o(a)}async function u(r){let{accessToken:i,workspaceId:a}=await t(),o=await new e().exportUsageCsv(i,a,r.periodStart);if(r.output){n(r.output,o),console.log(`Wrote usage CSV to ${r.output}`);return}process.stdout.write(o)}async function d(n){let{accessToken:r,workspaceId:i}=await t(),a=new e,o=[],s,c=0;do{let e=await a.getMonthlyUsages(r,i,{nextKey:s,limit:100});if(o.push(...e.monthlyUsages),s=e.nextKey,c++,c>=100){console.error(`Warning: Showing first ${o.length} entries (pagination limit reached)`);break}}while(s);if(n.json){console.log(JSON.stringify(o));return}if(o.length===0){console.log(`No usage data found for this workspace.`);return}console.log(`Current month usage:
|
|
3
|
-
`);let l=0,u=0;for(let e of o)l+=Number.parseFloat(e.totalCost),u+=e.operationCount;console.log(`Total cost: $${l.toFixed(2)}`),console.log(`Total operations: ${u.toLocaleString()}`),console.log(`Users: ${o.length}\n`);let d=[...o].toSorted((e,t)=>n.sortBy===`cost`?Number.parseFloat(t.totalCost)-Number.parseFloat(e.totalCost):t.operationCount-e.operationCount),f=n.limit??d.length,p=d.slice(0,f);console.log(`Usage by user (sorted by ${n.sortBy}, showing ${p.length} of ${o.length}):\n`);for(let e of p)console.log(` ${e.user.name} (${e.user.email})`),console.log(` Cost: $${Number.parseFloat(e.totalCost).toFixed(2)}`),console.log(` Operations: ${e.operationCount.toLocaleString()}`),console.log(``);p.length<o.length&&console.log(`… and ${o.length-p.length} more users`)}export{u as exportUsage,l as listUsageConsumptions,c as showOwnUsage,s as showUsageBalance,d as showUsageSummary};
|
package/dist/version-Db_lMuAl.js
DELETED