@vm0/cli 9.277.1 → 9.277.2
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/{agent-X7ZNZPOX.js → agent-ZPBMY2SD.js} +6 -6
- package/{banking-KGL4A62H.js → banking-HEAMKLPE.js} +4 -4
- package/{browser-MWEZPQ7O.js → browser-OL6ZE6BX.js} +4 -4
- package/{chat-OT3H62CI.js → chat-43YOERZG.js} +6 -6
- package/{chunk-SGSECC77.js → chunk-3FRL47BJ.js} +2 -2
- package/{chunk-AIHN2SKV.js → chunk-5AIAG76X.js} +2 -2
- package/{chunk-IL2KMIJJ.js → chunk-5BIHTSHQ.js} +309 -121
- package/chunk-5BIHTSHQ.js.map +1 -0
- package/{chunk-XO3YWKZB.js → chunk-JPLAJP5I.js} +2 -2
- package/{chunk-4GLJF77C.js → chunk-KA75HGXU.js} +242 -742
- package/chunk-KA75HGXU.js.map +1 -0
- package/{chunk-7572GO27.js → chunk-LPNBRPVQ.js} +4 -4
- package/{chunk-HTTADLT3.js → chunk-NDYPPVD3.js} +2 -22
- package/{chunk-HTTADLT3.js.map → chunk-NDYPPVD3.js.map} +1 -1
- package/{chunk-H6BEDAS4.js → chunk-QJI3SAUY.js} +2 -2
- package/{chunk-YL5CDK4E.js → chunk-SVFOPAWB.js} +1 -7
- package/chunk-SVFOPAWB.js.map +1 -0
- package/{chunk-NEXYY3VO.js → chunk-V2FTIYTG.js} +2333 -2628
- package/chunk-V2FTIYTG.js.map +1 -0
- package/{computer-use-4QXDRG4V.js → computer-use-2GLT2YH7.js} +4 -4
- package/{connector-SXSAS4PE.js → connector-PVESAPZF.js} +6 -6
- package/{credit-CKHMOX6F.js → credit-NMYQ76CX.js} +6 -16
- package/credit-NMYQ76CX.js.map +1 -0
- package/{developer-support-QBGR6BJO.js → developer-support-F75A6J22.js} +4 -4
- package/{doctor-EA7ECFIO.js → doctor-QDTOPN2D.js} +18 -41
- package/doctor-QDTOPN2D.js.map +1 -0
- package/{feishu-4N7IWJJV.js → feishu-W6YXMIUS.js} +4 -4
- package/{finance-KQS5IPPY.js → finance-2J5KDPA5.js} +4 -4
- package/{generate-ALYUA6F7.js → generate-2VM7AIVZ.js} +5 -5
- package/{github-MXA236XO.js → github-OCKDSECE.js} +4 -4
- package/{goal-RK2DOCPU.js → goal-3KPOQFUH.js} +4 -4
- package/{host-4NZXR7RE.js → host-MAAICSOY.js} +4 -4
- package/{logs-E4T5GFFU.js → logs-GKIQLSQ6.js} +6 -6
- package/{mail-AS3PMC7N.js → mail-KLADGEP4.js} +6 -6
- package/{maps-GFGMODQZ.js → maps-S5USXHOL.js} +4 -4
- package/{model-AJIZ5IVT.js → model-XRK7Y3MG.js} +5 -5
- package/{model-provider-RBY4EVBH.js → model-provider-OONFZIY4.js} +5 -5
- package/package.json +1 -1
- package/{people-search-PZQZLLSA.js → people-search-FXKKUDJG.js} +4 -4
- package/{phone-X756PGVQ.js → phone-GWXG7JWK.js} +4 -4
- package/{recognize-P7QG3HXA.js → recognize-N3ENWTBX.js} +4 -4
- package/{resource-5LCV4HM6.js → resource-AX5VPSH4.js} +4 -4
- package/{scrape-6ZQMKQNG.js → scrape-CNWD4P44.js} +4 -4
- package/{search-ZJJINEQB.js → search-WDONTFV3.js} +6 -6
- package/{slack-Z6WENJ2P.js → slack-2FELLBUE.js} +4 -4
- package/{teams-ZAMCSLKG.js → teams-KMB4QSGG.js} +4 -4
- package/{telegram-XJMUTZLB.js → telegram-GIKM2NS7.js} +4 -4
- package/{upgrade-3DANFB33.js → upgrade-AZS7AIVQ.js} +3 -3
- package/{video-QC32QN57.js → video-QE2FIEIG.js} +3 -3
- package/{weather-CWWT2KDJ.js → weather-V4KRC55E.js} +4 -4
- package/{web-5K2IPPWW.js → web-XSK6I5E6.js} +4 -4
- package/{web-search-DBJMZGK4.js → web-search-RP5C7D7D.js} +4 -4
- package/{whoami-HPT36I55.js → whoami-SNBYDOBY.js} +17 -5
- package/whoami-SNBYDOBY.js.map +1 -0
- package/{workflow-27BFGSGL.js → workflow-UWMDJILQ.js} +6 -6
- package/zero.js +39 -46
- package/zero.js.map +1 -1
- package/chunk-4GLJF77C.js.map +0 -1
- package/chunk-IL2KMIJJ.js.map +0 -1
- package/chunk-NEXYY3VO.js.map +0 -1
- package/chunk-YL5CDK4E.js.map +0 -1
- package/credit-CKHMOX6F.js.map +0 -1
- package/doctor-EA7ECFIO.js.map +0 -1
- package/org-OUHCBZOO.js +0 -843
- package/org-OUHCBZOO.js.map +0 -1
- package/whoami-HPT36I55.js.map +0 -1
- /package/{agent-X7ZNZPOX.js.map → agent-ZPBMY2SD.js.map} +0 -0
- /package/{banking-KGL4A62H.js.map → banking-HEAMKLPE.js.map} +0 -0
- /package/{browser-MWEZPQ7O.js.map → browser-OL6ZE6BX.js.map} +0 -0
- /package/{chat-OT3H62CI.js.map → chat-43YOERZG.js.map} +0 -0
- /package/{chunk-SGSECC77.js.map → chunk-3FRL47BJ.js.map} +0 -0
- /package/{chunk-AIHN2SKV.js.map → chunk-5AIAG76X.js.map} +0 -0
- /package/{chunk-XO3YWKZB.js.map → chunk-JPLAJP5I.js.map} +0 -0
- /package/{chunk-7572GO27.js.map → chunk-LPNBRPVQ.js.map} +0 -0
- /package/{chunk-H6BEDAS4.js.map → chunk-QJI3SAUY.js.map} +0 -0
- /package/{computer-use-4QXDRG4V.js.map → computer-use-2GLT2YH7.js.map} +0 -0
- /package/{connector-SXSAS4PE.js.map → connector-PVESAPZF.js.map} +0 -0
- /package/{developer-support-QBGR6BJO.js.map → developer-support-F75A6J22.js.map} +0 -0
- /package/{feishu-4N7IWJJV.js.map → feishu-W6YXMIUS.js.map} +0 -0
- /package/{finance-KQS5IPPY.js.map → finance-2J5KDPA5.js.map} +0 -0
- /package/{generate-ALYUA6F7.js.map → generate-2VM7AIVZ.js.map} +0 -0
- /package/{github-MXA236XO.js.map → github-OCKDSECE.js.map} +0 -0
- /package/{goal-RK2DOCPU.js.map → goal-3KPOQFUH.js.map} +0 -0
- /package/{host-4NZXR7RE.js.map → host-MAAICSOY.js.map} +0 -0
- /package/{logs-E4T5GFFU.js.map → logs-GKIQLSQ6.js.map} +0 -0
- /package/{mail-AS3PMC7N.js.map → mail-KLADGEP4.js.map} +0 -0
- /package/{maps-GFGMODQZ.js.map → maps-S5USXHOL.js.map} +0 -0
- /package/{model-AJIZ5IVT.js.map → model-XRK7Y3MG.js.map} +0 -0
- /package/{model-provider-RBY4EVBH.js.map → model-provider-OONFZIY4.js.map} +0 -0
- /package/{people-search-PZQZLLSA.js.map → people-search-FXKKUDJG.js.map} +0 -0
- /package/{phone-X756PGVQ.js.map → phone-GWXG7JWK.js.map} +0 -0
- /package/{recognize-P7QG3HXA.js.map → recognize-N3ENWTBX.js.map} +0 -0
- /package/{resource-5LCV4HM6.js.map → resource-AX5VPSH4.js.map} +0 -0
- /package/{scrape-6ZQMKQNG.js.map → scrape-CNWD4P44.js.map} +0 -0
- /package/{search-ZJJINEQB.js.map → search-WDONTFV3.js.map} +0 -0
- /package/{slack-Z6WENJ2P.js.map → slack-2FELLBUE.js.map} +0 -0
- /package/{teams-ZAMCSLKG.js.map → teams-KMB4QSGG.js.map} +0 -0
- /package/{telegram-XJMUTZLB.js.map → telegram-GIKM2NS7.js.map} +0 -0
- /package/{upgrade-3DANFB33.js.map → upgrade-AZS7AIVQ.js.map} +0 -0
- /package/{video-QC32QN57.js.map → video-QE2FIEIG.js.map} +0 -0
- /package/{weather-CWWT2KDJ.js.map → weather-V4KRC55E.js.map} +0 -0
- /package/{web-5K2IPPWW.js.map → web-XSK6I5E6.js.map} +0 -0
- /package/{web-search-DBJMZGK4.js.map → web-search-RP5C7D7D.js.map} +0 -0
- /package/{workflow-27BFGSGL.js.map → workflow-UWMDJILQ.js.map} +0 -0
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
fetchComputerUseScreenshot,
|
|
13
13
|
getComputerUseCommand,
|
|
14
14
|
listComputerUseHosts
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-KA75HGXU.js";
|
|
16
|
+
import "./chunk-QJI3SAUY.js";
|
|
17
17
|
import {
|
|
18
18
|
ApiRequestError,
|
|
19
19
|
withErrorHandler
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-V2FTIYTG.js";
|
|
21
21
|
import "./chunk-32FE3MDA.js";
|
|
22
22
|
import {
|
|
23
23
|
Command
|
|
@@ -970,4 +970,4 @@ export {
|
|
|
970
970
|
formatComputerUseResultForConsole,
|
|
971
971
|
zeroComputerUseCommand
|
|
972
972
|
};
|
|
973
|
-
//# sourceMappingURL=computer-use-
|
|
973
|
+
//# sourceMappingURL=computer-use-2GLT2YH7.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
resolveConnectorDiscoveryAgentContext,
|
|
16
16
|
resolveManualGrantAuthMethod,
|
|
17
17
|
searchConnectorCatalog
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JPLAJP5I.js";
|
|
19
19
|
import {
|
|
20
20
|
addZeroAgentCustomConnector,
|
|
21
21
|
connectZeroConnectorManualGrant,
|
|
@@ -36,21 +36,21 @@ import {
|
|
|
36
36
|
setZeroCustomConnectorValues,
|
|
37
37
|
startZeroCustomConnectorOAuth2,
|
|
38
38
|
updateCustomConnectorBodySchema
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KA75HGXU.js";
|
|
40
40
|
import {
|
|
41
41
|
UNKNOWN_PERMISSION_GRANT
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QJI3SAUY.js";
|
|
43
43
|
import {
|
|
44
44
|
getPlatformOrigin,
|
|
45
45
|
toPlatformUrl
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-3FRL47BJ.js";
|
|
47
47
|
import "./chunk-ANOLYIPL.js";
|
|
48
48
|
import {
|
|
49
49
|
ApiRequestError,
|
|
50
50
|
getApiUrl,
|
|
51
51
|
source_default,
|
|
52
52
|
withErrorHandler
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-V2FTIYTG.js";
|
|
54
54
|
import {
|
|
55
55
|
decodeZeroTokenPayload
|
|
56
56
|
} from "./chunk-32FE3MDA.js";
|
|
@@ -1967,4 +1967,4 @@ var zeroConnectorCommand = new Command().name("connector").description("Manage a
|
|
|
1967
1967
|
export {
|
|
1968
1968
|
zeroConnectorCommand
|
|
1969
1969
|
};
|
|
1970
|
-
//# sourceMappingURL=connector-
|
|
1970
|
+
//# sourceMappingURL=connector-PVESAPZF.js.map
|
|
@@ -8,21 +8,20 @@ import {
|
|
|
8
8
|
} from "./chunk-2W73DZDW.js";
|
|
9
9
|
import {
|
|
10
10
|
createZeroCreditCheckout,
|
|
11
|
-
getZeroBillingStatus
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import "./chunk-H6BEDAS4.js";
|
|
11
|
+
getZeroBillingStatus
|
|
12
|
+
} from "./chunk-KA75HGXU.js";
|
|
13
|
+
import "./chunk-QJI3SAUY.js";
|
|
15
14
|
import {
|
|
16
15
|
planUpgradeUrl
|
|
17
16
|
} from "./chunk-J45P5ALH.js";
|
|
18
17
|
import {
|
|
19
18
|
getPlatformOrigin
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3FRL47BJ.js";
|
|
21
20
|
import "./chunk-ANOLYIPL.js";
|
|
22
21
|
import {
|
|
23
22
|
source_default,
|
|
24
23
|
withErrorHandler
|
|
25
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-V2FTIYTG.js";
|
|
26
25
|
import {
|
|
27
26
|
decodeZeroTokenPayload
|
|
28
27
|
} from "./chunk-32FE3MDA.js";
|
|
@@ -109,15 +108,6 @@ async function buyCredits(credits, options) {
|
|
|
109
108
|
"buying credits requires billing:write capability"
|
|
110
109
|
);
|
|
111
110
|
const autoRecharge = autoRechargeConfiguration(options);
|
|
112
|
-
const members = await getZeroOrgMembers();
|
|
113
|
-
if (members.role !== "admin") {
|
|
114
|
-
console.log(
|
|
115
|
-
source_default.yellow(
|
|
116
|
-
"Only organization admins can buy credits. Run `zero doctor credit` to see the current credit status and org admins."
|
|
117
|
-
)
|
|
118
|
-
);
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
111
|
const billing = currentTokenCanReadBilling() ? await getZeroBillingStatus() : null;
|
|
122
112
|
const origin = await getPlatformOrigin();
|
|
123
113
|
if (billing && !currentPlanCanBuyCredits(billing)) {
|
|
@@ -163,4 +153,4 @@ var zeroCreditCommand = new Command().name("credit").description("View credit ba
|
|
|
163
153
|
export {
|
|
164
154
|
zeroCreditCommand
|
|
165
155
|
};
|
|
166
|
-
//# sourceMappingURL=credit-
|
|
156
|
+
//# sourceMappingURL=credit-NMYQ76CX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/credit.ts"],"sourcesContent":["import { Command, Option } from \"commander\";\nimport chalk from \"chalk\";\nimport type { ZeroCapability } from \"@vm0/api-contracts/contracts/composes\";\nimport type { BillingStatusResponse } from \"@vm0/api-contracts/contracts/zero-billing\";\n\nimport { createZeroCreditCheckout, getZeroBillingStatus } from \"../../lib/api\";\nimport { withErrorHandler } from \"../../lib/command\";\nimport { decodeZeroTokenPayload } from \"../../lib/api/zero-token\";\nimport { getPlatformOrigin } from \"./doctor/platform-url\";\nimport {\n currentPlanAllowsVideo,\n currentPlanCanBuyCredits,\n currentTokenCanReadBilling,\n} from \"./shared/billing-capabilities\";\nimport { planUpgradeUrl } from \"./shared/billing-links\";\n\nfunction parseCredits(value: string): number {\n const credits = Number(value.replaceAll(\",\", \"\"));\n if (!Number.isInteger(credits) || credits <= 0) {\n throw new Error(\"credits must be a positive integer\");\n }\n return credits;\n}\n\nfunction requireZeroCapabilityForCreditAction(\n capability: ZeroCapability,\n message: string,\n): void {\n const payload = decodeZeroTokenPayload();\n if (payload && !payload.capabilities.includes(capability)) {\n throw new Error(message);\n }\n}\n\ninterface CreditOptions {\n readonly autoRecharge?: boolean;\n readonly autoRechargeThreshold?: number;\n readonly autoRechargeAmount?: number;\n}\n\nfunction autoRechargeConfiguration(options: CreditOptions):\n | {\n readonly enabled: true;\n readonly threshold: number;\n readonly amount: number;\n }\n | undefined {\n if (\n options.autoRecharge !== true &&\n (options.autoRechargeThreshold !== undefined ||\n options.autoRechargeAmount !== undefined)\n ) {\n throw new Error(\n \"--auto-recharge-threshold and --auto-recharge-amount require --auto-recharge\",\n );\n }\n\n if (options.autoRecharge !== true) {\n return undefined;\n }\n if (\n options.autoRechargeThreshold === undefined ||\n options.autoRechargeAmount === undefined\n ) {\n throw new Error(\n \"--auto-recharge requires --auto-recharge-threshold and --auto-recharge-amount\",\n );\n }\n return {\n enabled: true,\n threshold: options.autoRechargeThreshold,\n amount: options.autoRechargeAmount,\n };\n}\n\nfunction printCreditStatus(billing: BillingStatusResponse): void {\n console.log(chalk.bold(\"Credit status:\"));\n console.log(` Tier: ${chalk.cyan(billing.tier)}`);\n console.log(\n ` Available credits: ${chalk.cyan(billing.credits.toLocaleString())}`,\n );\n console.log(\n ` Can purchase credits: ${\n currentPlanCanBuyCredits(billing)\n ? chalk.green(\"yes\")\n : chalk.yellow(\"no\")\n }`,\n );\n console.log(\n ` Built-in video generation: ${\n currentPlanAllowsVideo(billing)\n ? chalk.green(\"available\")\n : chalk.yellow(\"unavailable\")\n }`,\n );\n console.log(\n ` Auto-recharge: ${\n billing.autoRecharge.enabled ? chalk.green(\"enabled\") : \"disabled\"\n }`,\n );\n if (billing.autoRecharge.enabled) {\n console.log(\n ` Threshold: ${billing.autoRecharge.threshold?.toLocaleString() ?? \"not set\"}`,\n );\n console.log(\n ` Amount: ${billing.autoRecharge.amount?.toLocaleString() ?? \"not set\"}`,\n );\n }\n}\n\nasync function showCreditStatus(options: CreditOptions): Promise<void> {\n requireZeroCapabilityForCreditAction(\n \"billing:read\",\n \"checking credit status requires billing:read capability\",\n );\n if (\n options.autoRecharge === true ||\n options.autoRechargeThreshold !== undefined ||\n options.autoRechargeAmount !== undefined\n ) {\n throw new Error(\"auto-recharge options require a credit amount\");\n }\n printCreditStatus(await getZeroBillingStatus());\n}\n\nasync function buyCredits(\n credits: number,\n options: CreditOptions,\n): Promise<void> {\n requireZeroCapabilityForCreditAction(\n \"billing:write\",\n \"buying credits requires billing:write capability\",\n );\n const autoRecharge = autoRechargeConfiguration(options);\n // Only workspace admins can buy credits; the checkout route enforces it.\n const billing = currentTokenCanReadBilling()\n ? await getZeroBillingStatus()\n : null;\n const origin = await getPlatformOrigin();\n if (billing && !currentPlanCanBuyCredits(billing)) {\n console.log(\n chalk.yellow(\n \"Credit purchases are not available for this workspace plan.\",\n ),\n );\n console.log(chalk.bold(\"Plan upgrade link:\"));\n console.log(planUpgradeUrl(origin));\n return;\n }\n\n const result = await createZeroCreditCheckout({\n credits,\n successUrl: `${origin}/?settings=usage&credit=success`,\n cancelUrl: `${origin}/?settings=usage&credit=canceled`,\n ...(autoRecharge ? { autoRecharge } : {}),\n });\n console.log(chalk.bold(\"Credit checkout link:\"));\n console.log(result.url);\n}\n\nexport const zeroCreditCommand = new Command()\n .name(\"credit\")\n .description(\"View credit balance or create a checkout link to buy credits\")\n .argument(\"[credits]\", \"Number of credits to buy\", parseCredits)\n .addOption(\n new Option(\"--auto-recharge\", \"Enable auto-recharge after checkout\"),\n )\n .option(\n \"--auto-recharge-threshold <credits>\",\n \"Recharge when balance is at or below this number of credits\",\n parseCredits,\n )\n .option(\n \"--auto-recharge-amount <credits>\",\n \"Credits to buy for each auto-recharge\",\n parseCredits,\n )\n .action(\n withErrorHandler(\n async (credits: number | undefined, options: CreditOptions) => {\n if (credits === undefined) {\n await showCreditStatus(options);\n return;\n }\n await buyCredits(credits, options);\n },\n ),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAgBA,SAAS,aAAa,OAAuB;AAC3C,QAAM,UAAU,OAAO,MAAM,WAAW,KAAK,EAAE,CAAC;AAChD,MA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,EACA;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,IACE,OAAO,SAA6B,YAA2B;AAC7D,UAAI,YAAY,QAAW;AACzB,cAAM,iBAAiB,OAAO;AAC9B;AAAA,MACF;AACA,YAAM,WAAW,SAAS,OAAO;AAAA,IACnC;AAAA,EACF;AACF;","names":[]}
|
|
@@ -4,12 +4,12 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
requestDeveloperSupportConsent,
|
|
6
6
|
submitDeveloperSupport
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-KA75HGXU.js";
|
|
8
|
+
import "./chunk-QJI3SAUY.js";
|
|
9
9
|
import "./chunk-ANOLYIPL.js";
|
|
10
10
|
import {
|
|
11
11
|
withErrorHandler
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V2FTIYTG.js";
|
|
13
13
|
import "./chunk-32FE3MDA.js";
|
|
14
14
|
import {
|
|
15
15
|
Command
|
|
@@ -61,4 +61,4 @@ Notes:
|
|
|
61
61
|
export {
|
|
62
62
|
zeroDeveloperSupportCommand
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=developer-support-
|
|
64
|
+
//# sourceMappingURL=developer-support-F75A6J22.js.map
|
|
@@ -7,21 +7,20 @@ import {
|
|
|
7
7
|
} from "./chunk-2W73DZDW.js";
|
|
8
8
|
import {
|
|
9
9
|
getZeroBillingStatus,
|
|
10
|
-
getZeroOrg
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import "./chunk-H6BEDAS4.js";
|
|
10
|
+
getZeroOrg
|
|
11
|
+
} from "./chunk-KA75HGXU.js";
|
|
12
|
+
import "./chunk-QJI3SAUY.js";
|
|
14
13
|
import {
|
|
15
14
|
planUpgradeUrl
|
|
16
15
|
} from "./chunk-J45P5ALH.js";
|
|
17
16
|
import {
|
|
18
17
|
getPlatformOrigin
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3FRL47BJ.js";
|
|
20
19
|
import "./chunk-ANOLYIPL.js";
|
|
21
20
|
import {
|
|
22
21
|
source_default,
|
|
23
22
|
withErrorHandler
|
|
24
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V2FTIYTG.js";
|
|
25
24
|
import "./chunk-32FE3MDA.js";
|
|
26
25
|
import {
|
|
27
26
|
Command
|
|
@@ -35,33 +34,22 @@ init_esm_shims();
|
|
|
35
34
|
|
|
36
35
|
// src/commands/zero/doctor/credit.ts
|
|
37
36
|
init_esm_shims();
|
|
38
|
-
function memberName(member) {
|
|
39
|
-
const name = [member.firstName, member.lastName].filter(Boolean).join(" ");
|
|
40
|
-
return name ? `${name} <${member.email}>` : member.email;
|
|
41
|
-
}
|
|
42
37
|
var creditCommand = new Command().name("credit").description("Diagnose current organization credit and purchase access").action(
|
|
43
38
|
withErrorHandler(async () => {
|
|
44
|
-
const [org, billing,
|
|
39
|
+
const [org, billing, platformOrigin] = await Promise.all([
|
|
45
40
|
getZeroOrg(),
|
|
46
41
|
getZeroBillingStatus(),
|
|
47
|
-
getZeroOrgMembers(),
|
|
48
42
|
getPlatformOrigin()
|
|
49
43
|
]);
|
|
50
|
-
const admins = members.members.filter((member) => {
|
|
51
|
-
return member.role === "admin";
|
|
52
|
-
});
|
|
53
|
-
const isAdmin = members.role === "admin";
|
|
54
44
|
const planCanBuyCredits = currentPlanCanBuyCredits(billing);
|
|
55
|
-
const canPurchaseCredits = isAdmin && planCanBuyCredits;
|
|
56
45
|
console.log(source_default.bold("Credit diagnostics:"));
|
|
57
|
-
console.log(`
|
|
46
|
+
console.log(` Workspace: ${source_default.green(org.name)}`);
|
|
58
47
|
console.log(` Tier: ${source_default.cyan(billing.tier)}`);
|
|
59
48
|
console.log(
|
|
60
49
|
` Available credits: ${source_default.cyan(billing.credits.toLocaleString())}`
|
|
61
50
|
);
|
|
62
|
-
console.log(` Current user role: ${source_default.cyan(members.role)}`);
|
|
63
51
|
console.log(
|
|
64
|
-
`
|
|
52
|
+
` Plan can purchase credits: ${planCanBuyCredits ? source_default.green("yes") : source_default.yellow("no")}`
|
|
65
53
|
);
|
|
66
54
|
console.log(
|
|
67
55
|
` Built-in video generation: ${currentPlanAllowsVideo(billing) ? source_default.green("available") : source_default.yellow("unavailable")}`
|
|
@@ -77,32 +65,21 @@ var creditCommand = new Command().name("credit").description("Diagnose current o
|
|
|
77
65
|
` Amount: ${billing.autoRecharge.amount?.toLocaleString() ?? "not set"}`
|
|
78
66
|
);
|
|
79
67
|
}
|
|
80
|
-
if (!
|
|
81
|
-
console.log(source_default.bold("\nOrganization admins:"));
|
|
82
|
-
for (const admin of admins) {
|
|
83
|
-
console.log(` - ${memberName(admin)}`);
|
|
84
|
-
}
|
|
85
|
-
if (planCanBuyCredits) {
|
|
86
|
-
console.log(
|
|
87
|
-
source_default.yellow("\nAsk an organization admin to buy credits.")
|
|
88
|
-
);
|
|
89
|
-
} else {
|
|
90
|
-
console.log(
|
|
91
|
-
source_default.yellow("\nAsk an organization admin to upgrade the plan:")
|
|
92
|
-
);
|
|
93
|
-
console.log(planUpgradeUrl(platformOrigin));
|
|
94
|
-
}
|
|
95
|
-
} else if (!planCanBuyCredits) {
|
|
68
|
+
if (!planCanBuyCredits) {
|
|
96
69
|
console.log(
|
|
97
|
-
"\nThis workspace plan cannot buy credits.
|
|
70
|
+
"\nThis workspace plan cannot buy credits. A workspace admin has to upgrade the plan instead:"
|
|
98
71
|
);
|
|
99
72
|
console.log(planUpgradeUrl(platformOrigin));
|
|
100
|
-
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (billing.tier === "free") {
|
|
101
76
|
console.log(
|
|
102
|
-
"\
|
|
77
|
+
"\nWorkspace admins can upgrade to Pro from billing or buy credits with `zero credit <credits>`."
|
|
103
78
|
);
|
|
104
79
|
} else {
|
|
105
|
-
console.log(
|
|
80
|
+
console.log(
|
|
81
|
+
"\nWorkspace admins can use `zero credit <credits>` to buy more credits."
|
|
82
|
+
);
|
|
106
83
|
}
|
|
107
84
|
})
|
|
108
85
|
);
|
|
@@ -122,4 +99,4 @@ Notes:
|
|
|
122
99
|
export {
|
|
123
100
|
zeroDoctorCommand
|
|
124
101
|
};
|
|
125
|
-
//# sourceMappingURL=doctor-
|
|
102
|
+
//# sourceMappingURL=doctor-QDTOPN2D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/doctor/index.ts","../src/commands/zero/doctor/credit.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport { creditCommand } from \"./credit\";\n\nexport const zeroDoctorCommand = new Command()\n .name(\"doctor\")\n .description(\"Diagnose account and runtime issues\")\n .addCommand(creditCommand)\n .addHelpText(\n \"after\",\n `\nExamples:\n Check credits? zero doctor credit\n\nNotes:\n - Use zero doctor credit when a run or generation fails because the org has insufficient credits, when a user asks how to recharge, or before trying to buy credits\n - Use zero generate <type> (no --prompt) to see every provider available for a given generation type\n - Use zero connector check for connector and permission diagnostics`,\n );\n","import { Command } from \"commander\";\nimport chalk from \"chalk\";\n\nimport { getZeroBillingStatus, getZeroOrg } from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\nimport { getPlatformOrigin } from \"./platform-url\";\nimport {\n currentPlanAllowsVideo,\n currentPlanCanBuyCredits,\n} from \"../shared/billing-capabilities\";\nimport { planUpgradeUrl } from \"../shared/billing-links\";\n\nexport const creditCommand = new Command()\n .name(\"credit\")\n .description(\"Diagnose current organization credit and purchase access\")\n .action(\n withErrorHandler(async () => {\n const [org, billing, platformOrigin] = await Promise.all([\n getZeroOrg(),\n getZeroBillingStatus(),\n getPlatformOrigin(),\n ]);\n const planCanBuyCredits = currentPlanCanBuyCredits(billing);\n\n console.log(chalk.bold(\"Credit diagnostics:\"));\n console.log(` Workspace: ${chalk.green(org.name)}`);\n console.log(` Tier: ${chalk.cyan(billing.tier)}`);\n console.log(\n ` Available credits: ${chalk.cyan(billing.credits.toLocaleString())}`,\n );\n console.log(\n ` Plan can purchase credits: ${\n planCanBuyCredits ? chalk.green(\"yes\") : chalk.yellow(\"no\")\n }`,\n );\n console.log(\n ` Built-in video generation: ${\n currentPlanAllowsVideo(billing)\n ? chalk.green(\"available\")\n : chalk.yellow(\"unavailable\")\n }`,\n );\n console.log(\n ` Auto-recharge: ${\n billing.autoRecharge.enabled ? chalk.green(\"enabled\") : \"disabled\"\n }`,\n );\n if (billing.autoRecharge.enabled) {\n console.log(\n ` Threshold: ${billing.autoRecharge.threshold?.toLocaleString() ?? \"not set\"}`,\n );\n console.log(\n ` Amount: ${billing.autoRecharge.amount?.toLocaleString() ?? \"not set\"}`,\n );\n }\n\n if (!planCanBuyCredits) {\n console.log(\n \"\\nThis workspace plan cannot buy credits. A workspace admin has to upgrade the plan instead:\",\n );\n console.log(planUpgradeUrl(platformOrigin));\n return;\n }\n\n if (billing.tier === \"free\") {\n console.log(\n \"\\nWorkspace admins can upgrade to Pro from billing or buy credits with `zero credit <credits>`.\",\n );\n } else {\n console.log(\n \"\\nWorkspace admins can use `zero credit <credits>` to buy more credits.\",\n );\n }\n }),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;AAYO,IAAM,gBAAgB,IAAI,QAAQ,EACtC,KAAK,QAAQ,EACb,YAAY,0DAA0D,EACtE;AAAA,EACC,iBAAiB,YAAY;AAC3B,UAAM,CAAC,KAAK,SAAS,cAAc,IAAI,MAAM,QAAQ,IAAI;AAAA,MACvD,WAAW;AAAA,MACX,qBAAqB;AAAA,MACrB,kBAAkB;AAAA,IACpB,CAAC;AACD,UAAM,oBAAoB,yBAAyB,OAAO;AAE1D,YAAQ,IAAI,eAAM,KAAK,qBAAqB,CAAC;AAC7C,YAAQ,IAAI,gBAAgB,eAAM,MAAM,IAAI,IAAI,CAAC,EAAE;AACnD,YAAQ,IAAI,WAAW,eAAM,KAAK,QAAQ,IAAI,CAAC,EAA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
+
import "./chunk-QJI3SAUY.js";
|
|
12
12
|
import "./chunk-ANOLYIPL.js";
|
|
13
13
|
import {
|
|
14
14
|
source_default,
|
|
15
15
|
withErrorHandler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V2FTIYTG.js";
|
|
17
17
|
import "./chunk-32FE3MDA.js";
|
|
18
18
|
import {
|
|
19
19
|
Command
|
|
@@ -278,4 +278,4 @@ Examples:
|
|
|
278
278
|
export {
|
|
279
279
|
zeroFeishuCommand
|
|
280
280
|
};
|
|
281
|
-
//# sourceMappingURL=feishu-
|
|
281
|
+
//# sourceMappingURL=feishu-W6YXMIUS.js.map
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
zeroFinanceQuoteRequestSchema,
|
|
15
15
|
zeroFinanceRangeSchema,
|
|
16
16
|
zeroFinanceSearchRequestSchema
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-KA75HGXU.js";
|
|
18
|
+
import "./chunk-QJI3SAUY.js";
|
|
19
19
|
import "./chunk-ANOLYIPL.js";
|
|
20
20
|
import {
|
|
21
21
|
source_default,
|
|
22
22
|
withErrorHandler
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V2FTIYTG.js";
|
|
24
24
|
import "./chunk-32FE3MDA.js";
|
|
25
25
|
import {
|
|
26
26
|
Command,
|
|
@@ -125,4 +125,4 @@ Notes:
|
|
|
125
125
|
export {
|
|
126
126
|
zeroFinanceCommand
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=finance-
|
|
128
|
+
//# sourceMappingURL=finance-2J5KDPA5.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getZeroBillingStatus,
|
|
29
29
|
listZeroConnectorCatalog,
|
|
30
30
|
listZeroConnectorCatalogStatus
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KA75HGXU.js";
|
|
32
32
|
import {
|
|
33
33
|
generateWebAvatarVideo,
|
|
34
34
|
generateWebImage,
|
|
@@ -36,19 +36,19 @@ import {
|
|
|
36
36
|
generateWebVoice,
|
|
37
37
|
listWebAvatarVideoAvatars,
|
|
38
38
|
listWebAvatarVideoVoices
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QJI3SAUY.js";
|
|
40
40
|
import {
|
|
41
41
|
planUpgradeUrl
|
|
42
42
|
} from "./chunk-J45P5ALH.js";
|
|
43
43
|
import {
|
|
44
44
|
getPlatformOrigin
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-3FRL47BJ.js";
|
|
46
46
|
import "./chunk-ANOLYIPL.js";
|
|
47
47
|
import {
|
|
48
48
|
ApiRequestError,
|
|
49
49
|
source_default,
|
|
50
50
|
withErrorHandler
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-V2FTIYTG.js";
|
|
52
52
|
import {
|
|
53
53
|
isFeatureEnabled
|
|
54
54
|
} from "./chunk-WHCP2H2S.js";
|
|
@@ -3211,4 +3211,4 @@ var generateCommand = new Command().name("generate").description(
|
|
|
3211
3211
|
export {
|
|
3212
3212
|
generateCommand
|
|
3213
3213
|
};
|
|
3214
|
-
//# sourceMappingURL=generate-
|
|
3214
|
+
//# sourceMappingURL=generate-2VM7AIVZ.js.map
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
completeGithubFileUpload,
|
|
6
6
|
downloadGithubFile,
|
|
7
7
|
initGithubFileUpload
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-KA75HGXU.js";
|
|
9
|
+
import "./chunk-QJI3SAUY.js";
|
|
10
10
|
import "./chunk-ANOLYIPL.js";
|
|
11
11
|
import {
|
|
12
12
|
withErrorHandler
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V2FTIYTG.js";
|
|
14
14
|
import "./chunk-32FE3MDA.js";
|
|
15
15
|
import {
|
|
16
16
|
Command
|
|
@@ -205,4 +205,4 @@ Examples:
|
|
|
205
205
|
export {
|
|
206
206
|
zeroGithubCommand
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=github-
|
|
208
|
+
//# sourceMappingURL=github-OCKDSECE.js.map
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
getGoal,
|
|
11
11
|
pauseGoal,
|
|
12
12
|
resumeGoal
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-KA75HGXU.js";
|
|
14
|
+
import "./chunk-QJI3SAUY.js";
|
|
15
15
|
import "./chunk-ANOLYIPL.js";
|
|
16
16
|
import {
|
|
17
17
|
withErrorHandler
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V2FTIYTG.js";
|
|
19
19
|
import "./chunk-32FE3MDA.js";
|
|
20
20
|
import {
|
|
21
21
|
Command
|
|
@@ -78,4 +78,4 @@ var zeroGoalCommand = new Command().name("goal").description("Manage the current
|
|
|
78
78
|
export {
|
|
79
79
|
zeroGoalCommand
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=goal-
|
|
81
|
+
//# sourceMappingURL=goal-3KPOQFUH.js.map
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
getHostedSiteFiles,
|
|
8
8
|
hostedArtifactKindSchema,
|
|
9
9
|
prepareHostedSite
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-KA75HGXU.js";
|
|
11
|
+
import "./chunk-QJI3SAUY.js";
|
|
12
12
|
import "./chunk-ANOLYIPL.js";
|
|
13
13
|
import {
|
|
14
14
|
source_default,
|
|
15
15
|
withErrorHandler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V2FTIYTG.js";
|
|
17
17
|
import "./chunk-32FE3MDA.js";
|
|
18
18
|
import {
|
|
19
19
|
Command,
|
|
@@ -657,4 +657,4 @@ Notes:
|
|
|
657
657
|
export {
|
|
658
658
|
zeroHostCommand
|
|
659
659
|
};
|
|
660
|
-
//# sourceMappingURL=host-
|
|
660
|
+
//# sourceMappingURL=host-MAAICSOY.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isSupportedFramework,
|
|
8
8
|
parseTime,
|
|
9
9
|
searchCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5BIHTSHQ.js";
|
|
11
11
|
import {
|
|
12
12
|
collectLogItems,
|
|
13
13
|
formatIsoTimestamp,
|
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
parsePositiveLogCount
|
|
17
17
|
} from "./chunk-VNNPAHD3.js";
|
|
18
18
|
import "./chunk-NKYACNWA.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-SVFOPAWB.js";
|
|
20
20
|
import {
|
|
21
21
|
getZeroRunAgentEvents,
|
|
22
22
|
listZeroLogs
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-KA75HGXU.js";
|
|
24
|
+
import "./chunk-QJI3SAUY.js";
|
|
25
25
|
import "./chunk-ANOLYIPL.js";
|
|
26
26
|
import {
|
|
27
27
|
source_default,
|
|
28
28
|
withErrorHandler
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-V2FTIYTG.js";
|
|
30
30
|
import "./chunk-WHCP2H2S.js";
|
|
31
31
|
import "./chunk-32FE3MDA.js";
|
|
32
32
|
import {
|
|
@@ -273,4 +273,4 @@ Examples:
|
|
|
273
273
|
export {
|
|
274
274
|
zeroLogsCommand
|
|
275
275
|
};
|
|
276
|
-
//# sourceMappingURL=logs-
|
|
276
|
+
//# sourceMappingURL=logs-GKIQLSQ6.js.map
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
findConnectorStatusItem,
|
|
8
8
|
printCallbackTurnInstruction,
|
|
9
9
|
resolveAgentContext
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPLAJP5I.js";
|
|
11
11
|
import {
|
|
12
12
|
linkZeroMailDraft,
|
|
13
13
|
listZeroConnectorCatalogStatus
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-KA75HGXU.js";
|
|
15
|
+
import "./chunk-QJI3SAUY.js";
|
|
16
16
|
import {
|
|
17
17
|
getPlatformOrigin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3FRL47BJ.js";
|
|
19
19
|
import "./chunk-ANOLYIPL.js";
|
|
20
20
|
import {
|
|
21
21
|
source_default,
|
|
22
22
|
withErrorHandler
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-V2FTIYTG.js";
|
|
24
24
|
import "./chunk-32FE3MDA.js";
|
|
25
25
|
import {
|
|
26
26
|
Command,
|
|
@@ -234,4 +234,4 @@ var zeroMailCommand = new Command().name("mail").description("Review linked Gmai
|
|
|
234
234
|
export {
|
|
235
235
|
zeroMailCommand
|
|
236
236
|
};
|
|
237
|
-
//# sourceMappingURL=mail-
|
|
237
|
+
//# sourceMappingURL=mail-KLADGEP4.js.map
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
callZeroMaps
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-KA75HGXU.js";
|
|
7
|
+
import "./chunk-QJI3SAUY.js";
|
|
8
8
|
import "./chunk-ANOLYIPL.js";
|
|
9
9
|
import {
|
|
10
10
|
source_default,
|
|
11
11
|
withErrorHandler
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V2FTIYTG.js";
|
|
13
13
|
import "./chunk-32FE3MDA.js";
|
|
14
14
|
import {
|
|
15
15
|
Command,
|
|
@@ -483,4 +483,4 @@ Notes:
|
|
|
483
483
|
export {
|
|
484
484
|
zeroMapsCommand
|
|
485
485
|
};
|
|
486
|
-
//# sourceMappingURL=maps-
|
|
486
|
+
//# sourceMappingURL=maps-S5USXHOL.js.map
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
formatModelProviderRoute,
|
|
7
7
|
getModelProviderRouteKind
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5AIAG76X.js";
|
|
9
9
|
import {
|
|
10
10
|
listZeroModelPolicies
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KA75HGXU.js";
|
|
12
|
+
import "./chunk-QJI3SAUY.js";
|
|
13
13
|
import "./chunk-ANOLYIPL.js";
|
|
14
14
|
import {
|
|
15
15
|
getVm0ModelPriceTier,
|
|
16
16
|
source_default,
|
|
17
17
|
withErrorHandler
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V2FTIYTG.js";
|
|
19
19
|
import "./chunk-32FE3MDA.js";
|
|
20
20
|
import {
|
|
21
21
|
Command
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
switchCommand,
|
|
90
90
|
zeroModelCommand
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=model-
|
|
92
|
+
//# sourceMappingURL=model-XRK7Y3MG.js.map
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
getModelProviderRouteKind,
|
|
7
7
|
getModelProviderTypeLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5AIAG76X.js";
|
|
9
9
|
import {
|
|
10
10
|
listZeroModelPolicies
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KA75HGXU.js";
|
|
12
|
+
import "./chunk-QJI3SAUY.js";
|
|
13
13
|
import "./chunk-ANOLYIPL.js";
|
|
14
14
|
import {
|
|
15
15
|
source_default,
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V2FTIYTG.js";
|
|
18
18
|
import "./chunk-32FE3MDA.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
setCommand,
|
|
74
74
|
zeroModelProviderCommand
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=model-provider-
|
|
76
|
+
//# sourceMappingURL=model-provider-OONFZIY4.js.map
|
package/package.json
CHANGED
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
ZERO_PEOPLE_SEARCH_MAX_LIMIT,
|
|
7
7
|
callZeroPeopleSearch,
|
|
8
8
|
zeroPeopleSearchRequestSchema
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-KA75HGXU.js";
|
|
10
|
+
import "./chunk-QJI3SAUY.js";
|
|
11
11
|
import "./chunk-ANOLYIPL.js";
|
|
12
12
|
import {
|
|
13
13
|
source_default,
|
|
14
14
|
withErrorHandler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-V2FTIYTG.js";
|
|
16
16
|
import "./chunk-32FE3MDA.js";
|
|
17
17
|
import {
|
|
18
18
|
Command,
|
|
@@ -125,4 +125,4 @@ Notes:
|
|
|
125
125
|
export {
|
|
126
126
|
zeroPeopleSearchCommand
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=people-search-
|
|
128
|
+
//# sourceMappingURL=people-search-FXKKUDJG.js.map
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
downloadPhoneFile,
|
|
7
7
|
initPhoneFileUpload,
|
|
8
8
|
sendPhoneMessage
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-KA75HGXU.js";
|
|
10
|
+
import "./chunk-QJI3SAUY.js";
|
|
11
11
|
import "./chunk-ANOLYIPL.js";
|
|
12
12
|
import {
|
|
13
13
|
source_default,
|
|
14
14
|
withErrorHandler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-V2FTIYTG.js";
|
|
16
16
|
import "./chunk-32FE3MDA.js";
|
|
17
17
|
import {
|
|
18
18
|
Command
|
|
@@ -204,4 +204,4 @@ Examples:
|
|
|
204
204
|
export {
|
|
205
205
|
zeroPhoneCommand
|
|
206
206
|
};
|
|
207
|
-
//# sourceMappingURL=phone-
|
|
207
|
+
//# sourceMappingURL=phone-GWXG7JWK.js.map
|