@vm0/cli 9.247.1 → 9.249.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-3O7DLCI6.js → agent-J7UZFWFE.js} +5 -5
- package/{banking-N7TH3M6W.js → banking-TLHPJBS5.js} +3 -3
- package/{chat-OBBQFVCB.js → chat-PWHG42AL.js} +4 -4
- package/{chunk-GKHJ3S5D.js → chunk-3QXK5RR7.js} +384 -59
- package/chunk-3QXK5RR7.js.map +1 -0
- package/{chunk-VU77IVUB.js → chunk-6IFIMWPY.js} +4 -4
- package/{chunk-DZD2Q43U.js → chunk-HJOW32CJ.js} +2 -2
- package/{chunk-QRHGYCWC.js → chunk-LDQPMTQY.js} +16 -9
- package/chunk-LDQPMTQY.js.map +1 -0
- package/{chunk-OMHLRPHF.js → chunk-PD3A7MGG.js} +2 -2
- package/{chunk-HURTTXSE.js → chunk-XE764T2N.js} +5 -4
- package/{chunk-HURTTXSE.js.map → chunk-XE764T2N.js.map} +1 -1
- package/{chunk-Q7VOF4A7.js → chunk-ZJENFGWZ.js} +2 -2
- package/{chunk-H2K5IOKP.js → chunk-ZKWCFMDV.js} +2 -2
- package/{computer-use-DDLC5V5I.js → computer-use-EE6NPCXS.js} +3 -3
- package/{connector-B5FZ7XAI.js → connector-SCLSWTMT.js} +6 -6
- package/{credit-TQO2WBDH.js → credit-2VN2PYRE.js} +4 -4
- package/{developer-support-MD4JFNGZ.js → developer-support-V3N3BOYC.js} +3 -3
- package/{doctor-5MTAY24M.js → doctor-AQLFJCC6.js} +3 -3
- package/feishu-XHOLF32I.js +118 -0
- package/feishu-XHOLF32I.js.map +1 -0
- package/finance-TF5RU7FD.js +127 -0
- package/finance-TF5RU7FD.js.map +1 -0
- package/{generate-SM3OV5ZY.js → generate-GFFAZX7Y.js} +4 -4
- package/{github-WXLSVDOU.js → github-V4ZW6TI4.js} +3 -3
- package/{goal-PWPTJOJN.js → goal-TED5FUYM.js} +3 -3
- package/{host-T577B7RC.js → host-HKDD3CHD.js} +3 -3
- package/{logs-FEVPNDNK.js → logs-SBMQQM46.js} +4 -4
- package/{mail-TFOXDOES.js → mail-SF5JKA2F.js} +5 -5
- package/{maps-T4DRJFI4.js → maps-D5NKFEAD.js} +3 -3
- package/{model-RBM5HPKS.js → model-S7CMGRIH.js} +4 -4
- package/{model-provider-FF4FXASQ.js → model-provider-ATXIDNKM.js} +4 -4
- package/{org-3QDTGZ2T.js → org-6JBRK5NL.js} +3 -3
- package/package.json +1 -1
- package/{phone-2HDY74SX.js → phone-B3UWRGWF.js} +3 -3
- package/{preference-HQRO26MP.js → preference-HRRRUEP3.js} +3 -3
- package/{resource-G6DNQIC7.js → resource-65P5D2LT.js} +3 -3
- package/{scrape-YFDOJTOR.js → scrape-N3AWNV2R.js} +3 -3
- package/{search-BARFJYS3.js → search-T76RE67L.js} +4 -4
- package/{secret-EYV5LULE.js → secret-WALMH6S2.js} +3 -3
- package/{slack-GRHTZFLV.js → slack-WXDCNAI2.js} +171 -45
- package/slack-WXDCNAI2.js.map +1 -0
- package/{teams-IJX57ZTA.js → teams-LAQBLRUR.js} +3 -3
- package/{telegram-SDYOW52Z.js → telegram-5BASFBEA.js} +3 -3
- package/{variable-YDBXBWEI.js → variable-GBVHKR6I.js} +3 -3
- package/{video-447INHV3.js → video-3FXQGBYB.js} +2 -2
- package/{weather-2RRPLFNE.js → weather-JNMUODGJ.js} +3 -3
- package/{web-Q27RVDI3.js → web-DZT26X4I.js} +3 -3
- package/{web-search-ZCWKTFQE.js → web-search-36UUSSUX.js} +3 -3
- package/{whoami-KXICC7YZ.js → whoami-NXYCNII4.js} +5 -5
- package/{workflow-ZTBOMB6B.js → workflow-WHTBJCEF.js} +3 -3
- package/zero.js +55 -37
- package/zero.js.map +1 -1
- package/chunk-GKHJ3S5D.js.map +0 -1
- package/chunk-QRHGYCWC.js.map +0 -1
- package/slack-GRHTZFLV.js.map +0 -1
- /package/{agent-3O7DLCI6.js.map → agent-J7UZFWFE.js.map} +0 -0
- /package/{banking-N7TH3M6W.js.map → banking-TLHPJBS5.js.map} +0 -0
- /package/{chat-OBBQFVCB.js.map → chat-PWHG42AL.js.map} +0 -0
- /package/{chunk-VU77IVUB.js.map → chunk-6IFIMWPY.js.map} +0 -0
- /package/{chunk-DZD2Q43U.js.map → chunk-HJOW32CJ.js.map} +0 -0
- /package/{chunk-OMHLRPHF.js.map → chunk-PD3A7MGG.js.map} +0 -0
- /package/{chunk-Q7VOF4A7.js.map → chunk-ZJENFGWZ.js.map} +0 -0
- /package/{chunk-H2K5IOKP.js.map → chunk-ZKWCFMDV.js.map} +0 -0
- /package/{computer-use-DDLC5V5I.js.map → computer-use-EE6NPCXS.js.map} +0 -0
- /package/{connector-B5FZ7XAI.js.map → connector-SCLSWTMT.js.map} +0 -0
- /package/{credit-TQO2WBDH.js.map → credit-2VN2PYRE.js.map} +0 -0
- /package/{developer-support-MD4JFNGZ.js.map → developer-support-V3N3BOYC.js.map} +0 -0
- /package/{doctor-5MTAY24M.js.map → doctor-AQLFJCC6.js.map} +0 -0
- /package/{generate-SM3OV5ZY.js.map → generate-GFFAZX7Y.js.map} +0 -0
- /package/{github-WXLSVDOU.js.map → github-V4ZW6TI4.js.map} +0 -0
- /package/{goal-PWPTJOJN.js.map → goal-TED5FUYM.js.map} +0 -0
- /package/{host-T577B7RC.js.map → host-HKDD3CHD.js.map} +0 -0
- /package/{logs-FEVPNDNK.js.map → logs-SBMQQM46.js.map} +0 -0
- /package/{mail-TFOXDOES.js.map → mail-SF5JKA2F.js.map} +0 -0
- /package/{maps-T4DRJFI4.js.map → maps-D5NKFEAD.js.map} +0 -0
- /package/{model-RBM5HPKS.js.map → model-S7CMGRIH.js.map} +0 -0
- /package/{model-provider-FF4FXASQ.js.map → model-provider-ATXIDNKM.js.map} +0 -0
- /package/{org-3QDTGZ2T.js.map → org-6JBRK5NL.js.map} +0 -0
- /package/{phone-2HDY74SX.js.map → phone-B3UWRGWF.js.map} +0 -0
- /package/{preference-HQRO26MP.js.map → preference-HRRRUEP3.js.map} +0 -0
- /package/{resource-G6DNQIC7.js.map → resource-65P5D2LT.js.map} +0 -0
- /package/{scrape-YFDOJTOR.js.map → scrape-N3AWNV2R.js.map} +0 -0
- /package/{search-BARFJYS3.js.map → search-T76RE67L.js.map} +0 -0
- /package/{secret-EYV5LULE.js.map → secret-WALMH6S2.js.map} +0 -0
- /package/{teams-IJX57ZTA.js.map → teams-LAQBLRUR.js.map} +0 -0
- /package/{telegram-SDYOW52Z.js.map → telegram-5BASFBEA.js.map} +0 -0
- /package/{variable-YDBXBWEI.js.map → variable-GBVHKR6I.js.map} +0 -0
- /package/{video-447INHV3.js.map → video-3FXQGBYB.js.map} +0 -0
- /package/{weather-2RRPLFNE.js.map → weather-JNMUODGJ.js.map} +0 -0
- /package/{web-Q27RVDI3.js.map → web-DZT26X4I.js.map} +0 -0
- /package/{web-search-ZCWKTFQE.js.map → web-search-36UUSSUX.js.map} +0 -0
- /package/{whoami-KXICC7YZ.js.map → whoami-NXYCNII4.js.map} +0 -0
- /package/{workflow-ZTBOMB6B.js.map → workflow-WHTBJCEF.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
UNKNOWN_PERMISSION_GRANT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3QXK5RR7.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
resolveFirewallMetadataPolicies,
|
|
131
131
|
permissionGrantsToFirewallPolicies
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-ZJENFGWZ.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
getZeroAgent,
|
|
6
6
|
getZeroAgentUserConnectors
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3QXK5RR7.js";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
10
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -265,4 +265,4 @@ export {
|
|
|
265
265
|
resolveManualGrantAuthMethod,
|
|
266
266
|
resolveAgentContext
|
|
267
267
|
};
|
|
268
|
-
//# sourceMappingURL=chunk-
|
|
268
|
+
//# sourceMappingURL=chunk-ZKWCFMDV.js.map
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
fetchComputerUseScreenshot,
|
|
13
13
|
getComputerUseCommand,
|
|
14
14
|
listComputerUseHosts
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3QXK5RR7.js";
|
|
16
16
|
import {
|
|
17
17
|
ApiRequestError,
|
|
18
18
|
withErrorHandler
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XE764T2N.js";
|
|
20
20
|
import "./chunk-LRHXR7JT.js";
|
|
21
21
|
import {
|
|
22
22
|
Command
|
|
@@ -969,4 +969,4 @@ export {
|
|
|
969
969
|
formatComputerUseResultForConsole,
|
|
970
970
|
zeroComputerUseCommand
|
|
971
971
|
};
|
|
972
|
-
//# sourceMappingURL=computer-use-
|
|
972
|
+
//# sourceMappingURL=computer-use-EE6NPCXS.js.map
|
|
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
findFirewallMetadataPermission
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZJENFGWZ.js";
|
|
7
7
|
import {
|
|
8
8
|
availableConnectorRefs,
|
|
9
9
|
findConnectorStatusItem,
|
|
10
10
|
resolveAgentContext,
|
|
11
11
|
resolveManualGrantAuthMethod,
|
|
12
12
|
searchPublicConnectorCatalog
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZKWCFMDV.js";
|
|
14
14
|
import {
|
|
15
15
|
getPlatformOrigin,
|
|
16
16
|
toPlatformUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PD3A7MGG.js";
|
|
18
18
|
import {
|
|
19
19
|
UNKNOWN_PERMISSION_GRANT,
|
|
20
20
|
connectZeroConnectorManualGrant,
|
|
@@ -29,14 +29,14 @@ import {
|
|
|
29
29
|
getZeroCustomConnector,
|
|
30
30
|
listZeroConnectorCatalogStatus,
|
|
31
31
|
listZeroCustomConnectors
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3QXK5RR7.js";
|
|
33
33
|
import "./chunk-LTDQISD7.js";
|
|
34
34
|
import {
|
|
35
35
|
ApiRequestError,
|
|
36
36
|
getApiUrl,
|
|
37
37
|
source_default,
|
|
38
38
|
withErrorHandler
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XE764T2N.js";
|
|
40
40
|
import "./chunk-LRHXR7JT.js";
|
|
41
41
|
import {
|
|
42
42
|
Command,
|
|
@@ -1556,4 +1556,4 @@ var zeroConnectorCommand = new Command().name("connector").description("Manage a
|
|
|
1556
1556
|
export {
|
|
1557
1557
|
zeroConnectorCommand
|
|
1558
1558
|
};
|
|
1559
|
-
//# sourceMappingURL=connector-
|
|
1559
|
+
//# sourceMappingURL=connector-SCLSWTMT.js.map
|
|
@@ -3,17 +3,17 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
getPlatformOrigin
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PD3A7MGG.js";
|
|
7
7
|
import {
|
|
8
8
|
createZeroCreditCheckout,
|
|
9
9
|
getZeroBillingStatus,
|
|
10
10
|
getZeroOrgMembers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3QXK5RR7.js";
|
|
12
12
|
import "./chunk-LTDQISD7.js";
|
|
13
13
|
import {
|
|
14
14
|
source_default,
|
|
15
15
|
withErrorHandler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XE764T2N.js";
|
|
17
17
|
import {
|
|
18
18
|
decodeZeroTokenPayload
|
|
19
19
|
} from "./chunk-LRHXR7JT.js";
|
|
@@ -125,4 +125,4 @@ var zeroCreditCommand = new Command().name("credit").description("View credit ba
|
|
|
125
125
|
export {
|
|
126
126
|
zeroCreditCommand
|
|
127
127
|
};
|
|
128
|
-
//# sourceMappingURL=credit-
|
|
128
|
+
//# sourceMappingURL=credit-2VN2PYRE.js.map
|
|
@@ -4,11 +4,11 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
requestDeveloperSupportConsent,
|
|
6
6
|
submitDeveloperSupport
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3QXK5RR7.js";
|
|
8
8
|
import "./chunk-LTDQISD7.js";
|
|
9
9
|
import {
|
|
10
10
|
withErrorHandler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XE764T2N.js";
|
|
12
12
|
import "./chunk-LRHXR7JT.js";
|
|
13
13
|
import {
|
|
14
14
|
Command
|
|
@@ -60,4 +60,4 @@ Notes:
|
|
|
60
60
|
export {
|
|
61
61
|
zeroDeveloperSupportCommand
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=developer-support-
|
|
63
|
+
//# sourceMappingURL=developer-support-V3N3BOYC.js.map
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
getZeroBillingStatus,
|
|
6
6
|
getZeroOrg,
|
|
7
7
|
getZeroOrgMembers
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3QXK5RR7.js";
|
|
9
9
|
import "./chunk-LTDQISD7.js";
|
|
10
10
|
import {
|
|
11
11
|
source_default,
|
|
12
12
|
withErrorHandler
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XE764T2N.js";
|
|
14
14
|
import "./chunk-LRHXR7JT.js";
|
|
15
15
|
import {
|
|
16
16
|
Command
|
|
@@ -96,4 +96,4 @@ Notes:
|
|
|
96
96
|
export {
|
|
97
97
|
zeroDoctorCommand
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=doctor-
|
|
99
|
+
//# sourceMappingURL=doctor-AQLFJCC6.js.map
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
sendFeishuMessage
|
|
6
|
+
} from "./chunk-3QXK5RR7.js";
|
|
7
|
+
import "./chunk-LTDQISD7.js";
|
|
8
|
+
import {
|
|
9
|
+
source_default,
|
|
10
|
+
withErrorHandler
|
|
11
|
+
} from "./chunk-XE764T2N.js";
|
|
12
|
+
import "./chunk-LRHXR7JT.js";
|
|
13
|
+
import {
|
|
14
|
+
Command
|
|
15
|
+
} from "./chunk-B3W2RUBP.js";
|
|
16
|
+
import {
|
|
17
|
+
init_esm_shims
|
|
18
|
+
} from "./chunk-DIRAZ3YX.js";
|
|
19
|
+
|
|
20
|
+
// src/commands/zero/feishu/index.ts
|
|
21
|
+
init_esm_shims();
|
|
22
|
+
|
|
23
|
+
// src/commands/zero/feishu/message/index.ts
|
|
24
|
+
init_esm_shims();
|
|
25
|
+
|
|
26
|
+
// src/commands/zero/feishu/message/send.ts
|
|
27
|
+
init_esm_shims();
|
|
28
|
+
import { readFileSync } from "fs";
|
|
29
|
+
function isRecord(value) {
|
|
30
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
31
|
+
}
|
|
32
|
+
function parseCard(input) {
|
|
33
|
+
if (!input) {
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
let parsed;
|
|
37
|
+
try {
|
|
38
|
+
parsed = JSON.parse(input);
|
|
39
|
+
} catch {
|
|
40
|
+
throw new Error("Invalid JSON for --card flag", {
|
|
41
|
+
cause: new Error("Provide a valid Feishu card JSON object")
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (!isRecord(parsed)) {
|
|
45
|
+
throw new Error("Invalid JSON for --card", {
|
|
46
|
+
cause: new Error("Provide a Feishu card JSON object")
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
return parsed;
|
|
50
|
+
}
|
|
51
|
+
var sendCommand = new Command().name("send").description("Send a message to a Feishu chat or user").option("-i, --installation <id>", "Feishu installation ID").option("-c, --chat <id>", "Feishu chat ID").option("-u, --user <open-id>", 'Feishu user open ID (use "me" for yourself)').option("-r, --reply <message-id>", "Message ID to reply to").option("--thread", "Reply in a Feishu thread").option("-t, --text <message>", "Message text").option("--card <json>", "Feishu interactive card JSON").addHelpText(
|
|
52
|
+
"after",
|
|
53
|
+
`
|
|
54
|
+
Examples:
|
|
55
|
+
Chat message: zero feishu message send -c oc_xxx -t "Hello!"
|
|
56
|
+
Direct message: zero feishu message send -u ou_xxx -t "Hello!"
|
|
57
|
+
DM yourself: zero feishu message send -u me -t "Hello!"
|
|
58
|
+
Thread reply: zero feishu message send -r om_xxx --thread -t "Reply"
|
|
59
|
+
Interactive card: zero feishu message send -c oc_xxx --card '{"schema":"2.0","body":{"elements":[]}}'
|
|
60
|
+
Select a custom app: zero feishu message send -i <installation-id> -c oc_xxx -t "Hello!"
|
|
61
|
+
|
|
62
|
+
Notes:
|
|
63
|
+
- Exactly one of --chat, --user, or --reply is required
|
|
64
|
+
- Exactly one of --text or --card is required
|
|
65
|
+
- --installation is required when the organization has multiple Feishu bots`
|
|
66
|
+
).action(
|
|
67
|
+
withErrorHandler(async (options) => {
|
|
68
|
+
const targets = [options.chat, options.user, options.reply].filter(
|
|
69
|
+
Boolean
|
|
70
|
+
);
|
|
71
|
+
if (targets.length !== 1) {
|
|
72
|
+
throw new Error(
|
|
73
|
+
"Exactly one of --chat, --user, or --reply must be provided"
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
if (options.thread && !options.reply) {
|
|
77
|
+
throw new Error("--thread requires --reply");
|
|
78
|
+
}
|
|
79
|
+
let text = options.text;
|
|
80
|
+
if (!text && !options.card && !process.stdin.isTTY) {
|
|
81
|
+
try {
|
|
82
|
+
text = readFileSync("/dev/stdin", "utf8").trim();
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
const card = parseCard(options.card);
|
|
87
|
+
if (Boolean(text) === Boolean(card)) {
|
|
88
|
+
throw new Error("Exactly one of --text or --card must be provided");
|
|
89
|
+
}
|
|
90
|
+
const result = await sendFeishuMessage({
|
|
91
|
+
installationId: options.installation,
|
|
92
|
+
chat: options.chat,
|
|
93
|
+
user: options.user,
|
|
94
|
+
replyToMessageId: options.reply,
|
|
95
|
+
replyInThread: options.thread,
|
|
96
|
+
text,
|
|
97
|
+
card
|
|
98
|
+
});
|
|
99
|
+
console.log(source_default.green(`\u2713 Message sent (message: ${result.messageId})`));
|
|
100
|
+
})
|
|
101
|
+
);
|
|
102
|
+
|
|
103
|
+
// src/commands/zero/feishu/message/index.ts
|
|
104
|
+
var zeroFeishuMessageCommand = new Command().name("message").description("Send Feishu messages").addCommand(sendCommand);
|
|
105
|
+
|
|
106
|
+
// src/commands/zero/feishu/index.ts
|
|
107
|
+
var zeroFeishuCommand = new Command().name("feishu").description("Send messages to Feishu as an organization bot").addCommand(zeroFeishuMessageCommand).addHelpText(
|
|
108
|
+
"after",
|
|
109
|
+
`
|
|
110
|
+
Examples:
|
|
111
|
+
Send to a chat: zero feishu message send -c <chat-id> -t "Hello!"
|
|
112
|
+
Send a DM: zero feishu message send -u <open-id> -t "Hello!"
|
|
113
|
+
Reply in a thread: zero feishu message send -r <message-id> --thread -t "Reply"`
|
|
114
|
+
);
|
|
115
|
+
export {
|
|
116
|
+
zeroFeishuCommand
|
|
117
|
+
};
|
|
118
|
+
//# sourceMappingURL=feishu-XHOLF32I.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/feishu/index.ts","../src/commands/zero/feishu/message/index.ts","../src/commands/zero/feishu/message/send.ts"],"sourcesContent":["import { Command } from \"commander\";\n\nimport { zeroFeishuMessageCommand } from \"./message\";\n\nexport const zeroFeishuCommand = new Command()\n .name(\"feishu\")\n .description(\"Send messages to Feishu as an organization bot\")\n .addCommand(zeroFeishuMessageCommand)\n .addHelpText(\n \"after\",\n `\nExamples:\n Send to a chat: zero feishu message send -c <chat-id> -t \"Hello!\"\n Send a DM: zero feishu message send -u <open-id> -t \"Hello!\"\n Reply in a thread: zero feishu message send -r <message-id> --thread -t \"Reply\"`,\n );\n","import { Command } from \"commander\";\n\nimport { sendCommand } from \"./send\";\n\nexport const zeroFeishuMessageCommand = new Command()\n .name(\"message\")\n .description(\"Send Feishu messages\")\n .addCommand(sendCommand);\n","import { readFileSync } from \"node:fs\";\n\nimport chalk from \"chalk\";\nimport { Command } from \"commander\";\n\nimport { sendFeishuMessage } from \"../../../../lib/api\";\nimport { withErrorHandler } from \"../../../../lib/command\";\n\ninterface SendFeishuOptions {\n readonly installation?: string;\n readonly chat?: string;\n readonly user?: string;\n readonly reply?: string;\n readonly thread?: boolean;\n readonly text?: string;\n readonly card?: string;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return Boolean(value) && typeof value === \"object\" && !Array.isArray(value);\n}\n\nfunction parseCard(\n input: string | undefined,\n): Record<string, unknown> | undefined {\n if (!input) {\n return undefined;\n }\n let parsed: unknown;\n try {\n parsed = JSON.parse(input);\n } catch {\n throw new Error(\"Invalid JSON for --card flag\", {\n cause: new Error(\"Provide a valid Feishu card JSON object\"),\n });\n }\n if (!isRecord(parsed)) {\n throw new Error(\"Invalid JSON for --card\", {\n cause: new Error(\"Provide a Feishu card JSON object\"),\n });\n }\n return parsed;\n}\n\nexport const sendCommand = new Command()\n .name(\"send\")\n .description(\"Send a message to a Feishu chat or user\")\n .option(\"-i, --installation <id>\", \"Feishu installation ID\")\n .option(\"-c, --chat <id>\", \"Feishu chat ID\")\n .option(\"-u, --user <open-id>\", 'Feishu user open ID (use \"me\" for yourself)')\n .option(\"-r, --reply <message-id>\", \"Message ID to reply to\")\n .option(\"--thread\", \"Reply in a Feishu thread\")\n .option(\"-t, --text <message>\", \"Message text\")\n .option(\"--card <json>\", \"Feishu interactive card JSON\")\n .addHelpText(\n \"after\",\n `\nExamples:\n Chat message: zero feishu message send -c oc_xxx -t \"Hello!\"\n Direct message: zero feishu message send -u ou_xxx -t \"Hello!\"\n DM yourself: zero feishu message send -u me -t \"Hello!\"\n Thread reply: zero feishu message send -r om_xxx --thread -t \"Reply\"\n Interactive card: zero feishu message send -c oc_xxx --card '{\"schema\":\"2.0\",\"body\":{\"elements\":[]}}'\n Select a custom app: zero feishu message send -i <installation-id> -c oc_xxx -t \"Hello!\"\n\nNotes:\n - Exactly one of --chat, --user, or --reply is required\n - Exactly one of --text or --card is required\n - --installation is required when the organization has multiple Feishu bots`,\n )\n .action(\n withErrorHandler(async (options: SendFeishuOptions) => {\n const targets = [options.chat, options.user, options.reply].filter(\n Boolean,\n );\n if (targets.length !== 1) {\n throw new Error(\n \"Exactly one of --chat, --user, or --reply must be provided\",\n );\n }\n if (options.thread && !options.reply) {\n throw new Error(\"--thread requires --reply\");\n }\n\n let text = options.text;\n if (!text && !options.card && !process.stdin.isTTY) {\n try {\n text = readFileSync(\"/dev/stdin\", \"utf8\").trim();\n } catch {\n // stdin is not readable; fall through to normal input validation.\n }\n }\n const card = parseCard(options.card);\n if (Boolean(text) === Boolean(card)) {\n throw new Error(\"Exactly one of --text or --card must be provided\");\n }\n\n const result = await sendFeishuMessage({\n installationId: options.installation,\n chat: options.chat,\n user: options.user,\n replyToMessageId: options.reply,\n replyInThread: options.thread,\n text,\n card,\n });\n console.log(chalk.green(`✓ Message sent (message: ${result.messageId})`));\n }),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;A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AI,OAAO,QAAQ;AACnB,QAAI,CAAC,QAAQ,CAAC,QAAQ,QAAQ,CAAC,QAAQ,MAAM,OAAO;AAClD,UAAI;AACF,eAAO,aAAa,cAAc,MAAM,EAAE,KAAK;AAAA,MACjD,QAAQ;AAAA,MAER;AAAA,IACF;AACA,UAAM,OAAO,UAAU,QAAQ,IAAI;AACnC,QAAI,QAAQ,IAAI,MAAM,QAAQ,IAAI,GAAG;AACnC,YAAM,IAAI,MAAM,kDAAkD;AAAA,IACpE;AAEA,UAAM,SAAS,MAAM,kBAAkB;AAAA,MACrC,gBAAgB,QAAQ;AAAA,MACxB,MAAM,QAAQ;AAAA,MACd,MAAM,QAAQ;AAAA,MACd,kBAAkB,QAAQ;AAAA,MAC1B,eAAe,QAAQ;AAAA,MACvB;AAAA,MACA;AAAA,IACF,CAAC;AACD,YAAQ,IAAI,eAAM,MAAM,iCAA4B,OAAO,SAAS,GAAG,CAAC;AAAA,EAC1E,CAAC;AACH;;;ADxGK,IAAM,2BAA2B,IAAI,QAAQ,EACjD,KAAK,SAAS,EACd,YAAY,sBAAsB,EAClC,WAAW,WAAW;;;ADHlB,IAAM,oBAAoB,IAAI,QAAQ,EAC1C,KAAK,QAAQ,EACb,YAAY,gDAAgD,EAC5D,WAAW,wBAAwB,EACnC;AAAA,EACC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAKF;","names":[]}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import {
|
|
5
|
+
ZERO_FINANCE_DEFAULT_INTERVAL,
|
|
6
|
+
ZERO_FINANCE_DEFAULT_RANGE,
|
|
7
|
+
callZeroFinanceChart,
|
|
8
|
+
callZeroFinanceProfile,
|
|
9
|
+
callZeroFinanceQuote,
|
|
10
|
+
callZeroFinanceSearch,
|
|
11
|
+
zeroFinanceChartRequestSchema,
|
|
12
|
+
zeroFinanceIntervalSchema,
|
|
13
|
+
zeroFinanceProfileRequestSchema,
|
|
14
|
+
zeroFinanceQuoteRequestSchema,
|
|
15
|
+
zeroFinanceRangeSchema,
|
|
16
|
+
zeroFinanceSearchRequestSchema
|
|
17
|
+
} from "./chunk-3QXK5RR7.js";
|
|
18
|
+
import "./chunk-LTDQISD7.js";
|
|
19
|
+
import {
|
|
20
|
+
source_default,
|
|
21
|
+
withErrorHandler
|
|
22
|
+
} from "./chunk-XE764T2N.js";
|
|
23
|
+
import "./chunk-LRHXR7JT.js";
|
|
24
|
+
import {
|
|
25
|
+
Command,
|
|
26
|
+
InvalidArgumentError,
|
|
27
|
+
Option
|
|
28
|
+
} from "./chunk-B3W2RUBP.js";
|
|
29
|
+
import {
|
|
30
|
+
init_esm_shims
|
|
31
|
+
} from "./chunk-DIRAZ3YX.js";
|
|
32
|
+
|
|
33
|
+
// src/commands/zero/finance/index.ts
|
|
34
|
+
init_esm_shims();
|
|
35
|
+
function firstIssueMessage(result) {
|
|
36
|
+
return result.success ? "finance request is invalid" : result.error.issues[0]?.message ?? "finance request is invalid";
|
|
37
|
+
}
|
|
38
|
+
function parseRange(value) {
|
|
39
|
+
const result = zeroFinanceRangeSchema.safeParse(value);
|
|
40
|
+
if (result.success) {
|
|
41
|
+
return result.data;
|
|
42
|
+
}
|
|
43
|
+
throw new InvalidArgumentError(
|
|
44
|
+
`range must be one of: ${zeroFinanceRangeSchema.options.join(", ")}`
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function parseInterval(value) {
|
|
48
|
+
const result = zeroFinanceIntervalSchema.safeParse(value);
|
|
49
|
+
if (result.success) {
|
|
50
|
+
return result.data;
|
|
51
|
+
}
|
|
52
|
+
throw new InvalidArgumentError(
|
|
53
|
+
`interval must be one of: ${zeroFinanceIntervalSchema.options.join(", ")}`
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
function renderResponse(response, json) {
|
|
57
|
+
if (json) {
|
|
58
|
+
console.log(JSON.stringify(response));
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
console.log(source_default.green(`\u2713 Finance ${response.operation} completed`));
|
|
62
|
+
console.log(JSON.stringify(response.result, null, 2));
|
|
63
|
+
console.log(source_default.dim(`Provider: ${response.provider}`));
|
|
64
|
+
console.log(source_default.dim(`Credits charged: ${response.creditsCharged}`));
|
|
65
|
+
}
|
|
66
|
+
var searchCommand = new Command().name("search").description("Search for a financial instrument").argument("<query>", "Company name, symbol, or instrument").option("--json", "Print the raw Zero Finance response as JSON").action(
|
|
67
|
+
withErrorHandler(async (query, options) => {
|
|
68
|
+
const request = zeroFinanceSearchRequestSchema.safeParse({ query });
|
|
69
|
+
if (!request.success) {
|
|
70
|
+
throw new InvalidArgumentError(firstIssueMessage(request));
|
|
71
|
+
}
|
|
72
|
+
renderResponse(await callZeroFinanceSearch(request.data), options.json);
|
|
73
|
+
})
|
|
74
|
+
);
|
|
75
|
+
var profileCommand = new Command().name("profile").description("Fetch a company profile").argument("<symbol>", "Yahoo Finance symbol, such as AAPL or 0700.HK").option("--json", "Print the raw Zero Finance response as JSON").action(
|
|
76
|
+
withErrorHandler(async (symbol, options) => {
|
|
77
|
+
const request = zeroFinanceProfileRequestSchema.safeParse({ symbol });
|
|
78
|
+
if (!request.success) {
|
|
79
|
+
throw new InvalidArgumentError(firstIssueMessage(request));
|
|
80
|
+
}
|
|
81
|
+
renderResponse(await callZeroFinanceProfile(request.data), options.json);
|
|
82
|
+
})
|
|
83
|
+
);
|
|
84
|
+
var quoteCommand = new Command().name("quote").description("Fetch the latest available market quote").argument("<symbol>", "Yahoo Finance symbol, such as AAPL or 0700.HK").option("--json", "Print the raw Zero Finance response as JSON").action(
|
|
85
|
+
withErrorHandler(async (symbol, options) => {
|
|
86
|
+
const request = zeroFinanceQuoteRequestSchema.safeParse({ symbol });
|
|
87
|
+
if (!request.success) {
|
|
88
|
+
throw new InvalidArgumentError(firstIssueMessage(request));
|
|
89
|
+
}
|
|
90
|
+
renderResponse(await callZeroFinanceQuote(request.data), options.json);
|
|
91
|
+
})
|
|
92
|
+
);
|
|
93
|
+
var chartCommand = new Command().name("chart").description("Fetch OHLCV chart data").argument("<symbol>", "Yahoo Finance symbol, such as AAPL or 0700.HK").addOption(
|
|
94
|
+
new Option("--range <range>", "Chart time range").default(ZERO_FINANCE_DEFAULT_RANGE).argParser(parseRange)
|
|
95
|
+
).addOption(
|
|
96
|
+
new Option("--interval <interval>", "Chart interval").default(ZERO_FINANCE_DEFAULT_INTERVAL).argParser(parseInterval)
|
|
97
|
+
).option("--json", "Print the raw Zero Finance response as JSON").action(
|
|
98
|
+
withErrorHandler(async (symbol, options) => {
|
|
99
|
+
const request = zeroFinanceChartRequestSchema.safeParse({
|
|
100
|
+
symbol,
|
|
101
|
+
range: options.range,
|
|
102
|
+
interval: options.interval
|
|
103
|
+
});
|
|
104
|
+
if (!request.success) {
|
|
105
|
+
throw new InvalidArgumentError(firstIssueMessage(request));
|
|
106
|
+
}
|
|
107
|
+
renderResponse(await callZeroFinanceChart(request.data), options.json);
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
var zeroFinanceCommand = new Command().name("finance").description("Query financial instruments through managed Zero Finance").addCommand(searchCommand).addCommand(profileCommand).addCommand(quoteCommand).addCommand(chartCommand).addHelpText(
|
|
111
|
+
"after",
|
|
112
|
+
`
|
|
113
|
+
Examples:
|
|
114
|
+
Search instruments: zero finance search "Tencent"
|
|
115
|
+
Company profile: zero finance profile AAPL
|
|
116
|
+
Latest quote: zero finance quote 0700.HK --json
|
|
117
|
+
Historical chart: zero finance chart AAPL --range 1y --interval 1d
|
|
118
|
+
|
|
119
|
+
Notes:
|
|
120
|
+
- Authenticates via ZERO_TOKEN (requires finance:read capability) or a CLI token
|
|
121
|
+
- Each successful command consumes 1 credit
|
|
122
|
+
- Data is returned from APIDojo's Yahoo Finance API on RapidAPI without Zero-side caching`
|
|
123
|
+
);
|
|
124
|
+
export {
|
|
125
|
+
zeroFinanceCommand
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=finance-TF5RU7FD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/finance/index.ts"],"sourcesContent":["import { Command, InvalidArgumentError, Option } from \"commander\";\nimport chalk from \"chalk\";\nimport {\n ZERO_FINANCE_DEFAULT_INTERVAL,\n ZERO_FINANCE_DEFAULT_RANGE,\n zeroFinanceChartRequestSchema,\n zeroFinanceIntervalSchema,\n zeroFinanceProfileRequestSchema,\n zeroFinanceQuoteRequestSchema,\n zeroFinanceRangeSchema,\n zeroFinanceSearchRequestSchema,\n type ZeroFinanceInterval,\n type ZeroFinanceRange,\n} from \"@vm0/api-contracts/contracts/zero-finance\";\n\nimport {\n callZeroFinanceChart,\n callZeroFinanceProfile,\n callZeroFinanceQuote,\n callZeroFinanceSearch,\n type ZeroFinanceResponse,\n} from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\n\ninterface JsonOption {\n readonly json?: boolean;\n}\n\ninterface ChartOptions extends JsonOption {\n readonly range: ZeroFinanceRange;\n readonly interval: ZeroFinanceInterval;\n}\n\nfunction firstIssueMessage(\n result:\n | ReturnType<typeof zeroFinanceSearchRequestSchema.safeParse>\n | ReturnType<typeof zeroFinanceProfileRequestSchema.safeParse>\n | ReturnType<typeof zeroFinanceQuoteRequestSchema.safeParse>\n | ReturnType<typeof zeroFinanceChartRequestSchema.safeParse>,\n): string {\n return result.success\n ? \"finance request is invalid\"\n : (result.error.issues[0]?.message ?? \"finance request is invalid\");\n}\n\nfunction parseRange(value: string): ZeroFinanceRange {\n const result = zeroFinanceRangeSchema.safeParse(value);\n if (result.success) {\n return result.data;\n }\n throw new InvalidArgumentError(\n `range must be one of: ${zeroFinanceRangeSchema.options.join(\", \")}`,\n );\n}\n\nfunction parseInterval(value: string): ZeroFinanceInterval {\n const result = zeroFinanceIntervalSchema.safeParse(value);\n if (result.success) {\n return result.data;\n }\n throw new InvalidArgumentError(\n `interval must be one of: ${zeroFinanceIntervalSchema.options.join(\", \")}`,\n );\n}\n\nfunction renderResponse(response: ZeroFinanceResponse, json?: boolean): void {\n if (json) {\n console.log(JSON.stringify(response));\n return;\n }\n\n console.log(chalk.green(`✓ Finance ${response.operation} completed`));\n console.log(JSON.stringify(response.result, null, 2));\n console.log(chalk.dim(`Provider: ${response.provider}`));\n console.log(chalk.dim(`Credits charged: ${response.creditsCharged}`));\n}\n\nconst searchCommand = new Command()\n .name(\"search\")\n .description(\"Search for a financial instrument\")\n .argument(\"<query>\", \"Company name, symbol, or instrument\")\n .option(\"--json\", \"Print the raw Zero Finance response as JSON\")\n .action(\n withErrorHandler(async (query: string, options: JsonOption) => {\n const request = zeroFinanceSearchRequestSchema.safeParse({ query });\n if (!request.success) {\n throw new InvalidArgumentError(firstIssueMessage(request));\n }\n renderResponse(await callZeroFinanceSearch(request.data), options.json);\n }),\n );\n\nconst profileCommand = new Command()\n .name(\"profile\")\n .description(\"Fetch a company profile\")\n .argument(\"<symbol>\", \"Yahoo Finance symbol, such as AAPL or 0700.HK\")\n .option(\"--json\", \"Print the raw Zero Finance response as JSON\")\n .action(\n withErrorHandler(async (symbol: string, options: JsonOption) => {\n const request = zeroFinanceProfileRequestSchema.safeParse({ symbol });\n if (!request.success) {\n throw new InvalidArgumentError(firstIssueMessage(request));\n }\n renderResponse(await callZeroFinanceProfile(request.data), options.json);\n }),\n );\n\nconst quoteCommand = new Command()\n .name(\"quote\")\n .description(\"Fetch the latest available market quote\")\n .argument(\"<symbol>\", \"Yahoo Finance symbol, such as AAPL or 0700.HK\")\n .option(\"--json\", \"Print the raw Zero Finance response as JSON\")\n .action(\n withErrorHandler(async (symbol: string, options: JsonOption) => {\n const request = zeroFinanceQuoteRequestSchema.safeParse({ symbol });\n if (!request.success) {\n throw new InvalidArgumentError(firstIssueMessage(request));\n }\n renderResponse(await callZeroFinanceQuote(request.data), options.json);\n }),\n );\n\nconst chartCommand = new Command()\n .name(\"chart\")\n .description(\"Fetch OHLCV chart data\")\n .argument(\"<symbol>\", \"Yahoo Finance symbol, such as AAPL or 0700.HK\")\n .addOption(\n new Option(\"--range <range>\", \"Chart time range\")\n .default(ZERO_FINANCE_DEFAULT_RANGE)\n .argParser(parseRange),\n )\n .addOption(\n new Option(\"--interval <interval>\", \"Chart interval\")\n .default(ZERO_FINANCE_DEFAULT_INTERVAL)\n .argParser(parseInterval),\n )\n .option(\"--json\", \"Print the raw Zero Finance response as JSON\")\n .action(\n withErrorHandler(async (symbol: string, options: ChartOptions) => {\n const request = zeroFinanceChartRequestSchema.safeParse({\n symbol,\n range: options.range,\n interval: options.interval,\n });\n if (!request.success) {\n throw new InvalidArgumentError(firstIssueMessage(request));\n }\n renderResponse(await callZeroFinanceChart(request.data), options.json);\n }),\n );\n\nexport const zeroFinanceCommand = new Command()\n .name(\"finance\")\n .description(\"Query financial instruments through managed Zero Finance\")\n .addCommand(searchCommand)\n .addCommand(profileCommand)\n .addCommand(quoteCommand)\n .addCommand(chartCommand)\n .addHelpText(\n \"after\",\n `\nExamples:\n Search instruments: zero finance search \"Tencent\"\n Company profile: zero finance profile AAPL\n Latest quote: zero finance quote 0700.HK --json\n Historical chart: zero finance chart AAPL --range 1y --interval 1d\n\nNotes:\n - Authenticates via ZERO_TOKEN (requires finance:read capability) or a CLI token\n - Each successful command consumes 1 credit\n - Data is returned from APIDojo's Yahoo Finance API on RapidAPI without Zero-side caching`,\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAiCA,SAAS,kBACP,QAKQ;AACR,SAAO,OAAO,UACV,+BACC,OAAO,MAAM,OAAO,CAAC,GAAG,WAAW;AAC1C;AAEA,SAAS,WAAW,OAAiC;AACnD,QAAM,SAAS,uBAAuB,UAAU,KAAK;AACrD,MAAI,OAAO,SAAS;AAClB,WAAO,OAAO;AAAA,EAChB;AACA,QAAM,IAAI;AAAA,IACR,yBAAyB,uBAAuB,QAAQ,KAAK,IAAI,CAAC;AAAA,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,EACd,YAAY,0DAA0D,EACtE,WAAW,aAAa,EACxB,WAAW,cAAc,EACzB,WAAW,YAAY,EACvB,WAAW,YAAY,EACvB;AAAA,EACC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWF;","names":[]}
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
} from "./chunk-RTYT3CSZ.js";
|
|
21
21
|
import {
|
|
22
22
|
getPlatformOrigin
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PD3A7MGG.js";
|
|
24
24
|
import {
|
|
25
25
|
getZeroAgentUserConnectors,
|
|
26
26
|
listZeroConnectorCatalog,
|
|
27
27
|
listZeroConnectorCatalogStatus
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3QXK5RR7.js";
|
|
29
29
|
import "./chunk-LTDQISD7.js";
|
|
30
30
|
import {
|
|
31
31
|
generateWebImage,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
generateWebVoice,
|
|
34
34
|
source_default,
|
|
35
35
|
withErrorHandler
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XE764T2N.js";
|
|
37
37
|
import "./chunk-LRHXR7JT.js";
|
|
38
38
|
import {
|
|
39
39
|
Command,
|
|
@@ -2696,4 +2696,4 @@ var generateCommand = new Command().name("generate").description(
|
|
|
2696
2696
|
export {
|
|
2697
2697
|
generateCommand
|
|
2698
2698
|
};
|
|
2699
|
-
//# sourceMappingURL=generate-
|
|
2699
|
+
//# sourceMappingURL=generate-GFFAZX7Y.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
completeGithubFileUpload,
|
|
6
6
|
downloadGithubFile,
|
|
7
7
|
initGithubFileUpload
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3QXK5RR7.js";
|
|
9
9
|
import "./chunk-LTDQISD7.js";
|
|
10
10
|
import {
|
|
11
11
|
withErrorHandler
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XE764T2N.js";
|
|
13
13
|
import "./chunk-LRHXR7JT.js";
|
|
14
14
|
import {
|
|
15
15
|
Command
|
|
@@ -200,4 +200,4 @@ Examples:
|
|
|
200
200
|
export {
|
|
201
201
|
zeroGithubCommand
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=github-
|
|
203
|
+
//# sourceMappingURL=github-V4ZW6TI4.js.map
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
getGoal,
|
|
11
11
|
pauseGoal,
|
|
12
12
|
resumeGoal
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3QXK5RR7.js";
|
|
14
14
|
import "./chunk-LTDQISD7.js";
|
|
15
15
|
import {
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XE764T2N.js";
|
|
18
18
|
import "./chunk-LRHXR7JT.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
@@ -77,4 +77,4 @@ var zeroGoalCommand = new Command().name("goal").description("Manage the current
|
|
|
77
77
|
export {
|
|
78
78
|
zeroGoalCommand
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=goal-
|
|
80
|
+
//# sourceMappingURL=goal-TED5FUYM.js.map
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
getHostedSiteFiles,
|
|
8
8
|
hostedArtifactKindSchema,
|
|
9
9
|
prepareHostedSite
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3QXK5RR7.js";
|
|
11
11
|
import "./chunk-LTDQISD7.js";
|
|
12
12
|
import {
|
|
13
13
|
source_default,
|
|
14
14
|
withErrorHandler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XE764T2N.js";
|
|
16
16
|
import "./chunk-LRHXR7JT.js";
|
|
17
17
|
import {
|
|
18
18
|
Command,
|
|
@@ -656,4 +656,4 @@ Notes:
|
|
|
656
656
|
export {
|
|
657
657
|
zeroHostCommand
|
|
658
658
|
};
|
|
659
|
-
//# sourceMappingURL=host-
|
|
659
|
+
//# sourceMappingURL=host-HKDD3CHD.js.map
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
parsePositiveLogCount,
|
|
13
13
|
parseTime,
|
|
14
14
|
searchCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LDQPMTQY.js";
|
|
16
16
|
import "./chunk-RTYT3CSZ.js";
|
|
17
17
|
import {
|
|
18
18
|
getZeroRunAgentEvents,
|
|
19
19
|
listZeroLogs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3QXK5RR7.js";
|
|
21
21
|
import "./chunk-LTDQISD7.js";
|
|
22
22
|
import {
|
|
23
23
|
source_default,
|
|
24
24
|
withErrorHandler
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XE764T2N.js";
|
|
26
26
|
import "./chunk-LRHXR7JT.js";
|
|
27
27
|
import {
|
|
28
28
|
Command
|
|
@@ -268,4 +268,4 @@ Examples:
|
|
|
268
268
|
export {
|
|
269
269
|
zeroLogsCommand
|
|
270
270
|
};
|
|
271
|
-
//# sourceMappingURL=logs-
|
|
271
|
+
//# sourceMappingURL=logs-SBMQQM46.js.map
|
|
@@ -4,19 +4,19 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
findConnectorStatusItem,
|
|
6
6
|
resolveAgentContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZKWCFMDV.js";
|
|
8
8
|
import {
|
|
9
9
|
getPlatformOrigin
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PD3A7MGG.js";
|
|
11
11
|
import {
|
|
12
12
|
linkZeroMailDraft,
|
|
13
13
|
listZeroConnectorCatalogStatus
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3QXK5RR7.js";
|
|
15
15
|
import "./chunk-LTDQISD7.js";
|
|
16
16
|
import {
|
|
17
17
|
source_default,
|
|
18
18
|
withErrorHandler
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XE764T2N.js";
|
|
20
20
|
import "./chunk-LRHXR7JT.js";
|
|
21
21
|
import {
|
|
22
22
|
Command
|
|
@@ -183,4 +183,4 @@ var zeroMailCommand = new Command().name("mail").description("Review linked Gmai
|
|
|
183
183
|
export {
|
|
184
184
|
zeroMailCommand
|
|
185
185
|
};
|
|
186
|
-
//# sourceMappingURL=mail-
|
|
186
|
+
//# sourceMappingURL=mail-SF5JKA2F.js.map
|
|
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
callZeroMaps
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3QXK5RR7.js";
|
|
7
7
|
import "./chunk-LTDQISD7.js";
|
|
8
8
|
import {
|
|
9
9
|
source_default,
|
|
10
10
|
withErrorHandler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XE764T2N.js";
|
|
12
12
|
import "./chunk-LRHXR7JT.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
@@ -482,4 +482,4 @@ Notes:
|
|
|
482
482
|
export {
|
|
483
483
|
zeroMapsCommand
|
|
484
484
|
};
|
|
485
|
-
//# sourceMappingURL=maps-
|
|
485
|
+
//# sourceMappingURL=maps-D5NKFEAD.js.map
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
formatModelProviderRoute,
|
|
7
7
|
getModelProviderRouteKind
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HJOW32CJ.js";
|
|
9
9
|
import {
|
|
10
10
|
listZeroModelPolicies
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3QXK5RR7.js";
|
|
12
12
|
import "./chunk-LTDQISD7.js";
|
|
13
13
|
import {
|
|
14
14
|
getVm0ModelPriceTier,
|
|
15
15
|
source_default,
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XE764T2N.js";
|
|
18
18
|
import "./chunk-LRHXR7JT.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
@@ -88,4 +88,4 @@ export {
|
|
|
88
88
|
switchCommand,
|
|
89
89
|
zeroModelCommand
|
|
90
90
|
};
|
|
91
|
-
//# sourceMappingURL=model-
|
|
91
|
+
//# sourceMappingURL=model-S7CMGRIH.js.map
|