@vm0/cli 9.222.12 → 9.223.1
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-XNVQRMKI.js → agent-MUFNLOIU.js} +4 -4
- package/{banking-QBTNNOCQ.js → banking-EZF4ZO6X.js} +2 -2
- package/{chat-ELAJKQXT.js → chat-MW73DFSS.js} +2 -2
- package/{chunk-VTG6TDYL.js → chunk-5LBOADAS.js} +2 -2
- package/{chunk-KBDCWC3F.js → chunk-BE5LA7LU.js} +129 -46
- package/chunk-BE5LA7LU.js.map +1 -0
- package/{chunk-7ZJOZZXZ.js → chunk-C3J4FX5J.js} +2 -2
- package/{chunk-JOOQB7W3.js → chunk-EOG3HFWN.js} +2 -2
- package/{chunk-Y4YHS5UO.js → chunk-GGXVYODK.js} +2 -2
- package/{chunk-SBLYEOJF.js → chunk-J3K4NTPI.js} +27 -18
- package/{chunk-SBLYEOJF.js.map → chunk-J3K4NTPI.js.map} +1 -1
- package/{chunk-F774K6TY.js → chunk-JPR52V7X.js} +2 -2
- package/{chunk-LOEUF572.js → chunk-OWTSZSIC.js} +3 -3
- package/{chunk-QYSUVI4Z.js → chunk-VCUM7W4I.js} +3 -3
- package/{chunk-I23JUVHS.js → chunk-WQGXVVFA.js} +14 -396
- package/chunk-WQGXVVFA.js.map +1 -0
- package/{computer-use-XXPDTJSQ.js → computer-use-ZV6MVHH2.js} +2 -2
- package/{connector-PWDJ3R6G.js → connector-YCRFUQL3.js} +2 -2
- package/{credit-MYBUWRHP.js → credit-7GNXDI4B.js} +2 -2
- package/{developer-support-65OQ2RK4.js → developer-support-A6HBN4J2.js} +2 -2
- package/{doctor-2U4HK4AX.js → doctor-WUWR7I3Y.js} +5 -5
- package/{generate-UEDRCAKX.js → generate-IEIBEL4J.js} +26 -7
- package/generate-IEIBEL4J.js.map +1 -0
- package/{github-R6JKL74U.js → github-4GZ5G627.js} +2 -2
- package/{goal-BG47S2RP.js → goal-WCXKLZ2P.js} +2 -2
- package/{host-2VS2KOZQ.js → host-PC25B2TW.js} +2 -2
- package/index.js +14 -14
- package/index.js.map +1 -1
- package/{logs-P4ECN3YI.js → logs-XORAOODW.js} +7 -7
- package/{maps-ZBULOEZW.js → maps-NOSDEG7D.js} +2 -2
- package/{model-BFHGQJ5U.js → model-J6VG3A4X.js} +3 -3
- package/{model-provider-OUSOKSWW.js → model-provider-AF5622CC.js} +3 -3
- package/{org-RI2EYUW7.js → org-Z76MGPCQ.js} +2 -2
- package/package.json +1 -1
- package/{phone-SNLGLD3J.js → phone-AWSDHAC2.js} +2 -2
- package/{preference-XDSQRZWM.js → preference-CKFQP3FF.js} +2 -2
- package/relationship-HICHWF2W.js +188 -0
- package/relationship-HICHWF2W.js.map +1 -0
- package/{resource-BA4FQCNQ.js → resource-ZLM6MAQD.js} +4 -4
- package/resource-ZLM6MAQD.js.map +1 -0
- package/{search-FMA3IDHQ.js → search-6O6MJTQJ.js} +7 -7
- package/{secret-NFJQKUPS.js → secret-AXLFQMNQ.js} +3 -3
- package/{slack-JPM5WVX6.js → slack-OONXFG7X.js} +2 -2
- package/{telegram-BNX4UZTT.js → telegram-7AW3MQT4.js} +2 -2
- package/{variable-IAIPAH3T.js → variable-E776AHIH.js} +2 -2
- package/{web-3TJGHZNA.js → web-KBGXU6UW.js} +2 -2
- package/{whoami-OVIXXMRR.js → whoami-K6PR2Y2T.js} +4 -4
- package/{workflow-WWMTJDLF.js → workflow-4FR3ZQM4.js} +2 -2
- package/zero.js +38 -30
- package/zero.js.map +1 -1
- package/chunk-I23JUVHS.js.map +0 -1
- package/chunk-KBDCWC3F.js.map +0 -1
- package/generate-UEDRCAKX.js.map +0 -1
- package/resource-BA4FQCNQ.js.map +0 -1
- /package/{agent-XNVQRMKI.js.map → agent-MUFNLOIU.js.map} +0 -0
- /package/{banking-QBTNNOCQ.js.map → banking-EZF4ZO6X.js.map} +0 -0
- /package/{chat-ELAJKQXT.js.map → chat-MW73DFSS.js.map} +0 -0
- /package/{chunk-VTG6TDYL.js.map → chunk-5LBOADAS.js.map} +0 -0
- /package/{chunk-7ZJOZZXZ.js.map → chunk-C3J4FX5J.js.map} +0 -0
- /package/{chunk-JOOQB7W3.js.map → chunk-EOG3HFWN.js.map} +0 -0
- /package/{chunk-Y4YHS5UO.js.map → chunk-GGXVYODK.js.map} +0 -0
- /package/{chunk-F774K6TY.js.map → chunk-JPR52V7X.js.map} +0 -0
- /package/{chunk-LOEUF572.js.map → chunk-OWTSZSIC.js.map} +0 -0
- /package/{chunk-QYSUVI4Z.js.map → chunk-VCUM7W4I.js.map} +0 -0
- /package/{computer-use-XXPDTJSQ.js.map → computer-use-ZV6MVHH2.js.map} +0 -0
- /package/{connector-PWDJ3R6G.js.map → connector-YCRFUQL3.js.map} +0 -0
- /package/{credit-MYBUWRHP.js.map → credit-7GNXDI4B.js.map} +0 -0
- /package/{developer-support-65OQ2RK4.js.map → developer-support-A6HBN4J2.js.map} +0 -0
- /package/{doctor-2U4HK4AX.js.map → doctor-WUWR7I3Y.js.map} +0 -0
- /package/{github-R6JKL74U.js.map → github-4GZ5G627.js.map} +0 -0
- /package/{goal-BG47S2RP.js.map → goal-WCXKLZ2P.js.map} +0 -0
- /package/{host-2VS2KOZQ.js.map → host-PC25B2TW.js.map} +0 -0
- /package/{logs-P4ECN3YI.js.map → logs-XORAOODW.js.map} +0 -0
- /package/{maps-ZBULOEZW.js.map → maps-NOSDEG7D.js.map} +0 -0
- /package/{model-BFHGQJ5U.js.map → model-J6VG3A4X.js.map} +0 -0
- /package/{model-provider-OUSOKSWW.js.map → model-provider-AF5622CC.js.map} +0 -0
- /package/{org-RI2EYUW7.js.map → org-Z76MGPCQ.js.map} +0 -0
- /package/{phone-SNLGLD3J.js.map → phone-AWSDHAC2.js.map} +0 -0
- /package/{preference-XDSQRZWM.js.map → preference-CKFQP3FF.js.map} +0 -0
- /package/{search-FMA3IDHQ.js.map → search-6O6MJTQJ.js.map} +0 -0
- /package/{secret-NFJQKUPS.js.map → secret-AXLFQMNQ.js.map} +0 -0
- /package/{slack-JPM5WVX6.js.map → slack-OONXFG7X.js.map} +0 -0
- /package/{telegram-BNX4UZTT.js.map → telegram-7AW3MQT4.js.map} +0 -0
- /package/{variable-IAIPAH3T.js.map → variable-E776AHIH.js.map} +0 -0
- /package/{web-3TJGHZNA.js.map → web-KBGXU6UW.js.map} +0 -0
- /package/{whoami-OVIXXMRR.js.map → whoami-K6PR2Y2T.js.map} +0 -0
- /package/{workflow-WWMTJDLF.js.map → workflow-4FR3ZQM4.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-VCUM7W4I.js";
|
|
7
7
|
import {
|
|
8
8
|
EventRenderer,
|
|
9
9
|
EventStreamNormalizer,
|
|
@@ -14,15 +14,15 @@ 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-J3K4NTPI.js";
|
|
18
|
+
import "./chunk-WQGXVVFA.js";
|
|
19
|
+
import "./chunk-JPR52V7X.js";
|
|
20
|
+
import "./chunk-GGXVYODK.js";
|
|
21
21
|
import "./chunk-LTDQISD7.js";
|
|
22
22
|
import {
|
|
23
23
|
getZeroRunAgentEvents,
|
|
24
24
|
listZeroLogs
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BE5LA7LU.js";
|
|
26
26
|
import {
|
|
27
27
|
withErrorHandler
|
|
28
28
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -274,4 +274,4 @@ Examples:
|
|
|
274
274
|
export {
|
|
275
275
|
zeroLogsCommand
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=logs-
|
|
277
|
+
//# sourceMappingURL=logs-XORAOODW.js.map
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import "./chunk-LTDQISD7.js";
|
|
5
5
|
import {
|
|
6
6
|
callZeroMaps
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BE5LA7LU.js";
|
|
8
8
|
import {
|
|
9
9
|
withErrorHandler
|
|
10
10
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -484,4 +484,4 @@ Notes:
|
|
|
484
484
|
export {
|
|
485
485
|
zeroMapsCommand
|
|
486
486
|
};
|
|
487
|
-
//# sourceMappingURL=maps-
|
|
487
|
+
//# sourceMappingURL=maps-NOSDEG7D.js.map
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
formatModelProviderRoute,
|
|
7
7
|
getModelProviderRouteKind
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5LBOADAS.js";
|
|
9
9
|
import "./chunk-LTDQISD7.js";
|
|
10
10
|
import {
|
|
11
11
|
getVm0ModelPriceTier,
|
|
12
12
|
listZeroModelPolicies
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BE5LA7LU.js";
|
|
14
14
|
import {
|
|
15
15
|
withErrorHandler
|
|
16
16
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
switchCommand,
|
|
91
91
|
zeroModelCommand
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=model-
|
|
93
|
+
//# sourceMappingURL=model-J6VG3A4X.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
formatModelPolicyStatus,
|
|
6
6
|
getModelProviderRouteKind,
|
|
7
7
|
getModelProviderTypeLabel
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5LBOADAS.js";
|
|
9
9
|
import "./chunk-LTDQISD7.js";
|
|
10
10
|
import {
|
|
11
11
|
listZeroModelPolicies
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BE5LA7LU.js";
|
|
13
13
|
import {
|
|
14
14
|
withErrorHandler
|
|
15
15
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
setCommand,
|
|
75
75
|
zeroModelProviderCommand
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=model-provider-
|
|
77
|
+
//# sourceMappingURL=model-provider-AF5622CC.js.map
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
switchZeroOrg,
|
|
34
34
|
updateZeroOrg,
|
|
35
35
|
upsertZeroOrgModelProvider
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BE5LA7LU.js";
|
|
37
37
|
import {
|
|
38
38
|
ApiRequestError,
|
|
39
39
|
getActiveOrg,
|
|
@@ -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-Z76MGPCQ.js.map
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
downloadPhoneFile,
|
|
8
8
|
initPhoneFileUpload,
|
|
9
9
|
sendPhoneMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BE5LA7LU.js";
|
|
11
11
|
import {
|
|
12
12
|
withErrorHandler
|
|
13
13
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -201,4 +201,4 @@ Examples:
|
|
|
201
201
|
export {
|
|
202
202
|
zeroPhoneCommand
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=phone-
|
|
204
|
+
//# sourceMappingURL=phone-AWSDHAC2.js.map
|
|
@@ -9,7 +9,7 @@ import "./chunk-LTDQISD7.js";
|
|
|
9
9
|
import {
|
|
10
10
|
getZeroUserPreferences,
|
|
11
11
|
updateZeroUserPreferences
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BE5LA7LU.js";
|
|
13
13
|
import {
|
|
14
14
|
withErrorHandler
|
|
15
15
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -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-CKFQP3FF.js.map
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as __createRequire } from "node:module";
|
|
3
|
+
const require = __createRequire(import.meta.url);
|
|
4
|
+
import "./chunk-LTDQISD7.js";
|
|
5
|
+
import {
|
|
6
|
+
resolveZeroRelationship,
|
|
7
|
+
searchZeroRelationships
|
|
8
|
+
} from "./chunk-BE5LA7LU.js";
|
|
9
|
+
import {
|
|
10
|
+
withErrorHandler
|
|
11
|
+
} from "./chunk-3F4RFLPX.js";
|
|
12
|
+
import {
|
|
13
|
+
source_default
|
|
14
|
+
} from "./chunk-JUTUEPIR.js";
|
|
15
|
+
import "./chunk-LRHXR7JT.js";
|
|
16
|
+
import {
|
|
17
|
+
Command
|
|
18
|
+
} from "./chunk-B3W2RUBP.js";
|
|
19
|
+
import {
|
|
20
|
+
init_esm_shims
|
|
21
|
+
} from "./chunk-DIRAZ3YX.js";
|
|
22
|
+
|
|
23
|
+
// src/commands/zero/relationship/index.ts
|
|
24
|
+
init_esm_shims();
|
|
25
|
+
|
|
26
|
+
// src/commands/zero/relationship/get.ts
|
|
27
|
+
init_esm_shims();
|
|
28
|
+
|
|
29
|
+
// src/commands/zero/relationship/format.ts
|
|
30
|
+
init_esm_shims();
|
|
31
|
+
function formatDate(value) {
|
|
32
|
+
if (!value) {
|
|
33
|
+
return "never";
|
|
34
|
+
}
|
|
35
|
+
return new Intl.DateTimeFormat(void 0, {
|
|
36
|
+
year: "numeric",
|
|
37
|
+
month: "short",
|
|
38
|
+
day: "numeric"
|
|
39
|
+
}).format(new Date(value));
|
|
40
|
+
}
|
|
41
|
+
function itemsOfKind(relationship, kind) {
|
|
42
|
+
return relationship.items.filter((item) => {
|
|
43
|
+
return item.kind === kind;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function printItems(title, items) {
|
|
47
|
+
if (items.length === 0) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
console.log("");
|
|
51
|
+
console.log(source_default.bold(title));
|
|
52
|
+
for (const item of items) {
|
|
53
|
+
const source = item.sources[0];
|
|
54
|
+
const sourceText = source ? source_default.dim(` (${source.provider}, ${formatDate(source.occurredAt)})`) : "";
|
|
55
|
+
console.log(` - ${item.text}${sourceText}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function printRelationship(relationship) {
|
|
59
|
+
console.log(source_default.green("\u2713 Relationship loaded"));
|
|
60
|
+
console.log(source_default.bold(relationship.entity.displayName));
|
|
61
|
+
if (relationship.entity.primaryEmail) {
|
|
62
|
+
console.log(source_default.dim(` Email: ${relationship.entity.primaryEmail}`));
|
|
63
|
+
}
|
|
64
|
+
if (relationship.entity.domain) {
|
|
65
|
+
console.log(source_default.dim(` Domain: ${relationship.entity.domain}`));
|
|
66
|
+
}
|
|
67
|
+
console.log(source_default.dim(` Type: ${relationship.relationshipType}`));
|
|
68
|
+
console.log(source_default.dim(` Status: ${relationship.status}`));
|
|
69
|
+
console.log(
|
|
70
|
+
source_default.dim(` Last touch: ${formatDate(relationship.lastInteractionAt)}`)
|
|
71
|
+
);
|
|
72
|
+
if (relationship.summary) {
|
|
73
|
+
console.log("");
|
|
74
|
+
console.log(relationship.summary);
|
|
75
|
+
}
|
|
76
|
+
printItems("Key facts", itemsOfKind(relationship, "key_fact"));
|
|
77
|
+
printItems("Preferences", itemsOfKind(relationship, "preference"));
|
|
78
|
+
printItems("Open loops", itemsOfKind(relationship, "open_loop"));
|
|
79
|
+
}
|
|
80
|
+
function printRelationshipSearch(relationships) {
|
|
81
|
+
if (relationships.length === 0) {
|
|
82
|
+
console.log("No relationships found");
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
console.log(source_default.green(`\u2713 Found ${relationships.length} relationships`));
|
|
86
|
+
for (const relationship of relationships) {
|
|
87
|
+
const primary = relationship.entity.primaryEmail ?? relationship.entity.domain ?? "";
|
|
88
|
+
const suffix = primary ? source_default.dim(` - ${primary}`) : "";
|
|
89
|
+
console.log(
|
|
90
|
+
`${relationship.entity.displayName}${suffix} ${source_default.dim(
|
|
91
|
+
`(${relationship.relationshipType}, ${formatDate(
|
|
92
|
+
relationship.lastInteractionAt
|
|
93
|
+
)})`
|
|
94
|
+
)}`
|
|
95
|
+
);
|
|
96
|
+
if (relationship.summary) {
|
|
97
|
+
console.log(source_default.dim(` ${relationship.summary}`));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// src/commands/zero/relationship/get.ts
|
|
103
|
+
function selectedLookupCount(options) {
|
|
104
|
+
return [options.id, options.email, options.domain].filter((value) => {
|
|
105
|
+
return Boolean(value);
|
|
106
|
+
}).length;
|
|
107
|
+
}
|
|
108
|
+
function printUsageError(message, hint) {
|
|
109
|
+
console.error(source_default.red(`\u2717 ${message}`));
|
|
110
|
+
console.error(source_default.dim(` ${hint}`));
|
|
111
|
+
process.exit(1);
|
|
112
|
+
}
|
|
113
|
+
var getCommand = new Command().name("get").description("Resolve a relationship by id, email, or domain").option("--id <id>", "Resolve by relationship id").option("--email <email>", "Resolve by primary email").option("--domain <domain>", "Resolve by domain").option("--json", "Print machine-readable JSON").addHelpText(
|
|
114
|
+
"after",
|
|
115
|
+
`
|
|
116
|
+
Examples:
|
|
117
|
+
Resolve by email: zero relationship get --email alice@acme.com
|
|
118
|
+
Resolve by domain: zero relationship get --domain acme.com
|
|
119
|
+
Resolve by id: zero relationship get --id <relationship-id>
|
|
120
|
+
Print JSON: zero relationship get --email alice@acme.com --json
|
|
121
|
+
|
|
122
|
+
Notes:
|
|
123
|
+
- Uses the authenticated user's active organization
|
|
124
|
+
- Does not support cross-organization lookup
|
|
125
|
+
- This command is read-only`
|
|
126
|
+
).action(
|
|
127
|
+
withErrorHandler(async (options) => {
|
|
128
|
+
if (selectedLookupCount(options) !== 1) {
|
|
129
|
+
printUsageError(
|
|
130
|
+
"Choose exactly one lookup",
|
|
131
|
+
"Pass one of --id, --email, or --domain."
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
const response = await resolveZeroRelationship(
|
|
135
|
+
options.id ? { id: options.id } : options.email ? { email: options.email } : { domain: options.domain }
|
|
136
|
+
);
|
|
137
|
+
if (options.json) {
|
|
138
|
+
console.log(JSON.stringify(response));
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (!response.relationship) {
|
|
142
|
+
console.log("No relationship found");
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
printRelationship(response.relationship);
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
// src/commands/zero/relationship/search.ts
|
|
150
|
+
init_esm_shims();
|
|
151
|
+
function parseLimit(value) {
|
|
152
|
+
if (value === void 0) {
|
|
153
|
+
return void 0;
|
|
154
|
+
}
|
|
155
|
+
const parsed = Number(value);
|
|
156
|
+
return Number.isInteger(parsed) ? parsed : void 0;
|
|
157
|
+
}
|
|
158
|
+
var searchCommand = new Command().name("search").description("Search relationship memory").argument("<query>", "Search query").option("--limit <limit>", "Maximum relationships to return").option("--json", "Print machine-readable JSON").addHelpText(
|
|
159
|
+
"after",
|
|
160
|
+
`
|
|
161
|
+
Examples:
|
|
162
|
+
Search relationships: zero relationship search "acme pricing"
|
|
163
|
+
Print JSON: zero relationship search "security review" --json
|
|
164
|
+
|
|
165
|
+
Notes:
|
|
166
|
+
- Uses the authenticated user's active organization
|
|
167
|
+
- Does not support cross-organization search
|
|
168
|
+
- This command is read-only`
|
|
169
|
+
).action(
|
|
170
|
+
withErrorHandler(async (query, options) => {
|
|
171
|
+
const response = await searchZeroRelationships({
|
|
172
|
+
q: query,
|
|
173
|
+
limit: parseLimit(options.limit)
|
|
174
|
+
});
|
|
175
|
+
if (options.json) {
|
|
176
|
+
console.log(JSON.stringify(response));
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
printRelationshipSearch(response.relationships);
|
|
180
|
+
})
|
|
181
|
+
);
|
|
182
|
+
|
|
183
|
+
// src/commands/zero/relationship/index.ts
|
|
184
|
+
var zeroRelationshipCommand = new Command().name("relationship").description("Query relationship memory").addCommand(getCommand).addCommand(searchCommand);
|
|
185
|
+
export {
|
|
186
|
+
zeroRelationshipCommand
|
|
187
|
+
};
|
|
188
|
+
//# sourceMappingURL=relationship-HICHWF2W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/relationship/index.ts","../src/commands/zero/relationship/get.ts","../src/commands/zero/relationship/format.ts","../src/commands/zero/relationship/search.ts"],"sourcesContent":["import { Command } from \"commander\";\nimport { getCommand } from \"./get\";\nimport { searchCommand } from \"./search\";\n\nexport const zeroRelationshipCommand = new Command()\n .name(\"relationship\")\n .description(\"Query relationship memory\")\n .addCommand(getCommand)\n .addCommand(searchCommand);\n","import chalk from \"chalk\";\nimport { Command } from \"commander\";\n\nimport { resolveZeroRelationship } from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\nimport { printRelationship } from \"./format\";\n\ninterface GetOptions {\n readonly id?: string;\n readonly email?: string;\n readonly domain?: string;\n readonly json?: boolean;\n}\n\nfunction selectedLookupCount(options: GetOptions): number {\n return [options.id, options.email, options.domain].filter((value) => {\n return Boolean(value);\n }).length;\n}\n\nfunction printUsageError(message: string, hint: string): never {\n console.error(chalk.red(`✗ ${message}`));\n console.error(chalk.dim(` ${hint}`));\n process.exit(1);\n}\n\nexport const getCommand = new Command()\n .name(\"get\")\n .description(\"Resolve a relationship by id, email, or domain\")\n .option(\"--id <id>\", \"Resolve by relationship id\")\n .option(\"--email <email>\", \"Resolve by primary email\")\n .option(\"--domain <domain>\", \"Resolve by domain\")\n .option(\"--json\", \"Print machine-readable JSON\")\n .addHelpText(\n \"after\",\n `\nExamples:\n Resolve by email: zero relationship get --email alice@acme.com\n Resolve by domain: zero relationship get --domain acme.com\n Resolve by id: zero relationship get --id <relationship-id>\n Print JSON: zero relationship get --email alice@acme.com --json\n\nNotes:\n - Uses the authenticated user's active organization\n - Does not support cross-organization lookup\n - This command is read-only`,\n )\n .action(\n withErrorHandler(async (options: GetOptions) => {\n if (selectedLookupCount(options) !== 1) {\n printUsageError(\n \"Choose exactly one lookup\",\n \"Pass one of --id, --email, or --domain.\",\n );\n }\n\n const response = await resolveZeroRelationship(\n options.id\n ? { id: options.id }\n : options.email\n ? { email: options.email }\n : { domain: options.domain! },\n );\n\n if (options.json) {\n console.log(JSON.stringify(response));\n return;\n }\n\n if (!response.relationship) {\n console.log(\"No relationship found\");\n return;\n }\n\n printRelationship(response.relationship);\n }),\n );\n","import chalk from \"chalk\";\nimport type { RelationshipRecord } from \"@vm0/api-contracts/contracts/zero-relationships\";\n\nfunction formatDate(value: string | null): string {\n if (!value) {\n return \"never\";\n }\n return new Intl.DateTimeFormat(undefined, {\n year: \"numeric\",\n month: \"short\",\n day: \"numeric\",\n }).format(new Date(value));\n}\n\nfunction itemsOfKind(\n relationship: RelationshipRecord,\n kind: RelationshipRecord[\"items\"][number][\"kind\"],\n) {\n return relationship.items.filter((item) => {\n return item.kind === kind;\n });\n}\n\nfunction printItems(\n title: string,\n items: readonly RelationshipRecord[\"items\"][number][],\n): void {\n if (items.length === 0) {\n return;\n }\n console.log(\"\");\n console.log(chalk.bold(title));\n for (const item of items) {\n const source = item.sources[0];\n const sourceText = source\n ? chalk.dim(` (${source.provider}, ${formatDate(source.occurredAt)})`)\n : \"\";\n console.log(` - ${item.text}${sourceText}`);\n }\n}\n\nexport function printRelationship(relationship: RelationshipRecord): void {\n console.log(chalk.green(\"✓ Relationship loaded\"));\n console.log(chalk.bold(relationship.entity.displayName));\n if (relationship.entity.primaryEmail) {\n console.log(chalk.dim(` Email: ${relationship.entity.primaryEmail}`));\n }\n if (relationship.entity.domain) {\n console.log(chalk.dim(` Domain: ${relationship.entity.domain}`));\n }\n console.log(chalk.dim(` Type: ${relationship.relationshipType}`));\n console.log(chalk.dim(` Status: ${relationship.status}`));\n console.log(\n chalk.dim(` Last touch: ${formatDate(relationship.lastInteractionAt)}`),\n );\n\n if (relationship.summary) {\n console.log(\"\");\n console.log(relationship.summary);\n }\n\n printItems(\"Key facts\", itemsOfKind(relationship, \"key_fact\"));\n printItems(\"Preferences\", itemsOfKind(relationship, \"preference\"));\n printItems(\"Open loops\", itemsOfKind(relationship, \"open_loop\"));\n}\n\nexport function printRelationshipSearch(\n relationships: readonly RelationshipRecord[],\n): void {\n if (relationships.length === 0) {\n console.log(\"No relationships found\");\n return;\n }\n\n console.log(chalk.green(`✓ Found ${relationships.length} relationships`));\n for (const relationship of relationships) {\n const primary =\n relationship.entity.primaryEmail ?? relationship.entity.domain ?? \"\";\n const suffix = primary ? chalk.dim(` - ${primary}`) : \"\";\n console.log(\n `${relationship.entity.displayName}${suffix} ${chalk.dim(\n `(${relationship.relationshipType}, ${formatDate(\n relationship.lastInteractionAt,\n )})`,\n )}`,\n );\n if (relationship.summary) {\n console.log(chalk.dim(` ${relationship.summary}`));\n }\n }\n}\n","import { Command } from \"commander\";\n\nimport { searchZeroRelationships } from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\nimport { printRelationshipSearch } from \"./format\";\n\ninterface SearchOptions {\n readonly json?: boolean;\n readonly limit?: string;\n}\n\nfunction parseLimit(value: string | undefined): number | undefined {\n if (value === undefined) {\n return undefined;\n }\n const parsed = Number(value);\n return Number.isInteger(parsed) ? parsed : undefined;\n}\n\nexport const searchCommand = new Command()\n .name(\"search\")\n .description(\"Search relationship memory\")\n .argument(\"<query>\", \"Search query\")\n .option(\"--limit <limit>\", \"Maximum relationships to return\")\n .option(\"--json\", \"Print machine-readable JSON\")\n .addHelpText(\n \"after\",\n `\nExamples:\n Search relationships: zero relationship search \"acme pricing\"\n Print JSON: zero relationship search \"security review\" --json\n\nNotes:\n - Uses the authenticated user's active organization\n - Does not support cross-organization search\n - This command is read-only`,\n )\n .action(\n withErrorHandler(async (query: string, options: SearchOptions) => {\n const response = await searchZeroRelationships({\n q: query,\n limit: parseLimit(options.limit),\n });\n\n if (options.json) {\n console.log(JSON.stringify(response));\n return;\n }\n\n printRelationshipSearch(response.relationships);\n }),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;;ACAA;;;ACAA;AAGA,SAAS,WAAW,OAA8B;AAChD,MAAI,CAAC,OAAO;AACV,WAAO;AAAA,EACT;AACA,SAAO,IAAI,KAAK,eAAe,QAAW;AAAA,IACxC,MAAM;AAAA,IACN,OAAO;AAAA,IACP,KAAK;AAAA,EACP,CAAC,EAAE,OAAO,IAAI,KAAK,KAAK,CAAC;AAC3B;AAEA,SAAS,YACP,cACA,MACA;AACA,SAAO,aAAa,MAAM,OAAO,CAAC,SAAS;AACzC,WAAO,KAAK,SAAS;AAAA,EACvB,CAAC;AACH;AAEA,SAAS,WACP,OACA,OACM;AACN,MAAI,MAAM,WAAW,GAAG;AACtB;AAAA,EACF;AACA,UAAQ,IAAI,EAAE;AACd,UAAQ,IAAI,eAAM,KAAK,KAAK,CAAC;AAC7B,aAAW,QAAQ,OAAO;AACxB,UAAM,SAAS,KAAK,QAAQ,CAAC;AAC7B,UAAM,aAAa,SACf,eAAM,IAAI,KAAK,OAAO,QAAQ,KAAK,WAAW,OAAO,UAAU,CAAC,GAAG,IACnE;AACJ,YAAQ,IAAI,OAAO,KAAK,IAAI,GAAG,UAAU,EAAE;AAAA,EAC7C;AACF;AAEO,SAAS,kBAAkB,cAA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C,CAAC;AACH;;;AE5EF;AAWA,SAAS,WAAW,OAA+C;AACjE,MAAI,UAAU,QAAW;AACvB,WAAO;AAAA,EACT;AACA,QAAM,SAAS,OAAO,KAAK;AAC3B,SAAO,OAAO,UAAU,MAAM,IAAI,SAAS;AAC7C;AAEO,IAAM,gBAAgB,IAAI,QAAQ,EACtC,KAAK,QAAQ,EACb,YAAY,4BAA4B,EACxC,SAAS,WAAW,cAAc,EAClC,OAAO,mBAAmB,iCAAiC,EAC3D,OAAO,UAAU,6BAA6B,EAC9C;AAAA,EACC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASF,EACC;AAAA,EACC,iBAAiB,OAAO,OAAe,YAA2B;AAChE,UAAM,WAAW,MAAM,wBAAwB;AAAA,MAC7C,GAAG;AAAA,MACH,OAAO,WAAW,QAAQ,KAAK;AAAA,IACjC,CAAC;AAED,QAAI,QAAQ,MAAM;AAChB,cAAQ,IAAI,KAAK,UAAU,QAAQ,CAAC;AACpC;AAAA,IACF;AAEA,4BAAwB,SAAS,aAAa;AAAA,EAChD,CAAC;AACH;;;AH/CK,IAAM,0BAA0B,IAAI,QAAQ,EAChD,KAAK,cAAc,EACnB,YAAY,2BAA2B,EACvC,WAAW,UAAU,EACrB,WAAW,aAAa;","names":[]}
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
findTemplate,
|
|
13
13
|
findTool,
|
|
14
14
|
findVideoTemplate
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WQGXVVFA.js";
|
|
16
16
|
import "./chunk-LTDQISD7.js";
|
|
17
17
|
import {
|
|
18
18
|
getRegistryResourceDownload
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BE5LA7LU.js";
|
|
20
20
|
import {
|
|
21
21
|
withErrorHandler
|
|
22
22
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -83,7 +83,7 @@ function verifyArchive(buffer, expectedSha256) {
|
|
|
83
83
|
var zeroResourceCommand = new Command().name("resource").description("Pull registry resources from private R2-backed archives").addCommand(
|
|
84
84
|
new Command().name("pull").description("Download and extract a private registry resource archive").argument(
|
|
85
85
|
"<id>",
|
|
86
|
-
"Registry resource id, such as template:html-ppt-playful-launch"
|
|
86
|
+
"Registry resource id, such as template:html-ppt-playful-launch-runbook"
|
|
87
87
|
).option(
|
|
88
88
|
"--dir <path>",
|
|
89
89
|
"Directory to extract into",
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
findRegistryResourceForPull,
|
|
139
139
|
zeroResourceCommand
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=resource-
|
|
141
|
+
//# sourceMappingURL=resource-ZLM6MAQD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/zero/resource/index.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\nimport { mkdir, mkdtemp, rm, writeFile } from \"node:fs/promises\";\nimport { tmpdir } from \"node:os\";\nimport path from \"node:path\";\n\nimport { Command } from \"commander\";\nimport chalk from \"chalk\";\nimport * as tar from \"tar\";\nimport {\n findColorSystem,\n findDesignSystem,\n findImageStyle,\n findPresentationRunbookResource,\n findTool,\n findTemplate,\n findVideoTemplate,\n type RegistryEntry,\n type VideoTemplateRegistryEntry,\n} from \"@vm0/core/resource-registry\";\n\nimport { getRegistryResourceDownload } from \"../../../lib/api\";\nimport { withErrorHandler } from \"../../../lib/command\";\n\ntype PullableRegistryEntry = RegistryEntry | VideoTemplateRegistryEntry;\n\ninterface PullOptions {\n readonly dir: string;\n}\n\nfunction candidateIds(id: string): readonly string[] {\n if (id.includes(\":\")) {\n return [id];\n }\n return [\n `template:${id}`,\n `design-system:${id}`,\n `color-system:${id}`,\n `tool:${id}`,\n `image-style:${id}`,\n `video-template:${id}`,\n ];\n}\n\nexport function findRegistryResourceForPull(\n id: string,\n): PullableRegistryEntry | undefined {\n for (const candidate of candidateIds(id)) {\n const entry =\n findTemplate(candidate) ??\n findDesignSystem(candidate) ??\n findColorSystem(candidate) ??\n findTool(candidate) ??\n findImageStyle(candidate) ??\n findVideoTemplate(candidate) ??\n findPresentationRunbookResource(candidate);\n if (entry) {\n return entry;\n }\n }\n return undefined;\n}\n\nfunction isSafeTarPath(entryPath: string): boolean {\n const normalized = entryPath.replace(/\\\\/gu, \"/\");\n return (\n !path.isAbsolute(normalized) &&\n !normalized.split(\"/\").some((segment) => {\n return segment === \"..\";\n })\n );\n}\n\nasync function downloadArchive(url: string): Promise<Buffer> {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`Resource archive download failed: ${response.status}`);\n }\n return Buffer.from(await response.arrayBuffer());\n}\n\nfunction verifyArchive(buffer: Buffer, expectedSha256: string): void {\n const actual = createHash(\"sha256\").update(buffer).digest(\"hex\");\n if (actual !== expectedSha256) {\n throw new Error(\n `Resource archive digest mismatch: expected ${expectedSha256}, got ${actual}`,\n );\n }\n}\n\nexport const zeroResourceCommand = new Command()\n .name(\"resource\")\n .description(\"Pull registry resources from private R2-backed archives\")\n .addCommand(\n new Command()\n .name(\"pull\")\n .description(\"Download and extract a private registry resource archive\")\n .argument(\n \"<id>\",\n \"Registry resource id, such as template:html-ppt-playful-launch-runbook\",\n )\n .option(\n \"--dir <path>\",\n \"Directory to extract into\",\n \"./generated/resources\",\n )\n .action(\n withErrorHandler(async (id: string, options: PullOptions) => {\n const entry = findRegistryResourceForPull(id);\n if (!entry) {\n throw new Error(`Unknown registry resource: ${id}`);\n }\n\n const archive = entry.source.archive;\n if (!archive) {\n throw new Error(\n `Registry resource ${entry.id} does not provide an R2 archive source`,\n );\n }\n\n console.log(chalk.dim(`Pulling ${entry.id}...`));\n const download = await getRegistryResourceDownload({ id: entry.id });\n if (download.sha256 !== archive.sha256) {\n throw new Error(\n `Resource archive digest metadata mismatch: expected ${archive.sha256}, got ${download.sha256}`,\n );\n }\n\n const buffer = await downloadArchive(download.url);\n verifyArchive(buffer, archive.sha256);\n\n const outputDir = path.resolve(options.dir);\n const tmpDir = await mkdtemp(path.join(tmpdir(), \"zero-resource-\"));\n const archivePath = path.join(tmpDir, \"resource.tar.gz\");\n await mkdir(outputDir, { recursive: true });\n await writeFile(archivePath, buffer);\n\n try {\n await tar.extract({\n file: archivePath,\n cwd: outputDir,\n gzip: true,\n filter: isSafeTarPath,\n });\n } finally {\n await rm(tmpDir, { recursive: true, force: true });\n }\n\n console.log(chalk.green(`✓ Pulled ${entry.id}`));\n console.log(chalk.dim(` Extracted to: ${outputDir}`));\n console.log(\n chalk.dim(\n ` Source path: ${path.join(outputDir, entry.source.path)}`,\n ),\n );\n }),\n ),\n );\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,SAAS,kBAAkB;AAC3B,SAAS,OAAO,SAAS,IAAI,iBAAiB;AAC9C,SAAS,cAAc;AACvB,OAAO,UAAU;AA0BjB,SAAS,aAAa,IAA+B;AACnD,MAAI,GAAG,SAAS,GAAG,GAAG;AACpB,WAAO,CAAC,EAAE;AAAA,EACZ;AACA,SAAO;AAAA,IACL,YAAY,EAAE;AAAA,IACd,iBAAiB,EAAE;AAAA,IACnB,gBAAgB,EAAE;AAAA,IAClB,QAAQ,EAAE;AAAA,IACV,eAAe,EAAE;AAAA,IACjB,kBAAkB,EAAE;AAAA,EACtB;AACF;AAEO,SAAS,4BACd,IACmC;AACnC,aAAW,aAAa,aAAa,EAAE,GAAG;AACxC,UAAM,QACJ,aAAa,SAAS,KACtB,iBAAiB,SAAS,KAC1B,gBAAgB,SAAS,KACzB,SAAS,SAAS,KAClB,eAAe,SAAS,KACxB,kBAAkB,SAAS,KAC3B,gCAAgC,SAAS;AAC3C,QAAI,OAAO;AACT,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAEA,SAAS,cAAc,WAA4B;AACjD,QAAM,aAAa,UAAU,QAAQ,QAAQ,GAAG;AAChD,SACE,CAAC,KAAK,WAAW,UAAU,KAC3B,CAAC,WAAW,MAAM,GA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,MAAM;AAAA,QAC/F;AAAA,MACF;AAEA,YAAM,SAAS,MAAM,gBAAgB,SAAS,GAAG;AACjD,oBAAc,QAAQ,QAAQ,MAAM;AAEpC,YAAM,YAAY,KAAK,QAAQ,QAAQ,GAAG;AAC1C,YAAM,SAAS,MAAM,QAAQ,KAAK,KAAK,OAAO,GAAG,gBAAgB,CAAC;AAClE,YAAM,cAAc,KAAK,KAAK,QAAQ,iBAAiB;AACvD,YAAM,MAAM,WAAW,EAAE,WAAW,KAAK,CAAC;AAC1C,YAAM,UAAU,aAAa,MAAM;AAEnC,UAAI;AACF,cAAU,GAAQ;AAAA,UAChB,MAAM;AAAA,UACN,KAAK;AAAA,UACL,MAAM;AAAA,UACN,QAAQ;AAAA,QACV,CAAC;AAAA,MACH,UAAE;AACA,cAAM,GAAG,QAAQ,EAAE,WAAW,MAAM,OAAO,KAAK,CAAC;AAAA,MACnD;AAEA,cAAQ,IAAI,eAAM,MAAM,iBAAY,MAAM,EAAE,EAAE,CAAC;AAC/C,cAAQ,IAAI,eAAM,IAAI,mBAAmB,SAAS,EAAE,CAAC;AACrD,cAAQ;AAAA,QACN,eAAM;AAAA,UACJ,mBAAmB,KAAK,KAAK,WAAW,MAAM,OAAO,IAAI,CAAC;AAAA,QAC5D;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ;","names":[]}
|
|
@@ -3,21 +3,21 @@ 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-VCUM7W4I.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-J3K4NTPI.js";
|
|
14
|
+
import "./chunk-WQGXVVFA.js";
|
|
15
|
+
import "./chunk-JPR52V7X.js";
|
|
16
|
+
import "./chunk-GGXVYODK.js";
|
|
17
17
|
import "./chunk-LTDQISD7.js";
|
|
18
18
|
import {
|
|
19
19
|
searchZeroChat
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BE5LA7LU.js";
|
|
21
21
|
import {
|
|
22
22
|
withErrorHandler
|
|
23
23
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -201,4 +201,4 @@ export {
|
|
|
201
201
|
buildSlackRecipe,
|
|
202
202
|
zeroSearchCommand
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=search-
|
|
204
|
+
//# sourceMappingURL=search-6O6MJTQJ.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-GGXVYODK.js";
|
|
7
7
|
import {
|
|
8
8
|
isInteractive,
|
|
9
9
|
promptConfirm,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
deleteZeroSecret,
|
|
15
15
|
listZeroSecrets,
|
|
16
16
|
setZeroSecret
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BE5LA7LU.js";
|
|
18
18
|
import {
|
|
19
19
|
withErrorHandler
|
|
20
20
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -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-AXLFQMNQ.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
downloadSlackFile,
|
|
8
8
|
initSlackFileUpload,
|
|
9
9
|
sendSlackMessage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BE5LA7LU.js";
|
|
11
11
|
import {
|
|
12
12
|
withErrorHandler
|
|
13
13
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -220,4 +220,4 @@ Examples:
|
|
|
220
220
|
export {
|
|
221
221
|
zeroSlackCommand
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=slack-
|
|
223
|
+
//# sourceMappingURL=slack-OONXFG7X.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
initTelegramFileUpload,
|
|
9
9
|
listTelegramBots,
|
|
10
10
|
sendTelegramMessage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BE5LA7LU.js";
|
|
12
12
|
import {
|
|
13
13
|
withErrorHandler
|
|
14
14
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -335,4 +335,4 @@ Examples:
|
|
|
335
335
|
export {
|
|
336
336
|
zeroTelegramCommand
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=telegram-
|
|
338
|
+
//# sourceMappingURL=telegram-7AW3MQT4.js.map
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
deleteZeroVariable,
|
|
11
11
|
listZeroVariables,
|
|
12
12
|
setZeroVariable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BE5LA7LU.js";
|
|
14
14
|
import {
|
|
15
15
|
withErrorHandler
|
|
16
16
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -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-E776AHIH.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as __createRequire } from "node:module";
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import "./chunk-LTDQISD7.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-BE5LA7LU.js";
|
|
6
6
|
import {
|
|
7
7
|
downloadWebFile,
|
|
8
8
|
uploadWebFile,
|
|
@@ -106,4 +106,4 @@ Examples:
|
|
|
106
106
|
export {
|
|
107
107
|
zeroWebCommand
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=web-
|
|
109
|
+
//# sourceMappingURL=web-KBGXU6UW.js.map
|
|
@@ -4,16 +4,16 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadConnectorPermissionInfos,
|
|
6
6
|
policyIcon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EOG3HFWN.js";
|
|
8
8
|
import {
|
|
9
9
|
permissionGrantsToFirewallPolicies
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C3J4FX5J.js";
|
|
11
11
|
import "./chunk-LTDQISD7.js";
|
|
12
12
|
import {
|
|
13
13
|
getZeroAgentUserConnectors,
|
|
14
14
|
listZeroConnectors,
|
|
15
15
|
listZeroUserPermissionGrants
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BE5LA7LU.js";
|
|
17
17
|
import {
|
|
18
18
|
getActiveOrg,
|
|
19
19
|
getApiUrl,
|
|
@@ -192,4 +192,4 @@ Notes:
|
|
|
192
192
|
export {
|
|
193
193
|
zeroWhoamiCommand
|
|
194
194
|
};
|
|
195
|
-
//# sourceMappingURL=whoami-
|
|
195
|
+
//# sourceMappingURL=whoami-K6PR2Y2T.js.map
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
listWorkflows,
|
|
21
21
|
updateWorkflow,
|
|
22
22
|
updateWorkflowTrigger
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BE5LA7LU.js";
|
|
24
24
|
import {
|
|
25
25
|
withErrorHandler
|
|
26
26
|
} from "./chunk-3F4RFLPX.js";
|
|
@@ -1579,4 +1579,4 @@ Examples:
|
|
|
1579
1579
|
export {
|
|
1580
1580
|
zeroWorkflowCommand
|
|
1581
1581
|
};
|
|
1582
|
-
//# sourceMappingURL=workflow-
|
|
1582
|
+
//# sourceMappingURL=workflow-4FR3ZQM4.js.map
|