@vm0/cli 9.227.0 → 9.229.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-DGSPWQNY.js → agent-6I3S3EIU.js} +4 -4
- package/{banking-JHYVOWF5.js → banking-JTEDNDFU.js} +2 -2
- package/chat-SWX5TFN3.js +251 -0
- package/chat-SWX5TFN3.js.map +1 -0
- package/{chunk-EY2VZRB2.js → chunk-2P5AKBPK.js} +2 -2
- package/{chunk-NC6FCDKK.js → chunk-6RKTJJPZ.js} +8 -15
- package/{chunk-NC6FCDKK.js.map → chunk-6RKTJJPZ.js.map} +1 -1
- package/{chunk-WSV35YDZ.js → chunk-AIJGP7GE.js} +3 -3
- package/{chunk-YYR5LIJY.js → chunk-DKOCDBW4.js} +29 -9
- package/chunk-DKOCDBW4.js.map +1 -0
- package/{chunk-OEAI3Q7W.js → chunk-F7BBBLJC.js} +3 -3
- package/{chunk-5ERR7HTW.js → chunk-GWQOCHOY.js} +2 -2
- package/{chunk-4VMDT4EL.js → chunk-NHJID5Y2.js} +129 -4
- package/chunk-NHJID5Y2.js.map +1 -0
- package/{chunk-LBGX3XPM.js → chunk-OCRWY5Y7.js} +2 -2
- package/{chunk-MZSBZSJO.js → chunk-PGU3RHGG.js} +2 -2
- package/{chunk-GYQBZT25.js → chunk-Q63UMEJ6.js} +2 -2
- package/{chunk-GYQBZT25.js.map → chunk-Q63UMEJ6.js.map} +1 -1
- package/{computer-use-ZDALRU7D.js → computer-use-GEEWNJQM.js} +2 -2
- package/{connector-5I66WCBC.js → connector-EYTI2AQV.js} +2 -2
- package/{credit-HGNKEVFZ.js → credit-NZB5JP5V.js} +2 -2
- package/{developer-support-U65KGI6M.js → developer-support-PAMZ2XRA.js} +2 -2
- package/{doctor-WTQ7VC4T.js → doctor-W6XZPNI5.js} +5 -5
- package/{generate-DHDE5EAR.js → generate-HVVD6EYP.js} +144 -115
- package/generate-HVVD6EYP.js.map +1 -0
- package/{github-QDXMHTJZ.js → github-4UD5X5HJ.js} +2 -2
- package/{goal-JRXI5QXW.js → goal-EBSAUAFF.js} +2 -2
- package/{host-RRYXBDTU.js → host-XMGMUEIS.js} +2 -2
- package/index.js +14 -14
- package/{logs-NDOKTRB6.js → logs-ZVA3RX7T.js} +7 -7
- package/{maps-IQBIONR2.js → maps-KA77OBM7.js} +2 -2
- package/{model-JO3G5KZI.js → model-LXH7APW3.js} +3 -3
- package/{model-provider-FEVH3VPX.js → model-provider-LPWRU53L.js} +3 -3
- package/{org-FQMXNSIY.js → org-YAIXNWYJ.js} +2 -2
- package/package.json +1 -1
- package/{phone-SQDE53ZF.js → phone-LJZKV6SV.js} +2 -2
- package/{preference-S5VFYYXB.js → preference-CZ3I4HFF.js} +2 -2
- package/{relationship-HCBN4USZ.js → relationship-QKUXP77B.js} +2 -2
- package/{resource-RSKJLS3T.js → resource-BKPC6E53.js} +3 -3
- package/{search-EMQSXATT.js → search-MTEX6GJA.js} +7 -7
- package/{secret-GKBBHURS.js → secret-ZIEZBGZG.js} +3 -3
- package/{slack-MPYGJ244.js → slack-TVVSMYRW.js} +2 -2
- package/{telegram-QPPLW7F4.js → telegram-ACBXXCBM.js} +2 -2
- package/{variable-Y4HRWCTO.js → variable-JJJKVBNK.js} +2 -2
- package/{web-AME2COQN.js → web-LFI6P5BX.js} +2 -2
- package/{whoami-V3SX3JTG.js → whoami-PU2MNPCP.js} +4 -4
- package/{workflow-DWK4QY3W.js → workflow-3ZFUOHIE.js} +71 -9
- package/workflow-3ZFUOHIE.js.map +1 -0
- package/zero.js +32 -32
- package/zero.js.map +1 -1
- package/chat-5PALCJD4.js +0 -123
- package/chat-5PALCJD4.js.map +0 -1
- package/chunk-4VMDT4EL.js.map +0 -1
- package/chunk-YYR5LIJY.js.map +0 -1
- package/generate-DHDE5EAR.js.map +0 -1
- package/workflow-DWK4QY3W.js.map +0 -1
- /package/{agent-DGSPWQNY.js.map → agent-6I3S3EIU.js.map} +0 -0
- /package/{banking-JHYVOWF5.js.map → banking-JTEDNDFU.js.map} +0 -0
- /package/{chunk-EY2VZRB2.js.map → chunk-2P5AKBPK.js.map} +0 -0
- /package/{chunk-WSV35YDZ.js.map → chunk-AIJGP7GE.js.map} +0 -0
- /package/{chunk-OEAI3Q7W.js.map → chunk-F7BBBLJC.js.map} +0 -0
- /package/{chunk-5ERR7HTW.js.map → chunk-GWQOCHOY.js.map} +0 -0
- /package/{chunk-LBGX3XPM.js.map → chunk-OCRWY5Y7.js.map} +0 -0
- /package/{chunk-MZSBZSJO.js.map → chunk-PGU3RHGG.js.map} +0 -0
- /package/{computer-use-ZDALRU7D.js.map → computer-use-GEEWNJQM.js.map} +0 -0
- /package/{connector-5I66WCBC.js.map → connector-EYTI2AQV.js.map} +0 -0
- /package/{credit-HGNKEVFZ.js.map → credit-NZB5JP5V.js.map} +0 -0
- /package/{developer-support-U65KGI6M.js.map → developer-support-PAMZ2XRA.js.map} +0 -0
- /package/{doctor-WTQ7VC4T.js.map → doctor-W6XZPNI5.js.map} +0 -0
- /package/{github-QDXMHTJZ.js.map → github-4UD5X5HJ.js.map} +0 -0
- /package/{goal-JRXI5QXW.js.map → goal-EBSAUAFF.js.map} +0 -0
- /package/{host-RRYXBDTU.js.map → host-XMGMUEIS.js.map} +0 -0
- /package/{logs-NDOKTRB6.js.map → logs-ZVA3RX7T.js.map} +0 -0
- /package/{maps-IQBIONR2.js.map → maps-KA77OBM7.js.map} +0 -0
- /package/{model-JO3G5KZI.js.map → model-LXH7APW3.js.map} +0 -0
- /package/{model-provider-FEVH3VPX.js.map → model-provider-LPWRU53L.js.map} +0 -0
- /package/{org-FQMXNSIY.js.map → org-YAIXNWYJ.js.map} +0 -0
- /package/{phone-SQDE53ZF.js.map → phone-LJZKV6SV.js.map} +0 -0
- /package/{preference-S5VFYYXB.js.map → preference-CZ3I4HFF.js.map} +0 -0
- /package/{relationship-HCBN4USZ.js.map → relationship-QKUXP77B.js.map} +0 -0
- /package/{resource-RSKJLS3T.js.map → resource-BKPC6E53.js.map} +0 -0
- /package/{search-EMQSXATT.js.map → search-MTEX6GJA.js.map} +0 -0
- /package/{secret-GKBBHURS.js.map → secret-ZIEZBGZG.js.map} +0 -0
- /package/{slack-MPYGJ244.js.map → slack-TVVSMYRW.js.map} +0 -0
- /package/{telegram-QPPLW7F4.js.map → telegram-ACBXXCBM.js.map} +0 -0
- /package/{variable-Y4HRWCTO.js.map → variable-JJJKVBNK.js.map} +0 -0
- /package/{web-AME2COQN.js.map → web-LFI6P5BX.js.map} +0 -0
- /package/{whoami-V3SX3JTG.js.map → whoami-PU2MNPCP.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
|
searchCommand
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F7BBBLJC.js";
|
|
7
7
|
import {
|
|
8
8
|
EventRenderer,
|
|
9
9
|
EventStreamNormalizer,
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
parseBoundedLogCount,
|
|
15
15
|
parsePositiveLogCount,
|
|
16
16
|
parseTime
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-6RKTJJPZ.js";
|
|
18
|
+
import "./chunk-DKOCDBW4.js";
|
|
19
|
+
import "./chunk-Q63UMEJ6.js";
|
|
20
|
+
import "./chunk-PGU3RHGG.js";
|
|
21
21
|
import {
|
|
22
22
|
getZeroRunAgentEvents,
|
|
23
23
|
listZeroLogs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NHJID5Y2.js";
|
|
25
25
|
import "./chunk-LTDQISD7.js";
|
|
26
26
|
import {
|
|
27
27
|
withErrorHandler
|
|
@@ -274,4 +274,4 @@ Examples:
|
|
|
274
274
|
export {
|
|
275
275
|
zeroLogsCommand
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=logs-
|
|
277
|
+
//# sourceMappingURL=logs-ZVA3RX7T.js.map
|
|
@@ -3,7 +3,7 @@ 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-NHJID5Y2.js";
|
|
7
7
|
import "./chunk-LTDQISD7.js";
|
|
8
8
|
import {
|
|
9
9
|
withErrorHandler
|
|
@@ -484,4 +484,4 @@ Notes:
|
|
|
484
484
|
export {
|
|
485
485
|
zeroMapsCommand
|
|
486
486
|
};
|
|
487
|
-
//# sourceMappingURL=maps-
|
|
487
|
+
//# sourceMappingURL=maps-KA77OBM7.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
formatModelProviderRoute,
|
|
7
7
|
getModelProviderRouteKind
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OCRWY5Y7.js";
|
|
9
9
|
import {
|
|
10
10
|
getVm0ModelPriceTier,
|
|
11
11
|
listZeroModelPolicies
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NHJID5Y2.js";
|
|
13
13
|
import "./chunk-LTDQISD7.js";
|
|
14
14
|
import {
|
|
15
15
|
withErrorHandler
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
switchCommand,
|
|
91
91
|
zeroModelCommand
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=model-
|
|
93
|
+
//# sourceMappingURL=model-LXH7APW3.js.map
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
getModelProviderRouteKind,
|
|
7
7
|
getModelProviderTypeLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OCRWY5Y7.js";
|
|
9
9
|
import {
|
|
10
10
|
listZeroModelPolicies
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NHJID5Y2.js";
|
|
12
12
|
import "./chunk-LTDQISD7.js";
|
|
13
13
|
import {
|
|
14
14
|
withErrorHandler
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
setCommand,
|
|
75
75
|
zeroModelProviderCommand
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=model-provider-
|
|
77
|
+
//# sourceMappingURL=model-provider-LPWRU53L.js.map
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
switchZeroOrg,
|
|
33
33
|
updateZeroOrg,
|
|
34
34
|
upsertZeroOrgModelProvider
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NHJID5Y2.js";
|
|
36
36
|
import "./chunk-LTDQISD7.js";
|
|
37
37
|
import {
|
|
38
38
|
ApiRequestError,
|
|
@@ -919,4 +919,4 @@ var zeroOrgCommand = new Command().name("org").description("Manage organization
|
|
|
919
919
|
export {
|
|
920
920
|
zeroOrgCommand
|
|
921
921
|
};
|
|
922
|
-
//# sourceMappingURL=org-
|
|
922
|
+
//# sourceMappingURL=org-YAIXNWYJ.js.map
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
downloadPhoneFile,
|
|
7
7
|
initPhoneFileUpload,
|
|
8
8
|
sendPhoneMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHJID5Y2.js";
|
|
10
10
|
import "./chunk-LTDQISD7.js";
|
|
11
11
|
import {
|
|
12
12
|
withErrorHandler
|
|
@@ -201,4 +201,4 @@ Examples:
|
|
|
201
201
|
export {
|
|
202
202
|
zeroPhoneCommand
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=phone-
|
|
204
|
+
//# sourceMappingURL=phone-LJZKV6SV.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
getZeroUserPreferences,
|
|
10
10
|
updateZeroUserPreferences
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NHJID5Y2.js";
|
|
12
12
|
import "./chunk-LTDQISD7.js";
|
|
13
13
|
import {
|
|
14
14
|
withErrorHandler
|
|
@@ -107,4 +107,4 @@ var zeroPreferenceCommand = new Command().name("preference").description("View o
|
|
|
107
107
|
export {
|
|
108
108
|
zeroPreferenceCommand
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=preference-
|
|
110
|
+
//# sourceMappingURL=preference-CZ3I4HFF.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
resolveZeroRelationship,
|
|
6
6
|
searchZeroRelationships
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NHJID5Y2.js";
|
|
8
8
|
import "./chunk-LTDQISD7.js";
|
|
9
9
|
import {
|
|
10
10
|
withErrorHandler
|
|
@@ -185,4 +185,4 @@ var zeroRelationshipCommand = new Command().name("relationship").description("Qu
|
|
|
185
185
|
export {
|
|
186
186
|
zeroRelationshipCommand
|
|
187
187
|
};
|
|
188
|
-
//# sourceMappingURL=relationship-
|
|
188
|
+
//# sourceMappingURL=relationship-QKUXP77B.js.map
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
findTool,
|
|
14
14
|
findVideoTemplate,
|
|
15
15
|
findWebsiteTemplateResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DKOCDBW4.js";
|
|
17
17
|
import {
|
|
18
18
|
getRegistryResourceDownload
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NHJID5Y2.js";
|
|
20
20
|
import "./chunk-LTDQISD7.js";
|
|
21
21
|
import {
|
|
22
22
|
withErrorHandler
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
findRegistryResourceForPull,
|
|
140
140
|
zeroResourceCommand
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=resource-
|
|
142
|
+
//# sourceMappingURL=resource-BKPC6E53.js.map
|
|
@@ -3,20 +3,20 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
runLogsSearch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F7BBBLJC.js";
|
|
7
7
|
import {
|
|
8
8
|
formatIsoTimestamp,
|
|
9
9
|
isUUID,
|
|
10
10
|
parseBoundedLogCount,
|
|
11
11
|
parseSearchQuery,
|
|
12
12
|
parseTime
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-6RKTJJPZ.js";
|
|
14
|
+
import "./chunk-DKOCDBW4.js";
|
|
15
|
+
import "./chunk-Q63UMEJ6.js";
|
|
16
|
+
import "./chunk-PGU3RHGG.js";
|
|
17
17
|
import {
|
|
18
18
|
searchZeroChat
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NHJID5Y2.js";
|
|
20
20
|
import "./chunk-LTDQISD7.js";
|
|
21
21
|
import {
|
|
22
22
|
withErrorHandler
|
|
@@ -201,4 +201,4 @@ export {
|
|
|
201
201
|
buildSlackRecipe,
|
|
202
202
|
zeroSearchCommand
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=search-
|
|
204
|
+
//# sourceMappingURL=search-MTEX6GJA.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
getConnectorStoredSecretDisplayInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PGU3RHGG.js";
|
|
7
7
|
import {
|
|
8
8
|
isInteractive,
|
|
9
9
|
promptConfirm,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
deleteZeroSecret,
|
|
14
14
|
listZeroSecrets,
|
|
15
15
|
setZeroSecret
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NHJID5Y2.js";
|
|
17
17
|
import "./chunk-LTDQISD7.js";
|
|
18
18
|
import {
|
|
19
19
|
withErrorHandler
|
|
@@ -160,4 +160,4 @@ var zeroSecretCommand = new Command().name("secret").description("Read or write
|
|
|
160
160
|
export {
|
|
161
161
|
zeroSecretCommand
|
|
162
162
|
};
|
|
163
|
-
//# sourceMappingURL=secret-
|
|
163
|
+
//# sourceMappingURL=secret-ZIEZBGZG.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
downloadSlackFile,
|
|
7
7
|
initSlackFileUpload,
|
|
8
8
|
sendSlackMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHJID5Y2.js";
|
|
10
10
|
import "./chunk-LTDQISD7.js";
|
|
11
11
|
import {
|
|
12
12
|
withErrorHandler
|
|
@@ -220,4 +220,4 @@ Examples:
|
|
|
220
220
|
export {
|
|
221
221
|
zeroSlackCommand
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=slack-
|
|
223
|
+
//# sourceMappingURL=slack-TVVSMYRW.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
initTelegramFileUpload,
|
|
8
8
|
listTelegramBots,
|
|
9
9
|
sendTelegramMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NHJID5Y2.js";
|
|
11
11
|
import "./chunk-LTDQISD7.js";
|
|
12
12
|
import {
|
|
13
13
|
withErrorHandler
|
|
@@ -335,4 +335,4 @@ Examples:
|
|
|
335
335
|
export {
|
|
336
336
|
zeroTelegramCommand
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=telegram-
|
|
338
|
+
//# sourceMappingURL=telegram-ACBXXCBM.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
deleteZeroVariable,
|
|
10
10
|
listZeroVariables,
|
|
11
11
|
setZeroVariable
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NHJID5Y2.js";
|
|
13
13
|
import "./chunk-LTDQISD7.js";
|
|
14
14
|
import {
|
|
15
15
|
withErrorHandler
|
|
@@ -117,4 +117,4 @@ var zeroVariableCommand = new Command().name("variable").description("Read or wr
|
|
|
117
117
|
export {
|
|
118
118
|
zeroVariableCommand
|
|
119
119
|
};
|
|
120
|
-
//# sourceMappingURL=variable-
|
|
120
|
+
//# sourceMappingURL=variable-JJJKVBNK.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __createRequire } from "node:module";
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-NHJID5Y2.js";
|
|
5
5
|
import "./chunk-LTDQISD7.js";
|
|
6
6
|
import {
|
|
7
7
|
downloadWebFile,
|
|
@@ -106,4 +106,4 @@ Examples:
|
|
|
106
106
|
export {
|
|
107
107
|
zeroWebCommand
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=web-
|
|
109
|
+
//# sourceMappingURL=web-LFI6P5BX.js.map
|
|
@@ -4,15 +4,15 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadConnectorPermissionInfos,
|
|
6
6
|
policyIcon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2P5AKBPK.js";
|
|
8
8
|
import {
|
|
9
9
|
permissionGrantsToFirewallPolicies
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GWQOCHOY.js";
|
|
11
11
|
import {
|
|
12
12
|
getZeroAgentUserConnectors,
|
|
13
13
|
listZeroConnectors,
|
|
14
14
|
listZeroUserPermissionGrants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NHJID5Y2.js";
|
|
16
16
|
import "./chunk-LTDQISD7.js";
|
|
17
17
|
import {
|
|
18
18
|
getActiveOrg,
|
|
@@ -192,4 +192,4 @@ Notes:
|
|
|
192
192
|
export {
|
|
193
193
|
zeroWhoamiCommand
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=whoami-
|
|
195
|
+
//# sourceMappingURL=whoami-PU2MNPCP.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
listWorkflows,
|
|
20
20
|
updateWorkflow,
|
|
21
21
|
updateWorkflowTrigger
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NHJID5Y2.js";
|
|
23
23
|
import "./chunk-LTDQISD7.js";
|
|
24
24
|
import {
|
|
25
25
|
withErrorHandler
|
|
@@ -525,6 +525,9 @@ function isNotionChildPageTrigger(trigger) {
|
|
|
525
525
|
function isNotionDatabaseItemTrigger(trigger) {
|
|
526
526
|
return trigger.kind === "event" && trigger.eventType === "notion-database-item-created";
|
|
527
527
|
}
|
|
528
|
+
function isNotionPageContentUpdatedTrigger(trigger) {
|
|
529
|
+
return trigger.kind === "event" && trigger.eventType === "notion-page-content-updated";
|
|
530
|
+
}
|
|
528
531
|
function isGoogleCalendarTrigger(trigger) {
|
|
529
532
|
return trigger.kind === "event" && (trigger.eventType === "google-calendar-event-created" || trigger.eventType === "google-calendar-event-updated" || trigger.eventType === "google-calendar-event-cancelled");
|
|
530
533
|
}
|
|
@@ -581,6 +584,12 @@ function formatNotionParentPage(trigger) {
|
|
|
581
584
|
function formatNotionDatabase(trigger) {
|
|
582
585
|
return trigger.eventConfig.dataSource.title ?? trigger.eventConfig.dataSource.url;
|
|
583
586
|
}
|
|
587
|
+
function formatNotionContentUpdatedScope(trigger) {
|
|
588
|
+
return trigger.eventConfig.scope.type === "page" ? trigger.eventConfig.scope.page.title ?? trigger.eventConfig.scope.page.url : trigger.eventConfig.scope.dataSource.title ?? trigger.eventConfig.scope.dataSource.url;
|
|
589
|
+
}
|
|
590
|
+
function formatNotionContentUpdatedScopeUrl(trigger) {
|
|
591
|
+
return trigger.eventConfig.scope.type === "page" ? trigger.eventConfig.scope.page.url : trigger.eventConfig.scope.dataSource.url;
|
|
592
|
+
}
|
|
584
593
|
function formatWorkflowTriggerEntry(trigger) {
|
|
585
594
|
if (trigger.kind === "event" && trigger.eventType === "gmail-new-message") {
|
|
586
595
|
return `Gmail new message: ${formatGmailMatchSummary(trigger.eventConfig)}`;
|
|
@@ -647,6 +656,8 @@ function workflowTriggerKindLabel(trigger) {
|
|
|
647
656
|
return `New Notion child page: ${formatNotionParentPage(trigger)}`;
|
|
648
657
|
case "notion-database-item-created":
|
|
649
658
|
return `New Notion database item: ${formatNotionDatabase(trigger)}`;
|
|
659
|
+
case "notion-page-content-updated":
|
|
660
|
+
return `Notion page content updated: ${formatNotionContentUpdatedScope(trigger)}`;
|
|
650
661
|
case "webhook-received":
|
|
651
662
|
return "Webhook";
|
|
652
663
|
}
|
|
@@ -745,6 +756,16 @@ function printWorkflowTriggerDetails(trigger, options) {
|
|
|
745
756
|
`${"Database URL:".padEnd(14)}${trigger.eventConfig.dataSource.url}`
|
|
746
757
|
);
|
|
747
758
|
}
|
|
759
|
+
if (isNotionPageContentUpdatedTrigger(trigger)) {
|
|
760
|
+
const scopeLabel = trigger.eventConfig.scope.type === "page" ? "Page" : "Database";
|
|
761
|
+
console.log(`${"Scope:".padEnd(14)}${scopeLabel}`);
|
|
762
|
+
console.log(
|
|
763
|
+
`${`${scopeLabel}:`.padEnd(14)}${formatNotionContentUpdatedScope(trigger)}`
|
|
764
|
+
);
|
|
765
|
+
console.log(
|
|
766
|
+
`${`${scopeLabel} URL:`.padEnd(14)}${formatNotionContentUpdatedScopeUrl(trigger)}`
|
|
767
|
+
);
|
|
768
|
+
}
|
|
748
769
|
if (isWebhookTrigger(trigger)) {
|
|
749
770
|
console.log(
|
|
750
771
|
`${"Webhook URL:".padEnd(14)}${trigger.webhookUrl ?? "hidden"}`
|
|
@@ -994,10 +1015,11 @@ var EVENT_KINDS = [
|
|
|
994
1015
|
"google-calendar-event-cancelled",
|
|
995
1016
|
"notion-child-page-created",
|
|
996
1017
|
"notion-database-item-created",
|
|
1018
|
+
"notion-page-content-updated",
|
|
997
1019
|
"webhook"
|
|
998
1020
|
];
|
|
999
1021
|
var TRIGGER_KINDS = [...SCHEDULE_KINDS, ...EVENT_KINDS];
|
|
1000
|
-
var EXACTLY_ONE_FLAG_MESSAGE = "Provide exactly one of --expr (cron), --at (once), --every (loop), Gmail match options, --label, --subject, --actor, --calendar-id, --parent-page-url, or --database-url";
|
|
1022
|
+
var EXACTLY_ONE_FLAG_MESSAGE = "Provide exactly one of --expr (cron), --at (once), --every (loop), Gmail match options, --label, --subject, --actor, --calendar-id, --page-url, --parent-page-url, or --database-url";
|
|
1001
1023
|
function addGmailTriggerOptions(command) {
|
|
1002
1024
|
return command.option(
|
|
1003
1025
|
"--config <path>",
|
|
@@ -1180,7 +1202,7 @@ function hasCalendarTriggerOptions(options) {
|
|
|
1180
1202
|
return options.calendarId !== void 0;
|
|
1181
1203
|
}
|
|
1182
1204
|
function hasNotionTriggerOptions(options) {
|
|
1183
|
-
return options.parentPageUrl !== void 0 || options.databaseUrl !== void 0;
|
|
1205
|
+
return options.pageUrl !== void 0 || options.parentPageUrl !== void 0 || options.databaseUrl !== void 0;
|
|
1184
1206
|
}
|
|
1185
1207
|
function hasEventAddOptions(options) {
|
|
1186
1208
|
return hasGmailTriggerOptions(options) || hasGmailLabelOption(options) || hasGithubTriggerOptions(options) || hasCalendarTriggerOptions(options) || hasNotionTriggerOptions(options);
|
|
@@ -1360,9 +1382,9 @@ function buildNotionChildPageCreatedCreateRequest(options) {
|
|
|
1360
1382
|
);
|
|
1361
1383
|
}
|
|
1362
1384
|
const parentPageUrl = options.parentPageUrl?.trim();
|
|
1363
|
-
if (options.databaseUrl !== void 0) {
|
|
1385
|
+
if (options.pageUrl !== void 0 || options.databaseUrl !== void 0) {
|
|
1364
1386
|
throw new Error(
|
|
1365
|
-
"--database-url
|
|
1387
|
+
"--page-url and --database-url do not apply to notion-child-page-created triggers"
|
|
1366
1388
|
);
|
|
1367
1389
|
}
|
|
1368
1390
|
if (!parentPageUrl) {
|
|
@@ -1387,9 +1409,9 @@ function buildNotionDatabaseItemCreatedCreateRequest(options) {
|
|
|
1387
1409
|
"Gmail, GitHub, and Google Calendar trigger flags only apply to their event triggers"
|
|
1388
1410
|
);
|
|
1389
1411
|
}
|
|
1390
|
-
if (options.parentPageUrl !== void 0) {
|
|
1412
|
+
if (options.pageUrl !== void 0 || options.parentPageUrl !== void 0) {
|
|
1391
1413
|
throw new Error(
|
|
1392
|
-
"--parent-page-url
|
|
1414
|
+
"--page-url and --parent-page-url do not apply to notion-database-item-created triggers"
|
|
1393
1415
|
);
|
|
1394
1416
|
}
|
|
1395
1417
|
const databaseUrl = options.databaseUrl?.trim();
|
|
@@ -1408,6 +1430,39 @@ function buildNotionDatabaseItemCreatedCreateRequest(options) {
|
|
|
1408
1430
|
}
|
|
1409
1431
|
};
|
|
1410
1432
|
}
|
|
1433
|
+
function buildNotionPageContentUpdatedCreateRequest(options) {
|
|
1434
|
+
assertNoScheduleAddOptions(options);
|
|
1435
|
+
if (hasGmailTriggerOptions(options) || hasGmailLabelOption(options) || hasGithubTriggerOptions(options) || hasCalendarTriggerOptions(options)) {
|
|
1436
|
+
throw new Error(
|
|
1437
|
+
"Gmail, GitHub, and Google Calendar trigger flags only apply to their event triggers"
|
|
1438
|
+
);
|
|
1439
|
+
}
|
|
1440
|
+
if (options.parentPageUrl !== void 0) {
|
|
1441
|
+
throw new Error(
|
|
1442
|
+
"--parent-page-url only applies to notion-child-page-created triggers"
|
|
1443
|
+
);
|
|
1444
|
+
}
|
|
1445
|
+
const pageUrl = options.pageUrl?.trim();
|
|
1446
|
+
const databaseUrl = options.databaseUrl?.trim();
|
|
1447
|
+
if ((pageUrl !== void 0 && pageUrl.length > 0) === (databaseUrl !== void 0 && databaseUrl.length > 0)) {
|
|
1448
|
+
throw new Error(
|
|
1449
|
+
'notion-page-content-updated triggers require exactly one of --page-url "https://www.notion.so/..." or --database-url "https://www.notion.so/..."'
|
|
1450
|
+
);
|
|
1451
|
+
}
|
|
1452
|
+
return {
|
|
1453
|
+
kind: "event",
|
|
1454
|
+
eventType: "notion-page-content-updated",
|
|
1455
|
+
eventConfig: pageUrl !== void 0 && pageUrl.length > 0 ? {
|
|
1456
|
+
provider: "notion",
|
|
1457
|
+
event: "page_content_updated",
|
|
1458
|
+
pageUrl
|
|
1459
|
+
} : {
|
|
1460
|
+
provider: "notion",
|
|
1461
|
+
event: "page_content_updated",
|
|
1462
|
+
databaseUrl: databaseUrl ?? ""
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
}
|
|
1411
1466
|
function buildWebhookCreateRequest(options) {
|
|
1412
1467
|
assertNoScheduleAddOptions(options);
|
|
1413
1468
|
if (hasEventAddOptions(options)) {
|
|
@@ -1447,6 +1502,8 @@ function buildCreateRequest(kind, options) {
|
|
|
1447
1502
|
return buildNotionChildPageCreatedCreateRequest(options);
|
|
1448
1503
|
case "notion-database-item-created":
|
|
1449
1504
|
return buildNotionDatabaseItemCreatedCreateRequest(options);
|
|
1505
|
+
case "notion-page-content-updated":
|
|
1506
|
+
return buildNotionPageContentUpdatedCreateRequest(options);
|
|
1450
1507
|
case "webhook":
|
|
1451
1508
|
return buildWebhookCreateRequest(options);
|
|
1452
1509
|
default:
|
|
@@ -1540,12 +1597,15 @@ var addCommand = addGithubTriggerOptions(
|
|
|
1540
1597
|
).option(
|
|
1541
1598
|
"--calendar-id <id>",
|
|
1542
1599
|
"Google Calendar ID for Google Calendar event triggers (default: primary)"
|
|
1600
|
+
).option(
|
|
1601
|
+
"--page-url <url>",
|
|
1602
|
+
"Notion page URL for notion-page-content-updated triggers"
|
|
1543
1603
|
).option(
|
|
1544
1604
|
"--parent-page-url <url>",
|
|
1545
1605
|
"Parent Notion page URL for notion-child-page-created triggers"
|
|
1546
1606
|
).option(
|
|
1547
1607
|
"--database-url <url>",
|
|
1548
|
-
"Notion database URL for notion-database-item-created triggers"
|
|
1608
|
+
"Notion database URL for notion-database-item-created or notion-page-content-updated triggers"
|
|
1549
1609
|
).option("--agent <id>", "Agent ID for resolving a workflow name").addHelpText(
|
|
1550
1610
|
"after",
|
|
1551
1611
|
`
|
|
@@ -1562,6 +1622,8 @@ Examples:
|
|
|
1562
1622
|
zero workflow trigger add triage --agent <agent-id> google-calendar-event-cancelled
|
|
1563
1623
|
zero workflow trigger add research-notes --agent <agent-id> notion-child-page-created --parent-page-url "https://www.notion.so/workspace/Page-title-1234567890abcdef1234567890abcdef"
|
|
1564
1624
|
zero workflow trigger add research-notes --agent <agent-id> notion-database-item-created --database-url "https://www.notion.so/1234567890abcdef1234567890abcdef?v=abcdef1234567890abcdef1234567890"
|
|
1625
|
+
zero workflow trigger add research-notes --agent <agent-id> notion-page-content-updated --page-url "https://www.notion.so/workspace/Page-title-1234567890abcdef1234567890abcdef"
|
|
1626
|
+
zero workflow trigger add research-notes --agent <agent-id> notion-page-content-updated --database-url "https://www.notion.so/1234567890abcdef1234567890abcdef?v=abcdef1234567890abcdef1234567890"
|
|
1565
1627
|
zero workflow trigger add triage --agent <agent-id> webhook
|
|
1566
1628
|
|
|
1567
1629
|
Notes:
|
|
@@ -1691,4 +1753,4 @@ Examples:
|
|
|
1691
1753
|
export {
|
|
1692
1754
|
zeroWorkflowCommand
|
|
1693
1755
|
};
|
|
1694
|
-
//# sourceMappingURL=workflow-
|
|
1756
|
+
//# sourceMappingURL=workflow-3ZFUOHIE.js.map
|