@vm0/cli 9.251.1 → 9.252.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/{agent-BNFNLNHG.js → agent-DJY6SYVC.js} +7 -7
- package/{banking-TCGIBAP6.js → banking-SV5ZIH44.js} +5 -5
- package/{chat-YPDUENU7.js → chat-G2KQYYK5.js} +6 -6
- package/{chunk-DLKSV2HZ.js → chunk-AWLNHCAC.js} +4 -4
- package/{chunk-GO2ZC4S5.js → chunk-BKSVVARX.js} +2 -2
- package/{chunk-BRSUIBNM.js → chunk-BSDS7GCS.js} +5 -4
- package/chunk-BSDS7GCS.js.map +1 -0
- package/{chunk-B7MK54AY.js → chunk-CUAL7MH6.js} +2 -2
- package/{chunk-4CCCO3QU.js → chunk-DK3C2ME6.js} +13 -1
- package/chunk-DK3C2ME6.js.map +1 -0
- package/{chunk-4GD76EQ4.js → chunk-E2DKMMGY.js} +3 -3
- package/{chunk-CV7MCB2U.js → chunk-I56DJKTX.js} +3 -3
- package/{chunk-CV7MCB2U.js.map → chunk-I56DJKTX.js.map} +1 -1
- package/{chunk-KHZ4LMY2.js → chunk-IX2GN2TI.js} +2 -2
- package/{chunk-PP2JWZSG.js → chunk-QL2BWE6J.js} +343 -20
- package/chunk-QL2BWE6J.js.map +1 -0
- package/{chunk-6AKLTZUH.js → chunk-RGHA7C2O.js} +2 -2
- package/{chunk-U3VV27JW.js → chunk-TRFIH4R5.js} +2 -2
- package/{computer-use-VXYMW7DO.js → computer-use-FUBM53XG.js} +5 -5
- package/{connector-UIBA5P4Z.js → connector-3GCLB6HW.js} +8 -8
- package/{credit-GWNSOZOX.js → credit-SXRYMKSD.js} +7 -7
- package/{developer-support-QOTFHN2S.js → developer-support-LQHWOQLY.js} +5 -5
- package/{doctor-G4UUSU3R.js → doctor-RVC32BKE.js} +7 -7
- package/feishu-62E2QMM5.js +277 -0
- package/feishu-62E2QMM5.js.map +1 -0
- package/{finance-QEB2AYB4.js → finance-HP4WFZUY.js} +5 -5
- package/{generate-Y2GBOZ4T.js → generate-PTBOIM6B.js} +7 -7
- package/{github-JX5PFWTW.js → github-62XSFEWF.js} +5 -5
- package/{goal-ETVDARSU.js → goal-VRWB2AS3.js} +5 -5
- package/{host-OTBNOMJO.js → host-OKISPSSS.js} +5 -5
- package/{logs-MK4VKYGE.js → logs-53CMUU4J.js} +6 -6
- package/{mail-4WPLYKL5.js → mail-E6R5V6F6.js} +7 -7
- package/{maps-7YWGDMU4.js → maps-B7F3CODU.js} +5 -5
- package/{model-P5TLS3KD.js → model-2VZQVFTE.js} +6 -6
- package/{model-provider-YUQ65CGB.js → model-provider-XALJ5BZB.js} +6 -6
- package/{org-BO46UGHP.js → org-JIAZYZUL.js} +5 -5
- package/package.json +1 -1
- package/{people-search-6JZNG46F.js → people-search-LZ2BRXA6.js} +5 -5
- package/{phone-OLPRI3UD.js → phone-MXUV3YD3.js} +5 -5
- package/{preference-OSLWFBAT.js → preference-LONJZKPE.js} +5 -5
- package/{resource-6IX3QB3W.js → resource-26IQ2JCS.js} +5 -5
- package/{scrape-T6XHTU6J.js → scrape-H2ZA5AJD.js} +5 -5
- package/{search-KYW4WRMQ.js → search-R62IJFT4.js} +6 -6
- package/{secret-ORODPPSX.js → secret-PHZZWEE3.js} +5 -5
- package/{slack-CXZCQ5HU.js → slack-DQJUJIWY.js} +174 -47
- package/slack-DQJUJIWY.js.map +1 -0
- package/{teams-CGDBFXQ2.js → teams-B5NDIX3U.js} +5 -5
- package/{telegram-SCGQFOYI.js → telegram-R67CYOON.js} +5 -5
- package/{upgrade-3LEF7WD7.js → upgrade-FJKXJO6L.js} +4 -4
- package/{variable-G6WZKJJG.js → variable-GNCE5TUG.js} +5 -5
- package/{video-JKYPCENK.js → video-UDPAFI36.js} +4 -4
- package/{weather-3WQV3JMX.js → weather-O6L5SALA.js} +5 -5
- package/{web-3FRUHVEN.js → web-6I5S773Q.js} +5 -5
- package/{web-search-H6WV4RFE.js → web-search-GQAKFVCC.js} +5 -5
- package/{whoami-BMNW6CH3.js → whoami-MEJV5DZB.js} +7 -7
- package/{workflow-O6CVNJWM.js → workflow-PEVNMY2N.js} +5 -5
- package/zero.js +42 -42
- package/chunk-4CCCO3QU.js.map +0 -1
- package/chunk-BRSUIBNM.js.map +0 -1
- package/chunk-PP2JWZSG.js.map +0 -1
- package/feishu-GQEAUNH3.js +0 -119
- package/feishu-GQEAUNH3.js.map +0 -1
- package/slack-CXZCQ5HU.js.map +0 -1
- /package/{agent-BNFNLNHG.js.map → agent-DJY6SYVC.js.map} +0 -0
- /package/{banking-TCGIBAP6.js.map → banking-SV5ZIH44.js.map} +0 -0
- /package/{chat-YPDUENU7.js.map → chat-G2KQYYK5.js.map} +0 -0
- /package/{chunk-DLKSV2HZ.js.map → chunk-AWLNHCAC.js.map} +0 -0
- /package/{chunk-GO2ZC4S5.js.map → chunk-BKSVVARX.js.map} +0 -0
- /package/{chunk-B7MK54AY.js.map → chunk-CUAL7MH6.js.map} +0 -0
- /package/{chunk-4GD76EQ4.js.map → chunk-E2DKMMGY.js.map} +0 -0
- /package/{chunk-KHZ4LMY2.js.map → chunk-IX2GN2TI.js.map} +0 -0
- /package/{chunk-6AKLTZUH.js.map → chunk-RGHA7C2O.js.map} +0 -0
- /package/{chunk-U3VV27JW.js.map → chunk-TRFIH4R5.js.map} +0 -0
- /package/{computer-use-VXYMW7DO.js.map → computer-use-FUBM53XG.js.map} +0 -0
- /package/{connector-UIBA5P4Z.js.map → connector-3GCLB6HW.js.map} +0 -0
- /package/{credit-GWNSOZOX.js.map → credit-SXRYMKSD.js.map} +0 -0
- /package/{developer-support-QOTFHN2S.js.map → developer-support-LQHWOQLY.js.map} +0 -0
- /package/{doctor-G4UUSU3R.js.map → doctor-RVC32BKE.js.map} +0 -0
- /package/{finance-QEB2AYB4.js.map → finance-HP4WFZUY.js.map} +0 -0
- /package/{generate-Y2GBOZ4T.js.map → generate-PTBOIM6B.js.map} +0 -0
- /package/{github-JX5PFWTW.js.map → github-62XSFEWF.js.map} +0 -0
- /package/{goal-ETVDARSU.js.map → goal-VRWB2AS3.js.map} +0 -0
- /package/{host-OTBNOMJO.js.map → host-OKISPSSS.js.map} +0 -0
- /package/{logs-MK4VKYGE.js.map → logs-53CMUU4J.js.map} +0 -0
- /package/{mail-4WPLYKL5.js.map → mail-E6R5V6F6.js.map} +0 -0
- /package/{maps-7YWGDMU4.js.map → maps-B7F3CODU.js.map} +0 -0
- /package/{model-P5TLS3KD.js.map → model-2VZQVFTE.js.map} +0 -0
- /package/{model-provider-YUQ65CGB.js.map → model-provider-XALJ5BZB.js.map} +0 -0
- /package/{org-BO46UGHP.js.map → org-JIAZYZUL.js.map} +0 -0
- /package/{people-search-6JZNG46F.js.map → people-search-LZ2BRXA6.js.map} +0 -0
- /package/{phone-OLPRI3UD.js.map → phone-MXUV3YD3.js.map} +0 -0
- /package/{preference-OSLWFBAT.js.map → preference-LONJZKPE.js.map} +0 -0
- /package/{resource-6IX3QB3W.js.map → resource-26IQ2JCS.js.map} +0 -0
- /package/{scrape-T6XHTU6J.js.map → scrape-H2ZA5AJD.js.map} +0 -0
- /package/{search-KYW4WRMQ.js.map → search-R62IJFT4.js.map} +0 -0
- /package/{secret-ORODPPSX.js.map → secret-PHZZWEE3.js.map} +0 -0
- /package/{teams-CGDBFXQ2.js.map → teams-B5NDIX3U.js.map} +0 -0
- /package/{telegram-SCGQFOYI.js.map → telegram-R67CYOON.js.map} +0 -0
- /package/{upgrade-3LEF7WD7.js.map → upgrade-FJKXJO6L.js.map} +0 -0
- /package/{variable-G6WZKJJG.js.map → variable-GNCE5TUG.js.map} +0 -0
- /package/{video-JKYPCENK.js.map → video-UDPAFI36.js.map} +0 -0
- /package/{weather-3WQV3JMX.js.map → weather-O6L5SALA.js.map} +0 -0
- /package/{web-3FRUHVEN.js.map → web-6I5S773Q.js.map} +0 -0
- /package/{web-search-H6WV4RFE.js.map → web-search-GQAKFVCC.js.map} +0 -0
- /package/{whoami-BMNW6CH3.js.map → whoami-MEJV5DZB.js.map} +0 -0
- /package/{workflow-O6CVNJWM.js.map → workflow-PEVNMY2N.js.map} +0 -0
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
getHostedSiteFiles,
|
|
8
8
|
hostedArtifactKindSchema,
|
|
9
9
|
prepareHostedSite
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-QL2BWE6J.js";
|
|
11
|
+
import "./chunk-BSDS7GCS.js";
|
|
12
12
|
import "./chunk-SB7EZ2ZO.js";
|
|
13
13
|
import {
|
|
14
14
|
source_default,
|
|
15
15
|
withErrorHandler
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-E2DKMMGY.js";
|
|
17
|
+
import "./chunk-DK3C2ME6.js";
|
|
18
18
|
import {
|
|
19
19
|
Command,
|
|
20
20
|
InvalidArgumentError
|
|
@@ -657,4 +657,4 @@ Notes:
|
|
|
657
657
|
export {
|
|
658
658
|
zeroHostCommand
|
|
659
659
|
};
|
|
660
|
-
//# sourceMappingURL=host-
|
|
660
|
+
//# sourceMappingURL=host-OKISPSSS.js.map
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
parsePositiveLogCount,
|
|
13
13
|
parseTime,
|
|
14
14
|
searchCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I56DJKTX.js";
|
|
16
16
|
import "./chunk-UG5XA6KU.js";
|
|
17
17
|
import {
|
|
18
18
|
getZeroRunAgentEvents,
|
|
19
19
|
listZeroLogs
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-QL2BWE6J.js";
|
|
21
|
+
import "./chunk-BSDS7GCS.js";
|
|
22
22
|
import "./chunk-SB7EZ2ZO.js";
|
|
23
23
|
import {
|
|
24
24
|
source_default,
|
|
25
25
|
withErrorHandler
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-E2DKMMGY.js";
|
|
27
|
+
import "./chunk-DK3C2ME6.js";
|
|
28
28
|
import {
|
|
29
29
|
Command
|
|
30
30
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -269,4 +269,4 @@ Examples:
|
|
|
269
269
|
export {
|
|
270
270
|
zeroLogsCommand
|
|
271
271
|
};
|
|
272
|
-
//# sourceMappingURL=logs-
|
|
272
|
+
//# sourceMappingURL=logs-53CMUU4J.js.map
|
|
@@ -4,21 +4,21 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
findConnectorStatusItem,
|
|
6
6
|
resolveAgentContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IX2GN2TI.js";
|
|
8
8
|
import {
|
|
9
9
|
linkZeroMailDraft,
|
|
10
10
|
listZeroConnectorCatalogStatus
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QL2BWE6J.js";
|
|
12
|
+
import "./chunk-BSDS7GCS.js";
|
|
13
13
|
import {
|
|
14
14
|
getPlatformOrigin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RGHA7C2O.js";
|
|
16
16
|
import "./chunk-SB7EZ2ZO.js";
|
|
17
17
|
import {
|
|
18
18
|
source_default,
|
|
19
19
|
withErrorHandler
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-E2DKMMGY.js";
|
|
21
|
+
import "./chunk-DK3C2ME6.js";
|
|
22
22
|
import {
|
|
23
23
|
Command
|
|
24
24
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -184,4 +184,4 @@ var zeroMailCommand = new Command().name("mail").description("Review linked Gmai
|
|
|
184
184
|
export {
|
|
185
185
|
zeroMailCommand
|
|
186
186
|
};
|
|
187
|
-
//# sourceMappingURL=mail-
|
|
187
|
+
//# sourceMappingURL=mail-E6R5V6F6.js.map
|
|
@@ -3,14 +3,14 @@ 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-QL2BWE6J.js";
|
|
7
|
+
import "./chunk-BSDS7GCS.js";
|
|
8
8
|
import "./chunk-SB7EZ2ZO.js";
|
|
9
9
|
import {
|
|
10
10
|
source_default,
|
|
11
11
|
withErrorHandler
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-E2DKMMGY.js";
|
|
13
|
+
import "./chunk-DK3C2ME6.js";
|
|
14
14
|
import {
|
|
15
15
|
Command,
|
|
16
16
|
InvalidArgumentError
|
|
@@ -483,4 +483,4 @@ Notes:
|
|
|
483
483
|
export {
|
|
484
484
|
zeroMapsCommand
|
|
485
485
|
};
|
|
486
|
-
//# sourceMappingURL=maps-
|
|
486
|
+
//# sourceMappingURL=maps-B7F3CODU.js.map
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
formatModelProviderRoute,
|
|
7
7
|
getModelProviderRouteKind
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BKSVVARX.js";
|
|
9
9
|
import {
|
|
10
10
|
listZeroModelPolicies
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QL2BWE6J.js";
|
|
12
|
+
import "./chunk-BSDS7GCS.js";
|
|
13
13
|
import "./chunk-SB7EZ2ZO.js";
|
|
14
14
|
import {
|
|
15
15
|
getVm0ModelPriceTier,
|
|
16
16
|
source_default,
|
|
17
17
|
withErrorHandler
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-E2DKMMGY.js";
|
|
19
|
+
import "./chunk-DK3C2ME6.js";
|
|
20
20
|
import {
|
|
21
21
|
Command
|
|
22
22
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
switchCommand,
|
|
90
90
|
zeroModelCommand
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=model-
|
|
92
|
+
//# sourceMappingURL=model-2VZQVFTE.js.map
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
getModelProviderRouteKind,
|
|
7
7
|
getModelProviderTypeLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BKSVVARX.js";
|
|
9
9
|
import {
|
|
10
10
|
listZeroModelPolicies
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QL2BWE6J.js";
|
|
12
|
+
import "./chunk-BSDS7GCS.js";
|
|
13
13
|
import "./chunk-SB7EZ2ZO.js";
|
|
14
14
|
import {
|
|
15
15
|
source_default,
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-E2DKMMGY.js";
|
|
18
|
+
import "./chunk-DK3C2ME6.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
21
21
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -73,4 +73,4 @@ export {
|
|
|
73
73
|
setCommand,
|
|
74
74
|
zeroModelProviderCommand
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=model-provider-
|
|
76
|
+
//# sourceMappingURL=model-provider-XALJ5BZB.js.map
|
|
@@ -25,8 +25,8 @@ import {
|
|
|
25
25
|
setZeroOrgVariable,
|
|
26
26
|
updateZeroOrg,
|
|
27
27
|
upsertZeroOrgModelProvider
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-QL2BWE6J.js";
|
|
29
|
+
import "./chunk-BSDS7GCS.js";
|
|
30
30
|
import "./chunk-SB7EZ2ZO.js";
|
|
31
31
|
import {
|
|
32
32
|
ApiRequestError,
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
hasAuthMethods,
|
|
40
40
|
source_default,
|
|
41
41
|
withErrorHandler
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-E2DKMMGY.js";
|
|
43
|
+
import "./chunk-DK3C2ME6.js";
|
|
44
44
|
import {
|
|
45
45
|
Command
|
|
46
46
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -879,4 +879,4 @@ var zeroOrgCommand = new Command().name("org").description("Manage organization
|
|
|
879
879
|
export {
|
|
880
880
|
zeroOrgCommand
|
|
881
881
|
};
|
|
882
|
-
//# sourceMappingURL=org-
|
|
882
|
+
//# sourceMappingURL=org-JIAZYZUL.js.map
|
package/package.json
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
ZERO_PEOPLE_SEARCH_MAX_LIMIT,
|
|
7
7
|
callZeroPeopleSearch,
|
|
8
8
|
zeroPeopleSearchRequestSchema
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-QL2BWE6J.js";
|
|
10
|
+
import "./chunk-BSDS7GCS.js";
|
|
11
11
|
import "./chunk-SB7EZ2ZO.js";
|
|
12
12
|
import {
|
|
13
13
|
source_default,
|
|
14
14
|
withErrorHandler
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-E2DKMMGY.js";
|
|
16
|
+
import "./chunk-DK3C2ME6.js";
|
|
17
17
|
import {
|
|
18
18
|
Command,
|
|
19
19
|
InvalidArgumentError,
|
|
@@ -125,4 +125,4 @@ Notes:
|
|
|
125
125
|
export {
|
|
126
126
|
zeroPeopleSearchCommand
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=people-search-
|
|
128
|
+
//# sourceMappingURL=people-search-LZ2BRXA6.js.map
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
downloadPhoneFile,
|
|
7
7
|
initPhoneFileUpload,
|
|
8
8
|
sendPhoneMessage
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-QL2BWE6J.js";
|
|
10
|
+
import "./chunk-BSDS7GCS.js";
|
|
11
11
|
import "./chunk-SB7EZ2ZO.js";
|
|
12
12
|
import {
|
|
13
13
|
source_default,
|
|
14
14
|
withErrorHandler
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-E2DKMMGY.js";
|
|
16
|
+
import "./chunk-DK3C2ME6.js";
|
|
17
17
|
import {
|
|
18
18
|
Command
|
|
19
19
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -200,4 +200,4 @@ Examples:
|
|
|
200
200
|
export {
|
|
201
201
|
zeroPhoneCommand
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=phone-
|
|
203
|
+
//# sourceMappingURL=phone-MXUV3YD3.js.map
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
getZeroUserPreferences,
|
|
10
10
|
updateZeroUserPreferences
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-QL2BWE6J.js";
|
|
12
|
+
import "./chunk-BSDS7GCS.js";
|
|
13
13
|
import "./chunk-SB7EZ2ZO.js";
|
|
14
14
|
import {
|
|
15
15
|
source_default,
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-E2DKMMGY.js";
|
|
18
|
+
import "./chunk-DK3C2ME6.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
21
21
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -106,4 +106,4 @@ var zeroPreferenceCommand = new Command().name("preference").description("View o
|
|
|
106
106
|
export {
|
|
107
107
|
zeroPreferenceCommand
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=preference-
|
|
109
|
+
//# sourceMappingURL=preference-LONJZKPE.js.map
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "./chunk-UG5XA6KU.js";
|
|
14
14
|
import {
|
|
15
15
|
getRegistryResourceDownload
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-QL2BWE6J.js";
|
|
17
|
+
import "./chunk-BSDS7GCS.js";
|
|
18
18
|
import "./chunk-SB7EZ2ZO.js";
|
|
19
19
|
import {
|
|
20
20
|
source_default,
|
|
21
21
|
withErrorHandler
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-E2DKMMGY.js";
|
|
23
|
+
import "./chunk-DK3C2ME6.js";
|
|
24
24
|
import {
|
|
25
25
|
Command
|
|
26
26
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -3109,4 +3109,4 @@ export {
|
|
|
3109
3109
|
findRegistryResourceForPull,
|
|
3110
3110
|
zeroResourceCommand
|
|
3111
3111
|
};
|
|
3112
|
-
//# sourceMappingURL=resource-
|
|
3112
|
+
//# sourceMappingURL=resource-26IQ2JCS.js.map
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
callZeroScrape,
|
|
6
6
|
zeroScrapeFormatSchema,
|
|
7
7
|
zeroScrapeModeSchema
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-QL2BWE6J.js";
|
|
9
|
+
import "./chunk-BSDS7GCS.js";
|
|
10
10
|
import "./chunk-SB7EZ2ZO.js";
|
|
11
11
|
import {
|
|
12
12
|
source_default,
|
|
13
13
|
withErrorHandler
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-E2DKMMGY.js";
|
|
15
|
+
import "./chunk-DK3C2ME6.js";
|
|
16
16
|
import {
|
|
17
17
|
Command,
|
|
18
18
|
InvalidArgumentError,
|
|
@@ -97,4 +97,4 @@ Notes:
|
|
|
97
97
|
export {
|
|
98
98
|
zeroScrapeCommand
|
|
99
99
|
};
|
|
100
|
-
//# sourceMappingURL=scrape-
|
|
100
|
+
//# sourceMappingURL=scrape-H2ZA5AJD.js.map
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
parseSearchQuery,
|
|
9
9
|
parseTime,
|
|
10
10
|
runLogsSearch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-I56DJKTX.js";
|
|
12
12
|
import "./chunk-UG5XA6KU.js";
|
|
13
13
|
import {
|
|
14
14
|
searchZeroChat
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-QL2BWE6J.js";
|
|
16
|
+
import "./chunk-BSDS7GCS.js";
|
|
17
17
|
import "./chunk-SB7EZ2ZO.js";
|
|
18
18
|
import {
|
|
19
19
|
source_default,
|
|
20
20
|
withErrorHandler
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-E2DKMMGY.js";
|
|
22
|
+
import "./chunk-DK3C2ME6.js";
|
|
23
23
|
import {
|
|
24
24
|
Command
|
|
25
25
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -196,4 +196,4 @@ export {
|
|
|
196
196
|
buildSlackRecipe,
|
|
197
197
|
zeroSearchCommand
|
|
198
198
|
};
|
|
199
|
-
//# sourceMappingURL=search-
|
|
199
|
+
//# sourceMappingURL=search-R62IJFT4.js.map
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
deleteZeroSecret,
|
|
11
11
|
listZeroSecrets,
|
|
12
12
|
setZeroSecret
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-QL2BWE6J.js";
|
|
14
|
+
import "./chunk-BSDS7GCS.js";
|
|
15
15
|
import "./chunk-SB7EZ2ZO.js";
|
|
16
16
|
import {
|
|
17
17
|
source_default,
|
|
18
18
|
withErrorHandler
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-E2DKMMGY.js";
|
|
20
|
+
import "./chunk-DK3C2ME6.js";
|
|
21
21
|
import {
|
|
22
22
|
Command
|
|
23
23
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -147,4 +147,4 @@ var zeroSecretCommand = new Command().name("secret").description("Read or write
|
|
|
147
147
|
export {
|
|
148
148
|
zeroSecretCommand
|
|
149
149
|
};
|
|
150
|
-
//# sourceMappingURL=secret-
|
|
150
|
+
//# sourceMappingURL=secret-PHZZWEE3.js.map
|
|
@@ -5,15 +5,18 @@ import {
|
|
|
5
5
|
completeSlackFileUpload,
|
|
6
6
|
downloadSlackFile,
|
|
7
7
|
initSlackFileUpload,
|
|
8
|
+
materializeSlackFileUpload,
|
|
8
9
|
sendSlackMessage
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import
|
|
10
|
+
} from "./chunk-QL2BWE6J.js";
|
|
11
|
+
import {
|
|
12
|
+
inferWebUploadContentType
|
|
13
|
+
} from "./chunk-BSDS7GCS.js";
|
|
11
14
|
import "./chunk-SB7EZ2ZO.js";
|
|
12
15
|
import {
|
|
13
16
|
source_default,
|
|
14
17
|
withErrorHandler
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-E2DKMMGY.js";
|
|
19
|
+
import "./chunk-DK3C2ME6.js";
|
|
17
20
|
import {
|
|
18
21
|
Command
|
|
19
22
|
} from "./chunk-LD4ZVU4O.js";
|
|
@@ -110,9 +113,171 @@ Examples:
|
|
|
110
113
|
|
|
111
114
|
// src/commands/zero/slack/upload-file.ts
|
|
112
115
|
init_esm_shims();
|
|
116
|
+
import { createHash, randomUUID } from "crypto";
|
|
113
117
|
import { statSync, readFileSync as readFileSync2 } from "fs";
|
|
114
118
|
import { basename } from "path";
|
|
115
|
-
|
|
119
|
+
function readUploadFile(path) {
|
|
120
|
+
let size;
|
|
121
|
+
try {
|
|
122
|
+
size = statSync(path).size;
|
|
123
|
+
} catch {
|
|
124
|
+
throw new Error(`File not found: ${path}`);
|
|
125
|
+
}
|
|
126
|
+
if (size === 0) {
|
|
127
|
+
throw new Error("File is empty");
|
|
128
|
+
}
|
|
129
|
+
return { content: readFileSync2(path), size };
|
|
130
|
+
}
|
|
131
|
+
function warnDeliveryRetry(operationId) {
|
|
132
|
+
console.warn(source_default.dim(` Retry with --operation-id ${operationId}`));
|
|
133
|
+
}
|
|
134
|
+
async function uploadDirectlyToSlack(initialized, options, fileContent) {
|
|
135
|
+
const uploadResponse = await fetch(initialized.uploadUrl, {
|
|
136
|
+
method: "POST",
|
|
137
|
+
body: fileContent
|
|
138
|
+
});
|
|
139
|
+
if (!uploadResponse.ok) {
|
|
140
|
+
throw new Error(
|
|
141
|
+
`File upload failed: ${uploadResponse.status} ${uploadResponse.statusText}`
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
const result = await completeSlackFileUpload({
|
|
145
|
+
fileId: initialized.fileId,
|
|
146
|
+
channel: options.channel,
|
|
147
|
+
threadTs: options.thread,
|
|
148
|
+
title: options.title,
|
|
149
|
+
initialComment: options.comment
|
|
150
|
+
});
|
|
151
|
+
console.log(source_default.green(`\u2713 File uploaded (file_id: ${result.fileId})`));
|
|
152
|
+
console.log(source_default.dim(` permalink: ${result.permalink}`));
|
|
153
|
+
}
|
|
154
|
+
async function uploadCanonicalBody(initialized, contentType, fileContent) {
|
|
155
|
+
if (!initialized.uploadUrl) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
const uploadResponse = await fetch(initialized.uploadUrl, {
|
|
159
|
+
method: "PUT",
|
|
160
|
+
headers: { "Content-Type": contentType },
|
|
161
|
+
body: fileContent
|
|
162
|
+
});
|
|
163
|
+
if (!uploadResponse.ok) {
|
|
164
|
+
throw new Error(
|
|
165
|
+
`Canonical file upload failed: ${uploadResponse.status} ${uploadResponse.statusText}`
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
async function uploadPendingSlackBody(delivery, fileContent) {
|
|
170
|
+
try {
|
|
171
|
+
const uploadResponse = await fetch(delivery.uploadUrl, {
|
|
172
|
+
method: "POST",
|
|
173
|
+
body: fileContent
|
|
174
|
+
});
|
|
175
|
+
if (!uploadResponse.ok) {
|
|
176
|
+
return `Slack upload failed: ${uploadResponse.status} ${uploadResponse.statusText}`;
|
|
177
|
+
}
|
|
178
|
+
return void 0;
|
|
179
|
+
} catch (error) {
|
|
180
|
+
return error instanceof Error ? error.message : "Slack upload failed";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
async function completeCanonicalSlackDelivery(args) {
|
|
184
|
+
const uploadError = await uploadPendingSlackBody(
|
|
185
|
+
args.delivery,
|
|
186
|
+
args.fileContent
|
|
187
|
+
);
|
|
188
|
+
let result;
|
|
189
|
+
try {
|
|
190
|
+
result = await completeSlackFileUpload({
|
|
191
|
+
fileId: args.delivery.fileId,
|
|
192
|
+
channel: args.options.channel,
|
|
193
|
+
...args.options.thread ? { threadTs: args.options.thread } : {},
|
|
194
|
+
...args.options.title ? { title: args.options.title } : {},
|
|
195
|
+
...args.options.comment ? { initialComment: args.options.comment } : {},
|
|
196
|
+
canonicalAssetId: args.initialized.assetId,
|
|
197
|
+
operationId: args.initialized.operationId,
|
|
198
|
+
...uploadError ? { uploadError } : {}
|
|
199
|
+
});
|
|
200
|
+
} catch (error) {
|
|
201
|
+
console.warn(
|
|
202
|
+
source_default.yellow(
|
|
203
|
+
`\u26A0 Slack delivery status could not be recorded: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
204
|
+
)
|
|
205
|
+
);
|
|
206
|
+
warnDeliveryRetry(args.initialized.operationId);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
if (result.deliveryStatus === "failed") {
|
|
210
|
+
console.warn(
|
|
211
|
+
source_default.yellow(
|
|
212
|
+
`\u26A0 Slack delivery failed: ${result.deliveryError ?? "Unknown error"}`
|
|
213
|
+
)
|
|
214
|
+
);
|
|
215
|
+
warnDeliveryRetry(args.initialized.operationId);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
console.log(source_default.green(`\u2713 Delivered to Slack (file_id: ${result.fileId})`));
|
|
219
|
+
console.log(source_default.dim(` permalink: ${result.permalink}`));
|
|
220
|
+
}
|
|
221
|
+
async function publishCanonicalFile(initialized, options, contentType, fileContent) {
|
|
222
|
+
await uploadCanonicalBody(initialized, contentType, fileContent);
|
|
223
|
+
const materialized = await materializeSlackFileUpload({
|
|
224
|
+
assetId: initialized.assetId,
|
|
225
|
+
operationId: initialized.operationId
|
|
226
|
+
});
|
|
227
|
+
console.log(
|
|
228
|
+
source_default.green(`\u2713 File published (asset_id: ${materialized.assetId})`)
|
|
229
|
+
);
|
|
230
|
+
console.log(source_default.dim(` url: ${materialized.url}`));
|
|
231
|
+
if (materialized.delivery.status === "delivered") {
|
|
232
|
+
console.log(
|
|
233
|
+
source_default.green(
|
|
234
|
+
`\u2713 Delivered to Slack (file_id: ${materialized.delivery.fileId})`
|
|
235
|
+
)
|
|
236
|
+
);
|
|
237
|
+
console.log(source_default.dim(` permalink: ${materialized.delivery.permalink}`));
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
if (materialized.delivery.status === "failed") {
|
|
241
|
+
console.warn(
|
|
242
|
+
source_default.yellow(`\u26A0 Slack delivery failed: ${materialized.delivery.message}`)
|
|
243
|
+
);
|
|
244
|
+
warnDeliveryRetry(initialized.operationId);
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
await completeCanonicalSlackDelivery({
|
|
248
|
+
initialized,
|
|
249
|
+
delivery: materialized.delivery,
|
|
250
|
+
options,
|
|
251
|
+
fileContent
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
async function uploadFile(options) {
|
|
255
|
+
const file = readUploadFile(options.file);
|
|
256
|
+
const filename = basename(options.file);
|
|
257
|
+
const rawContentType = options.contentType ?? inferWebUploadContentType(options.file);
|
|
258
|
+
const contentType = rawContentType.split(";")[0]?.trim().toLowerCase() ?? rawContentType;
|
|
259
|
+
const operationId = options.operationId ?? randomUUID();
|
|
260
|
+
const checksumSha256 = createHash("sha256").update(file.content).digest("hex");
|
|
261
|
+
const initialized = await initSlackFileUpload({
|
|
262
|
+
filename,
|
|
263
|
+
length: file.size,
|
|
264
|
+
canonical: {
|
|
265
|
+
operationId,
|
|
266
|
+
contentType,
|
|
267
|
+
checksumSha256,
|
|
268
|
+
channel: options.channel,
|
|
269
|
+
threadTs: options.thread,
|
|
270
|
+
title: options.title,
|
|
271
|
+
initialComment: options.comment
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
if ("fileId" in initialized) {
|
|
275
|
+
await uploadDirectlyToSlack(initialized, options, file.content);
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
await publishCanonicalFile(initialized, options, contentType, file.content);
|
|
279
|
+
}
|
|
280
|
+
var uploadFileCommand = new Command().name("upload-file").description("Upload a file to a Slack channel as the bot").requiredOption("-f, --file <path>", "Local file path to upload").requiredOption("-c, --channel <id>", "Slack channel ID").option("--thread <ts>", "Thread timestamp to post as a reply").option("--title <title>", "Display title for the file").option("--comment <text>", "Initial comment to accompany the file").option("--content-type <mime>", "Override inferred content type").option("--operation-id <uuid>", "Reuse a failed upload operation").addHelpText(
|
|
116
281
|
"after",
|
|
117
282
|
`
|
|
118
283
|
Examples:
|
|
@@ -122,47 +287,9 @@ Examples:
|
|
|
122
287
|
|
|
123
288
|
Notes:
|
|
124
289
|
- Uses the bot token (not user SLACK_TOKEN), so no files:write permission is needed
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
async (options) => {
|
|
129
|
-
let fileSize;
|
|
130
|
-
try {
|
|
131
|
-
const stat = statSync(options.file);
|
|
132
|
-
fileSize = stat.size;
|
|
133
|
-
} catch {
|
|
134
|
-
throw new Error(`File not found: ${options.file}`);
|
|
135
|
-
}
|
|
136
|
-
if (fileSize === 0) {
|
|
137
|
-
throw new Error("File is empty");
|
|
138
|
-
}
|
|
139
|
-
const filename = basename(options.file);
|
|
140
|
-
const { uploadUrl, fileId } = await initSlackFileUpload({
|
|
141
|
-
filename,
|
|
142
|
-
length: fileSize
|
|
143
|
-
});
|
|
144
|
-
const fileContent = readFileSync2(options.file);
|
|
145
|
-
const uploadResponse = await fetch(uploadUrl, {
|
|
146
|
-
method: "POST",
|
|
147
|
-
body: fileContent
|
|
148
|
-
});
|
|
149
|
-
if (!uploadResponse.ok) {
|
|
150
|
-
throw new Error(
|
|
151
|
-
`File upload failed: ${uploadResponse.status} ${uploadResponse.statusText}`
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
const result = await completeSlackFileUpload({
|
|
155
|
-
fileId,
|
|
156
|
-
channel: options.channel,
|
|
157
|
-
threadTs: options.thread,
|
|
158
|
-
title: options.title,
|
|
159
|
-
initialComment: options.comment
|
|
160
|
-
});
|
|
161
|
-
console.log(source_default.green(`\u2713 File uploaded (file_id: ${result.fileId})`));
|
|
162
|
-
console.log(source_default.dim(` permalink: ${result.permalink}`));
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
);
|
|
290
|
+
- Run-scoped calls publish to VM0 storage before Slack delivery
|
|
291
|
+
- Returns canonical asset details and Slack delivery status`
|
|
292
|
+
).action(withErrorHandler(uploadFile));
|
|
166
293
|
|
|
167
294
|
// src/commands/zero/slack/download-file.ts
|
|
168
295
|
init_esm_shims();
|
|
@@ -219,4 +346,4 @@ Examples:
|
|
|
219
346
|
export {
|
|
220
347
|
zeroSlackCommand
|
|
221
348
|
};
|
|
222
|
-
//# sourceMappingURL=slack-
|
|
349
|
+
//# sourceMappingURL=slack-DQJUJIWY.js.map
|